Function at 0x401e30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fc340
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi + 0x10]
cmp eax, ebx
jle 0x401f7a
mov eax, dword [edi + 0xc]
lea ecx, [eax + esi*8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043b610
mov edx, dword [0x50cd3c]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x10], edx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0x530868
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 1
mov dword [esp + 0x28], ebx
call fcn.004409c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.0043c240
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.0043c090
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], ebx
je 0x401f2d
lea ecx, [esp + 0x10]
call fcn.0043ff60
lea ecx, [esp + 0x10]
call fcn.0043fc60
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x401eef
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.0045cb20
add esp, 8
test eax, eax
jne 0x401f5c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push 0x530868
push edx
lea ecx, [esp + 0x24]
call fcn.004409c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.0043c240
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 1
call fcn.0043c090
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jne 0x401ec2
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], bl
call fcn.0043c090
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.0043c090
mov eax, dword [edi + 0x10]
inc esi
cmp esi, eax
jge 0x402074
jmp 0x401e5d
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], bl
call fcn.0043c090
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.0043c090
cmp esi, dword [edi + 0x10]
jge 0x402074
mov ecx, dword [edi + 0xc]
lea edx, [ecx + esi*8 + 4]
lea ecx, [esp + 0x14]
push edx
call fcn.0043b610
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], 4
mov eax, dword [eax - 8]
cmp eax, ebx
je 0x402063
cdq
sub eax, edx
lea ecx, [esp + 0x28]
mov esi, eax
sar esi, 1
call fcn.004d8eab
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 5
call fcn.004d8f0b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push esi
push ecx
push edx
call fcn.00454f90
push esi
call fcn.004da41d
mov ebp, eax
add esp, 0x10
cmp ebp, ebx
je 0x402055
mov eax, dword [esp + 0x4c]
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x40204c
lea ecx, [esp + 0x4c]
push ebx
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402045
cmp dword [esp + 0x4c], esi
jne 0x402045
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x402041
mov ebx, 1
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.004da446
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 4
call fcn.004d8ede
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.0043c090
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4