Function at 0x413a70
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a58a
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
xor ebx, ebx
mov dword [esp + 0x194], ebx
mov eax, dword [ecx + 0x40]
lea ebp, [ecx + 0x28]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebp
call fcn.0040ef10
mov eax, dword [ebp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [ebp + 0x18]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x1a0]
mov edi, 0x10
cmp dword [esp + 0x1b4], edi
jae 0x413af9
lea eax, [esp + 0x1a0]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413b3e
mov dword [esp + 0x194], eax
cmp dword [esp + 0x1b4], edi
jb 0x413b37
mov edx, dword [esp + 0x1a0]
push edx
call fcn.00421b49
add esp, 4
xor al, al
jmp 0x413cd2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call edi
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
jle 0x413ca4
lea ebx, [ebx]
push 0x100
lea edx, [esp + 0x8c]
push ebx
push edx
call fcn.00440d10
add esp, 0xc
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x194], 2
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x94]
push ecx
push esi
call edi
lea eax, [esp + 0x88]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x413bd0
sub eax, ecx
push eax
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x68]
call fcn.00401da0
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x8c]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x90]
push eax
push esi
call edi
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x413c20
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x24]
push eax
call fcn.00412800
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.0040e680
mov byte [esp + 0x194], 4
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.0040f4f0
mov byte [esp + 0x194], 2
lea ecx, [esp + 0x2c]
call fcn.0040e480
mov byte [esp + 0x194], bl
cmp dword [esp + 0x78], 0x10
jb 0x413c81
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00421b49
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x20], eax
jl 0x413b70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x194], 0xffffffff
cmp dword [esp + 0x1b4], 0x10
jb 0x413cd0
mov edx, dword [esp + 0x1a0]
push edx
call fcn.00421b49
add esp, 4
mov al, 1
mov byte [esp + 0x1a0], bl
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1b4], 0xf
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.0044014d
add esp, 0x184
ret 0x1c