Function at 0x407f5a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x425238]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.0040cbc5
mov edi, eax
call fcn.0040850f
cmp dword [ebp + 8], esi
jne 0x407f86
mov dword [ebp + 8], 0x421030
push esi
mov ebx, pe_nt_image_headers32
push ebx
push 3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
push 0xc0000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x407fc7
push 0
push ebx
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x408195
xor ebx, ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 3
mov dword [edi + 0x14], ebx
jl 0x408023
push ebx
lea eax, [ebp - 0xc]
push eax
push 3
lea eax, [ebp - 4]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 3
jne 0x408018
push 3
lea eax, [ebp - 4]
push 0x42102c
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x408018
mov dword [edi + 0x14], 0xfde9
sub esi, 3
jmp 0x408023
push ebx
push ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
jle 0x408051
lea eax, [esi + 2]
push eax
push ebx
push dword [0x42480c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [edi + 0xc], eax
je 0x408051
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0xc]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x4081c6
mov word [eax + esi], bx
mov eax, dword [edi + 0xc]
lea ecx, [eax + esi]
mov esi, eax
cmp esi, ecx
mov dword [edi + 0x10], ecx
mov bl, 0xa
jae 0x4081c6
mov al, byte [esi]
cmp al, 0x20
je 0x40807f
cmp al, 9
jne 0x408082
inc esi
jmp 0x408075
mov al, byte [esi]
cmp al, 0x3b
jne 0x4080c3
inc esi
cmp byte [esi], 0x20
jne 0x40808f
inc esi
push esi
push 2
push dword [ebp - 8]
lea eax, [edi + 0x18]
push eax
call fcn.00407f2a
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x4080b9
mov al, byte [esi]
cmp al, bl
je 0x40817c
cmp al, 0xd
je 0x40817c
inc esi
cmp byte [esi], 0
jne 0x4080a6
jmp 0x40817c
cmp al, 0x5b
jne 0x408112
inc esi
push esi
push 1
push dword [ebp - 8]
lea eax, [edi + 0x18]
push eax
call fcn.00407f2a
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x4080ee
mov al, byte [esi]
cmp al, 0x5d
je 0x4080fc
cmp al, bl
je 0x4080f3
cmp al, 0xd
je 0x4080f3
inc esi
cmp byte [esi], 0
jne 0x4080df
cmp byte [esi], 0x5d
jne 0x40817c
mov byte [esi], 0
jmp 0x408109
cmp al, bl
je 0x40817f
cmp al, 0xd
je 0x408180
inc esi
mov al, byte [esi]
test al, al
jne 0x408101
jmp 0x408180
cmp al, bl
je 0x408180
cmp al, 0xd
je 0x408180
mov edx, esi
jmp 0x40812d
cmp al, 0x3d
je 0x408131
cmp al, 0xd
je 0x408131
cmp al, bl
je 0x408131
inc esi
mov al, byte [esi]
test al, al
jne 0x40811e
lea eax, [esi - 1]
jmp 0x408143
mov cl, byte [eax]
cmp cl, 0x20
je 0x408142
cmp cl, 9
jne 0x408147
dec eax
cmp eax, edx
ja 0x408136
mov byte [eax + 1], 0
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x40814b
cmp al, 9
je 0x40814b
push esi
push edx
push dword [ebp - 8]
lea eax, [edi + 0x18]
push eax
call fcn.00407f2a
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x408177
mov al, byte [esi]
cmp al, bl
je 0x40817c
cmp al, 0xd
je 0x40817c
inc esi
cmp byte [esi], 0
jne 0x40816c
mov byte [esi], 0
inc esi
mov al, byte [esi]
cmp al, bl
je 0x40817f
cmp al, 0xd
je 0x40817f
cmp esi, dword [edi + 0x10]
jb 0x408075
jmp 0x4081c6
push dword [ebp + 8]
xor esi, esi
mov dword [edi], esi
mov dword [edi + 0x14], esi
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push esi
push dword [0x42480c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [edi + 4], eax
je 0x4081c6
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [edi]
pop edi
pop esi
pop ebx
leave
ret 4