Function at 0x4392d0
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [esp + 0x50]
lea ebx, [ebp + 1]
mov dword [esp + 0x1c], 0x7d0
mov ecx, dword [edx]
cmp ebx, ecx
jge 0x43930e
nop
mov eax, dword [esp + 0x54]
lea edi, [ebx*4]
mov edx, dword [eax]
mov eax, dword [edx + ebx*4]
cmp byte [eax], 0x40
je 0x439316
mov ebp, ebx
lea ebx, [ebp + 1]
cmp ebx, ecx
jl 0x4392f0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [esp + 0x1c], 1
je 0x439581
add eax, 1
mov dword [esp + 4], 0x46adc9
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x439509
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
cmp eax, 0xffffffff
je 0x439501
mov dword [esp], esi
call sub.msvcrt.dll_ftell
cmp eax, 0xffffffff
je 0x439501
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 0x18], eax
call sub.msvcrt.dll_fseek
mov edx, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x439501
lea eax, [edx + 1]
mov dword [esp], eax
call fcn.00438df0
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x20], eax
call sub.msvcrt.dll_fread
mov edx, dword [esp + 0x18]
cmp edx, eax
mov ecx, eax
je 0x4393e6
mov dword [esp], esi
mov dword [esp + 0x18], eax
call sub.msvcrt.dll_ferror
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x439501
mov eax, dword [esp + 0x20]
mov byte [eax + ecx], 0
movzx eax, byte [eax]
test al, al
je 0x439428
test byte [eax + eax + 0x46a9c0], 0x40
je 0x439516
mov eax, dword [esp + 0x20]
jmp 0x43941e
test byte [edx + edx + 0x46a9c0], 0x40
je 0x439516
add eax, 1
movzx edx, byte [eax]
test dl, dl
jne 0x439410
mov dword [esp], 4
call fcn.00438df0
mov ecx, dword [esp + 0x54]
mov dword [eax], 0
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov dword [esp], eax
call fcn.00438f00
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], 0
mov dword [edx], eax
xor edx, edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov dword [esp + 0x18], edx
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00438e70
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx]
sub ecx, ebx
mov dword [esp + 0x2c], ecx
shl ecx, 2
mov dword [esp + 8], ecx
lea ecx, [eax + ebx*4 + 4]
add ebx, edx
lea eax, [eax + ebx*4]
mov ebx, ebp
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
add edi, dword [ecx]
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
lea eax, [edx + eax - 1]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov edx, dword [esp + 0x50]
mov ebp, ebx
mov ecx, dword [edx]
jmp 0x439307
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00439000
mov ecx, dword [esp + 0x54]
mov edx, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov dword [esp + 0x18], edx
mov dword [esp], eax
call fcn.00438f00
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
test edx, edx
mov dword [esp + 0x14], eax
mov dword [ecx], eax
je 0x4395ab
mov eax, dword [esp + 0x24]
xor edx, edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
lea esi, [esi]
add edx, 1
cmp dword [eax + edx*4], 0
lea ebp, [edx*4]
jne 0x439560
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
jmp 0x439460
mov eax, dword [edx]
mov dword [esp + 4], str._s:_error:_too_many___files_encountered_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 1
call fcn.0043aa00
mov dword [esp + 0x28], 0
jmp 0x439460