Function at 0x43cd60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcd38
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x51c0b0]
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 esi, ecx
cmp dword [esi + 0x50], 2
mov ebx, dword [ebp + 8]
jae 0x43ce81
push 0x138
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.0049b6a0
add esp, 0xc
mov dword [ebp - 0x1c8], 0
lea eax, [ebp - 0x1c8]
push 0
push eax
push 0x138
lea eax, [ebp - 0x1a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43cde8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43cff1
cmp dword [ebp - 0x1c8], 0x138
jne 0x43cf80
push 1
lea eax, [ebp - 0x1c1]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x70]
call fcn.00409c70
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
lea eax, [ebp - 0x6c]
cmp ecx, eax
je 0x43ce2b
push 0xffffffffffffffff
push 0
push eax
call fcn.004046f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404db0
mov eax, dword [ebp - 0xa4]
mov dword [esi + 0x30], eax
movzx eax, word [ebp - 0xa0]
mov word [esi + 0x34], ax
mov eax, dword [ebp - 0x9c]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x40], eax
movzx eax, word [ebp - 0x90]
mov word [esi + 0x44], ax
mov eax, dword [ebp + 0xc]
add eax, 0x138
jmp 0x43cfec
xor eax, eax
push eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1c8]
push eax
push 0x18
lea eax, [ebp - 0x1c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43cddd
cmp dword [ebp - 0x1c8], 0x18
jne 0x43cf80
mov eax, dword [ebp - 0x1bc]
push dword [ebp - 0x1c0]
mov dword [esi + 0x30], eax
movzx eax, word [ebp - 0x1b8]
mov word [esi + 0x34], ax
mov eax, dword [ebp - 0x1b6]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x1b2]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x1ae]
mov dword [esi + 0x40], eax
movzx eax, word [ebp - 0x1aa]
mov word [esi + 0x44], ax
call fcn.004996e0
push dword [ebp - 0x1c0]
mov edi, eax
push 0
push edi
call fcn.0049b6a0
add esp, 0x10
lea eax, [ebp - 0x1c8]
push 0
push eax
push dword [ebp - 0x1c0]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43cf67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push edi
mov esi, eax
call fcn.00499db8
add esp, 8
mov eax, esi
jmp 0x43cff1
mov eax, dword [ebp - 0x1c0]
cmp dword [ebp - 0x1c8], eax
je 0x43cf87
push 1
push edi
call fcn.00499db8
add esp, 8
mov eax, 0x103
jmp 0x43cff1
push 0
shr eax, 1
lea ecx, [ebp - 0x1c1]
push ecx
push eax
test edi, edi
mov dword [ebp - 0x40], 0x4dd804
mov eax, 0x4d7438
mov dword [ebp - 0x18], 0x4dcac4
cmovne eax, edi
lea ecx, [ebp - 0x40]
push eax
call fcn.00407090
mov dword [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00404140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
push 1
push edi
call fcn.00499db8
mov eax, dword [ebp - 0x1c0]
add esp, 8
add eax, 0x18
add eax, dword [ebp + 0xc]
mov dword [esi + 0x48], eax
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.004996ca
mov esp, ebp
pop ebp
ret 8