Function at 0x40a5f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f705
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x4526c4]
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
xor ebx, ebx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push 3
push ecx
lea edx, [ebp - 0x4ac]
lea eax, [ebp - 0x4a8]
push edx
mov dword [ebp - 0x4ac], eax
call fcn.00402a40
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4ac]
push eax
call fcn.00402880
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4ac]
lea ecx, [ebp - 0x4a8]
cmp eax, ecx
je 0x40a682
push eax
call fcn.0042b5de
add esp, 4
lea edx, [ebp - 0x414]
push edx
mov ecx, 0x44729e
call fcn.00402880
push ebx
push 0x80
push 4
push ebx
push ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x41c]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a6cb
push 0x447224
mov ecx, edi
call fcn.004019d0
jmp 0x40a893
mov dword [ebp - 0x420], ebx
jmp 0x40a6db
mov edi, dword [ebp - 0x418]
xor ebx, ebx
push 0x400
lea ecx, [ebp - 0x410]
push ebx
push ecx
call fcn.0042cf90
add esp, 0xc
push ebx
lea edx, [ebp - 0x420]
push edx
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x40a71b
cmp dword [ebp - 0x420], ebx
je 0x40a7b3
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x410]
call fcn.00402880
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x420]
lea edi, [ebp - 0x424]
lea ebx, [ebp - 0x428]
call fcn.0040c4d0
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040c5c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a784
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a6d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x414]
push 0x44729e
push ecx
call fcn.0042bc7d
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x40a802
push 0x447224
mov ecx, edi
call fcn.004019d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a8ad
mov edx, dword [ebp - 0x414]
push 3
push edx
lea eax, [ebp - 0x5b0]
lea ecx, [ebp - 0x5ac]
push eax
mov dword [ebp - 0x5b0], ecx
call fcn.00402b10
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x5b0]
push ecx
lea ecx, [ebp - 0x418]
call fcn.004019d0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x5b0]
lea edx, [ebp - 0x5ac]
cmp eax, edx
je 0x40a856
push eax
call fcn.0042b5de
add esp, 4
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
push eax
call fcn.00401340
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a904
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.0042aacd
mov esp, ebp
pop ebp
ret 4