Function at 0x4023d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10030
call fcn.00408ce0
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ecx + 0x5c]
mov edx, dword [eax]
push ebx
mov word [edx], bx
push ebx
mov dword [eax + 8], ebx
push dword [ecx + 0x20]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x402574
push 7
pop esi
cmp dword [ebp - 0x10], esi
jne 0x40258f
cmp word [ebp - 0x10027], si
je 0x402453
push ebx
lea eax, [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x10027]
sub eax, esi
push eax
lea eax, [ebp - 0x10025]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x40258f
movzx eax, word [ebp - 0x10027]
sub eax, esi
cmp dword [ebp - 0x10], eax
jne 0x40258f
cmp byte [ebp - 0x1002a], 0x72
je 0x402489
movzx eax, word [ebp - 0x10027]
dec eax
dec eax
push eax
lea eax, [ebp - 0x1002a]
push eax
call fcn.004043d4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1002c]
sub ax, cx
neg ax
sbb eax, eax
inc eax
je 0x40258f
movzx eax, word [ebp - 0x10012]
mov esi, dword [ebp - 0x10025]
mov byte [ebp + eax - 0x1000c], bl
cmp byte [ebp - 0x1002a], 0x7a
jne 0x40255c
cmp word [ebp - 0x10027], 0x21
jb 0x40255c
push 0x4091f0
lea eax, [ebp - 0x1000c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x40255c
mov al, byte [ebp - 0x10010]
and al, 1
cmp byte [ebp - 0x10013], 0x30
mov byte [ebp - 9], al
jb 0x40255c
cmp byte [ebp - 0x10013], 0x35
ja 0x40255c
cmp byte [ebp - 0x10014], 0x1d
jne 0x40255c
mov eax, dword [ebp - 0x10021]
cmp eax, 0x10000
jae 0x40255c
lea eax, [eax + esi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 8], eax
call edi
test eax, eax
je 0x402551
cmp dword [ebp - 0x10], esi
jne 0x402551
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10021]
push esi
push eax
lea ebx, [eax + esi]
lea eax, [ebp - 0x1002c]
push eax
call fcn.00408762
add esp, 0xc
test eax, eax
jne 0x402596
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
xor ebx, ebx
push dword [ebp - 8]
xor esi, esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
test word [ebp - 0x10029], 0x8000
je 0x402574
push 1
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebx
lea eax, [ebp - 0x10]
push eax
push 7
lea eax, [ebp - 0x1002c]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x402409
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp byte [ebp - 9], 0
mov eax, dword [ebp - 8]
je 0x4025f8
mov edi, dword [ebp - 0x10021]
lea ebx, [eax + esi]
shr edi, 1
jmp 0x4025f2
cmp word [ebx], 0x20
jae 0x4025b9
dec edi
inc ebx
inc ebx
test edi, edi
jg 0x4025ac
lea esi, [ebp - 0x24]
call fcn.00401de1
jmp 0x4025d8
movzx eax, word [ebx]
cmp ax, 0x20
jb 0x4025dc
push eax
mov eax, dword [ebp - 0x14]
call fcn.00401f1e
dec edi
inc ebx
inc ebx
test edi, edi
jg 0x4025c3
push 0x4091f4
push dword [ebp - 0x14]
call fcn.00401fe9
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
test edi, edi
jg 0x4025ac
jmp 0x40264b
mov ebx, dword [ebp - 0x10021]
lea edi, [eax + esi]
jmp 0x402647
cmp byte [edi], 0x20
jae 0x40260e
dec ebx
inc edi
test ebx, ebx
jg 0x402603
lea esi, [ebp - 0x24]
call fcn.00401de1
jmp 0x40262d
mov al, byte [edi]
cmp al, 0x20
jb 0x402631
movsx ax, al
push eax
mov eax, dword [ebp - 0x14]
call fcn.00401f1e
dec ebx
inc edi
test ebx, ebx
jg 0x402618
push 0x4091f4
push dword [ebp - 0x14]
call fcn.00401fe9
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
test ebx, ebx
jg 0x402603
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x402591