Function at 0x42b4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b945
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00422ca0
push 0x452838
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.00429ca0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00422540
add esp, 0x20
mov edx, dword [ebp - 0x28]
or esi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b539
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, 0xffffffff
je 0x42b69c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push eax
push edi
mov dword [ebp - 0x24], 0
call ebx
test eax, eax
je 0x42b695
cmp dword [ebp - 0x24], 0
je 0x42b695
cmp dword [ebp - 0x14], 4
jne 0x42b695
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0
push eax
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
push edi
call ebx
test eax, eax
je 0x42b695
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42b695
cmp dword [ebp - 0x14], 4
jne 0x42b695
push eax
mov byte [ebp - 4], 4
call sub.mfc140u.dll_operator
mov ebx, eax
mov dword [ebp - 4], 3
add esp, 4
test ebx, ebx
je 0x42b65f
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 0
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b656
cmp dword [ebp - 0x14], esi
jne 0x42b656
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
push ebx
call fcn.0042c4e0
push ebx
mov esi, eax
call sub.mfc140u.dll_operator_1
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.00409150
lea ecx, [ebp - 0x1c]
call fcn.00409150
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call sub.mfc140u.dll_operator_1
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00409150
lea ecx, [ebp - 0x1c]
call fcn.00409150
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b6ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42b6d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret