Function at 0x10039c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10112688
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x188], eax
mov eax, dword [edi + 0x3d8]
test eax, eax
jne 0x10039f00
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x184], eax
mov eax, dword [edi]
mov dword [ebp - 0x20], 0xa26b483a
mov dword [ebp - 0x1c], 0x80b12757
mov dword [ebp - 0x18], 0x8d68500d
mov dword [ebp - 0x14], 0xe20b726d
mov dword [ebp - 0x30], 0x31ff78c6
mov dword [ebp - 0x2c], 0x6344cb22
mov dword [ebp - 0x28], 0x951b6db1
mov dword [ebp - 0x24], 0x6d8d68f5
cmp eax, 0xffffffff
je 0x10039efe
cmp dword [edi + 0x3dc], 0
je 0x10039efe
push 0
push 0
push 0x1cc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10039efe
push dword [edi + 0x68]
call fcn.100390c2
mov ecx, dword [edi + 0x68]
add ecx, 0x20
mov dword [ebp - 0x178], eax
push ecx
call fcn.100390c2
mov ecx, dword [edi + 0x64]
add esp, 8
mov ebx, eax
sub ecx, 0x1cc
lea eax, [ebp - 0x184]
mov dword [ebp - 0x18c], ebx
push 0
push eax
push ecx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10039edd
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x20]
push 0x80
push eax
call fcn.1003aec0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [edi + 0x68]
push dword [ebp - 0x178]
push ebx
call fcn.1003a230
mov esi, dword [edi + 0x68]
lea ecx, [ebp - 0x174]
add esp, 0x24
call fcn.1003c380
mov dword [ebp - 4], 0
mov dword [ebp - 0x170], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x170]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push dword [ebp - 0x170]
lea ecx, [ebp - 0x174]
push esi
push dword [ebp - 0x178]
call fcn.1003c3d0
test eax, eax
jne 0x10039dbe
jmp 0x10039eb7
push 0x48
lea eax, [ebp - 0x16c]
push 0
push eax
call fcn.1003e610
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
add esp, 0xc
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
je 0x10039def
jmp 0x10039eb7
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x194]
push edx
push 0
push 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x10039e25
jmp 0x10039eb7
push dword [ebp - 0x164]
call fcn.100390c2
mov ecx, dword [ebp - 0x170]
add esp, 4
mov esi, eax
mov dword [ebp - 0x17c], 0
lea eax, [ebp - 0x17c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x164]
push esi
push ecx
call dword [edx + 0xc]
test eax, eax
jne 0x10039eae
mov ebx, dword [ebp - 0x17c]
cmp dword [ebp - 0x164], ebx
jne 0x10039eae
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x10039e7e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.1003c390
test esi, esi
je 0x10039edd
mov eax, dword [ebp - 0x188]
mov dword [edi + 0x3d8], esi
mov dword [ebp - 0x180], esi
test eax, eax
je 0x10039edd
mov dword [eax], ebx
jmp 0x10039edd
push esi
call fcn.10038d3b
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x10039ecb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.1003c390
push dword [ebp - 0x18c]
call fcn.10038d3b
push dword [ebp - 0x178]
call fcn.10038d3b
mov eax, dword [ebp - 0x180]
add esp, 8
jmp 0x10039f00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10038cf9
mov esp, ebp
pop ebp
ret 4