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

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x487f10]
xor ebp, ebp
call fcn.00412732
mov ebx, eax
call fcn.0040496f
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x404aee
mov esi, 0x470eac
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0xc0000000
push esi
mov dword [ebx + 0xc], eax
call edi
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x404b56
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call edi
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x404b46
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call edi
mov dword [ebx], eax
mov dword [ebx + 0xc], 1
cmp eax, 0xffffffff
je 0x404e18
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x24], 2
mov edi, eax
jne 0x404b6f
mov eax, 0xfde9
jmp 0x404b71
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebx + 0x2c], eax
cmp edi, 3
jl 0x404bc9
push 0
lea eax, [esp + 0x18]
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call esi
cmp dword [esp + 0x14], 3
jne 0x404c82
push 3
lea eax, [esp + 0x14]
push 0x46ca00
push eax
call fcn.00413e3c
add esp, 0xc
test eax, eax
jne 0x404c82
mov dword [ebx + 0x18], 0xfde9
sub edi, 3
test edi, edi
jle 0x404cb2
lea eax, [edi + 2]
xor ecx, ecx
push eax
push ecx
push dword [0x4857e4]
cmp dword [ebx + 0x18], ecx
jne 0x404c94
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x404cb2
lea eax, [edi*4 + 2]
push eax
push 0
push dword [0x4857e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x404cb2
push 0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
push esi
mov byte [esi + eax], 0
call fcn.004156c0
mov edi, eax
push edi
call fcn.00415740
mov esi, eax
push esi
push dword [ebx + 0x10]
call fcn.004154c0
pop ecx
pop ecx
push esi
call fcn.004157d0
push edi
call fcn.004157d0
push dword [ebx + 0x10]
call fcn.004155c0
pop ecx
push dword [esp + 0x20]
mov dword [ebx + 0x18], 0xfde9
mov edi, eax
push 0
push dword [0x4857e4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x404cb2
xor eax, eax
push eax
push eax
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404bd1
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x404cb2
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push dword [ebx]
call esi
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x404e55
xor ecx, ecx
mov word [eax + edi], cx
mov esi, dword [ebx + 0x10]
lea eax, [esi + edi]
mov dword [ebx + 0x14], eax
cmp esi, eax
jae 0x404e55
push 0x10
pop edi
mov al, byte [esi]
cmp al, 0x20
je 0x404ce1
cmp al, 9
jne 0x404ce4
inc esi
jmp 0x404cd7
cmp al, 0x3b
jne 0x404d32
inc esi
cmp byte [esi], 0x20
jne 0x404cef
inc esi
push edi
test ebp, ebp
je 0x404cfc
push ebp
call fcn.0041583a
jmp 0x404d05
lea eax, [ebx + 0x1c]
push eax
call fcn.00413b5f
lea ebp, [eax - 8]
pop ecx
pop ecx
mov dword [ebp + 8], 2
mov dword [ebp + 0xc], esi
jmp 0x404d27
cmp al, 0xa
je 0x404dff
cmp al, 0xd
je 0x404dff
inc esi
mov al, byte [esi]
test al, al
jne 0x404d16
jmp 0x404dff
cmp al, 0x5b
jne 0x404d99
inc esi
push edi
test ebp, ebp
je 0x404d44
push ebp
call fcn.0041583a
jmp 0x404d4d
lea eax, [ebx + 0x1c]
push eax
call fcn.00413b5f
lea ebp, [eax - 8]
mov dword [ebp + 8], 1
mov dword [ebp + 0xc], esi
mov al, byte [esi]
pop ecx
pop ecx
test al, al
je 0x404d7e
mov cl, al
mov al, cl
cmp cl, 0x5d
je 0x404d7e
cmp cl, 0xa
je 0x404d7e
cmp cl, 0xd
je 0x404d7e
inc esi
mov al, byte [esi]
mov cl, al
test al, al
jne 0x404d64
mov byte [esi], 0
inc esi
cmp al, 0x5d
jne 0x404e03
jmp 0x404d91
cmp al, 0xa
je 0x404e03
cmp al, 0xd
je 0x404e03
inc esi
mov al, byte [esi]
test al, al
jne 0x404d88
jmp 0x404e03
cmp al, 0xa
je 0x404e03
cmp al, 0xd
je 0x404e03
mov edx, esi
jmp 0x404db4
cmp al, 0x3d
je 0x404db8
cmp al, 0xd
je 0x404db8
cmp al, 0xa
je 0x404db8
inc esi
mov al, byte [esi]
test al, al
jne 0x404da5
lea eax, [esi - 1]
jmp 0x404dca
mov cl, byte [eax]
cmp cl, 0x20
je 0x404dc9
cmp cl, 9
jne 0x404dce
dec eax
cmp eax, edx
ja 0x404dbd
mov byte [eax + 1], 0
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x404dd2
cmp al, 9
je 0x404dd2
push esi
push edx
lea eax, [ebx + 0x1c]
push ebp
push eax
call fcn.00404a97
add esp, 0x10
mov ebp, eax
jmp 0x404df9
cmp al, 0xa
je 0x404dff
cmp al, 0xd
je 0x404dff
inc esi
mov al, byte [esi]
test al, al
jne 0x404df0
mov byte [esi], 0
inc esi
mov al, byte [esi]
cmp al, 0xa
je 0x404e02
cmp al, 0xd
je 0x404e02
cmp esi, dword [ebx + 0x14]
jb 0x404cd7
jmp 0x404e55
mov eax, dword [esp + 0x20]
and dword [ebx], ebp
push esi
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x18], 0xfde9
call fcn.004132e1
pop ecx
lea eax, [eax*2 + 2]
push eax
push 0
push dword [0x4857e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 4], eax
test eax, eax
je 0x404e55
push esi
push eax
call fcn.004132bf
pop ecx
pop ecx
mov eax, dword [ebx]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc