Function at 0x1008d85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0x54f
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x1008e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x100cc9c], 4
mov dword [ebp - 4], eax
je 0x10091d7
push 4
push 0x10044c8
push 0x109
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x10091d7
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10043a8
push ebx
call fcn.010081e5
add esp, 0x10
jmp 0x10091d7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp - 8]
push ecx
push 4
lea ecx, [ebp - 0x10]
push ecx
push eax
call esi
test eax, eax
je 0x1009176
cmp dword [ebp - 8], ebx
je 0x1009176
cmp dword [ebp - 0x10], ebx
je 0x1009176
push dword [ebp - 0x10]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x18], edi
jne 0x1008e91
test byte [0x100cc9c], 4
je 0x10091b6
push 4
push 0x10044c8
push 0x121
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x10091b6
push 0x100432c
push ebx
call fcn.010081e5
pop ecx
pop ecx
jmp 0x10091b6
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1008efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x100cc9c], 4
mov dword [ebp - 4], eax
je 0x10091b6
push 4
push 0x10044c8
push 0x12f
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x10091b6
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10043c4
push ebx
call fcn.010081e5
add esp, 0x10
jmp 0x10091b6
cmp dword [edi + 0xc], 2
jne 0x1009140
cmp dword [edi + 8], 0xabcdef12
jne 0x1009140
push ebx
lea eax, [ebp - 8]
push eax
push 4
pop edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x1008fae
cmp dword [ebp - 8], ebx
je 0x1008ff2
cmp dword [ebp - 8], edi
jne 0x1009023
cmp dword [ebp - 0xc], ebx
je 0x1009054
push dword [ebp - 0xc]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x1009090
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffffc
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x10090c6
mov eax, dword [ebp - 0xc]
add eax, 0xfffffffc
cmp dword [ebp - 8], eax
jne 0x10090fa
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.01008d35
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008f13
jmp 0x1009135
test byte [0x100cc9c], 4
je 0x1009135
push edi
push 0x10044c8
push 0x144
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x1009135
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10044ac
push ebx
call fcn.010081e5
add esp, 0xc
jmp 0x1009135
test byte [0x100cc9c], 4
je 0x10091b3
push edi
push 0x10044c8
push 0x14a
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x10091b3
push 0x10044a0
jmp 0x1009083
test byte [0x100cc9c], 4
je 0x1009135
push edi
push 0x10044c8
push 0x151
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x1009135
push 0x1004480
jmp 0x10090bc
test byte [0x100cc9c], 4
je 0x10091b3
push edi
push 0x10044c8
push 0x157
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x10091b3
push 0x1004470
push ebx
call fcn.010081e5
pop ecx
pop ecx
jmp 0x10091b3
test byte [0x100cc9c], 4
je 0x1009135
push 4
push 0x10044c8
push 0x162
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x1009135
push 0x100432c
push ebx
call fcn.010081e5
pop ecx
pop ecx
jmp 0x1009135
test byte [0x100cc9c], 4
je 0x1009135
push 4
push 0x10044c8
push 0x16e
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x1009135
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x10043c4
jmp 0x100912c
test byte [0x100cc9c], 4
je 0x1009135
push 4
push 0x10044c8
push 0x174
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x1009135
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffffc
push eax
push 0x1004448
push ebx
call fcn.010081e5
add esp, 0x10
cmp dword [ebp - 4], 0x103
jne 0x10091b6
jmp 0x10091b3
test byte [0x100cc9c], 4
je 0x10091b6
push 4
push 0x10044c8
push 0x138
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x10091b6
push dword [ebp + 8]
push 0x1004420
push ebx
call fcn.010081e5
add esp, 0xc
jmp 0x10091b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x100cc9c], 4
mov esi, eax
je 0x10091b3
push 4
push 0x10044c8
push 0x119
push str.d:xpclient_adminpchealth_srenumlogs_respoint.cpp
call fcn.0100a280
test eax, eax
je 0x10091b3
push esi
push dword [ebp + 8]
push 0x1004408
push ebx
call fcn.010081e5
add esp, 0x10
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
pop edi
pop esi
je 0x10091d7
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 4