Function at 0x41f8e6
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 [0x4de94c]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.0042904a
mov edi, eax
call fcn.0041fdb8
cmp dword [ebp + 8], esi
jne 0x41f912
mov dword [ebp + 8], 0x42b00b
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 0x41f953
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 0x41fb21
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 0x41f9af
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 0x41f9a4
push 3
lea eax, [ebp - 4]
push 0x42b0e0
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x41f9a4
mov dword [edi + 0x14], 0xfde9
sub esi, 3
jmp 0x41f9af
push ebx
push ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
jle 0x41f9dd
lea eax, [esi + 2]
push eax
push ebx
push dword [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [edi + 0xc], eax
je 0x41f9dd
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 0x41fb52
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 0x41fb52
mov al, byte [esi]
cmp al, 0x20
je 0x41fa0b
cmp al, 9
jne 0x41fa0e
inc esi
jmp 0x41fa01
mov al, byte [esi]
cmp al, 0x3b
jne 0x41fa4f
inc esi
cmp byte [esi], 0x20
jne 0x41fa1b
inc esi
push esi
push 2
push dword [ebp - 8]
lea eax, [edi + 0x18]
push eax
call fcn.0041f8b6
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x41fa45
mov al, byte [esi]
cmp al, bl
je 0x41fb08
cmp al, 0xd
je 0x41fb08
inc esi
cmp byte [esi], 0
jne 0x41fa32
jmp 0x41fb08
cmp al, 0x5b
jne 0x41fa9e
inc esi
push esi
push 1
push dword [ebp - 8]
lea eax, [edi + 0x18]
push eax
call fcn.0041f8b6
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x41fa7a
mov al, byte [esi]
cmp al, 0x5d
je 0x41fa88
cmp al, bl
je 0x41fa7f
cmp al, 0xd
je 0x41fa7f
inc esi
cmp byte [esi], 0
jne 0x41fa6b
cmp byte [esi], 0x5d
jne 0x41fb08
mov byte [esi], 0
jmp 0x41fa95
cmp al, bl
je 0x41fb0b
cmp al, 0xd
je 0x41fb0c
inc esi
mov al, byte [esi]
test al, al
jne 0x41fa8d
jmp 0x41fb0c
cmp al, bl
je 0x41fb0c
cmp al, 0xd
je 0x41fb0c
mov edx, esi
jmp 0x41fab9
cmp al, 0x3d
je 0x41fabd
cmp al, 0xd
je 0x41fabd
cmp al, bl
je 0x41fabd
inc esi
mov al, byte [esi]
test al, al
jne 0x41faaa
lea eax, [esi - 1]
jmp 0x41facf
mov cl, byte [eax]
cmp cl, 0x20
je 0x41face
cmp cl, 9
jne 0x41fad3
dec eax
cmp eax, edx
ja 0x41fac2
mov byte [eax + 1], 0
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x41fad7
cmp al, 9
je 0x41fad7
push esi
push edx
push dword [ebp - 8]
lea eax, [edi + 0x18]
push eax
call fcn.0041f8b6
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x41fb03
mov al, byte [esi]
cmp al, bl
je 0x41fb08
cmp al, 0xd
je 0x41fb08
inc esi
cmp byte [esi], 0
jne 0x41faf8
mov byte [esi], 0
inc esi
mov al, byte [esi]
cmp al, bl
je 0x41fb0b
cmp al, 0xd
je 0x41fb0b
cmp esi, dword [edi + 0x10]
jb 0x41fa01
jmp 0x41fb52
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 [0x4dd850]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [edi + 4], eax
je 0x41fb52
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