Function at 0x41f5d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
mov byte [esp + 0x98], 0
mov ecx, 0x41
lea edi, [esp + 0x99]
push eax
rep stosd dword es:[edi], eax
call fcn.00419aa0
mov edi, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
call fcn.0041f550
test eax, eax
jne 0x41f86b
push eax
lea eax, [esp + 0x10]
push eax
mov esi, 4
push esi
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x41f63b
cmp dword [esp + 0xc], esi
je 0x41f644
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x1c], 0x41544144
je 0x41f65a
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00419aa0
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], edx
mov eax, 2
lea ecx, [esp + 0x2e]
lea edx, [esp + 0x30]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
lea ecx, [esp + 0x32]
lea edx, [esp + 0x34]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], edx
lea ecx, [esp + 0x36]
lea edx, [esp + 0x38]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x3a]
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x3c], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], eax
xor esi, esi
lea ebx, [ebx]
mov edi, dword [esp + esi*8 + 0x3c]
mov ebx, dword [esp + esi*8 + 0x38]
mov edx, dword [ebp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x41f7c7
cmp dword [esp + 0xc], edi
jne 0x41f7c7
lea eax, [esp + 0x10]
push eax
push edi
push ebx
call fcn.00419aa0
add esp, 0xc
inc esi
cmp esi, 0xb
jb 0x41f710
mov eax, dword [esp + 0x14]
cmp eax, 0x104
jbe 0x41f769
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x9c]
push edx
push edi
mov ebx, eax
call esi
test eax, eax
je 0x41f7c7
cmp dword [esp + 0xc], ebx
jne 0x41f7c7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.00419aa0
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x24]
push ecx
push edi
call esi
test eax, eax
je 0x41f7c7
cmp dword [esp + 0xc], 2
je 0x41f7d3
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.00419aa0
add esp, 0xc
cmp word [esp + 0x10], 0
je 0x41f7fb
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.0041f4f0
mov eax, dword [ebp + 0x14]
add esp, 8
test eax, eax
je 0x41f81d
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41f83a
lea eax, [esp + 0x90]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41f830
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41f847
mov edx, dword [esp + 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x41f869
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret