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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
call fcn.0040b69a
cmp dword [ebp + 8], ebx
jne 0x40b77d
mov dword [ebp + 8], section..rdata
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov edi, pe_nt_image_headers32
push edi
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
mov dword [0x482d24], ebx
call esi
mov dword [0x482d18], eax
cmp eax, 0xffffffff
jne 0x40b7ee
push ebx
push edi
push 3
push ebx
push 1
mov ebx, 0x80000000
push ebx
push dword [ebp + 8]
call esi
mov dword [0x482d18], eax
cmp eax, 0xffffffff
jne 0x40b7d9
push 0
push edi
push 3
push 0
push 3
push ebx
push dword [ebp + 8]
call esi
mov dword [0x482d18], eax
mov dword [0x482d24], 1
cmp eax, 0xffffffff
je 0x40ba7f
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 3
pop esi
mov dword [ebp - 8], eax
mov dword [0x482d30], ebx
mov dword [0x482d44], ecx
cmp eax, esi
jl 0x40b860
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [0x482d18]
call edi
cmp dword [ebp - 0x10], esi
jne 0x40b851
push esi
lea eax, [ebp - 4]
push 0x442044
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40b851
sub dword [ebp - 8], esi
mov dword [0x482d30], 0xfde9
jmp 0x40b860
push ebx
push ebx
push ebx
push dword [0x482d18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
cmp eax, ebx
jle 0x40b934
add eax, 2
push eax
push ebx
push dword [0x482308]
cmp dword [0x482d30], ebx
jne 0x40b90a
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call esi
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x40b934
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 2]
push eax
push ebx
push dword [0x482308]
call esi
mov dword [0x482d28], eax
cmp eax, ebx
je 0x40bac8
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push dword [0x482d18]
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
shl eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push dword [0x482d28]
call fcn.004181b0
push dword [ebp + 8]
mov dword [0x482d30], 0xfde9
push ebx
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40b934
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x482d28], eax
cmp eax, ebx
je 0x40bac8
push ebx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 8]
push eax
push dword [0x482d18]
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [0x482d28]
cmp eax, ebx
je 0x40bac8
mov edx, dword [ebp - 8]
xor ecx, ecx
mov word [eax + edx], cx
mov esi, dword [0x482d28]
mov eax, dword [ebp - 8]
add eax, esi
mov dword [0x482d2c], eax
mov edi, 0x482d34
mov bl, 0xa
cmp esi, eax
jae 0x40bac8
mov al, byte [esi]
cmp al, 0x20
je 0x40b973
cmp al, 9
jne 0x40b976
inc esi
jmp 0x40b969
mov al, byte [esi]
cmp al, 0x3b
jne 0x40b9b4
inc esi
cmp byte [esi], 0x20
jne 0x40b983
inc esi
push esi
push 2
push dword [ebp - 0xc]
push edi
call fcn.0040b72e
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x40b9aa
mov al, byte [esi]
cmp al, bl
je 0x40ba63
cmp al, 0xd
je 0x40ba63
inc esi
cmp byte [esi], 0
jne 0x40b997
jmp 0x40ba63
cmp al, 0x5b
jne 0x40b9fc
inc esi
push esi
push 1
push dword [ebp - 0xc]
push edi
call fcn.0040b72e
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x40b9dc
mov al, byte [esi]
cmp al, 0x5d
je 0x40b9e6
cmp al, bl
je 0x40b9e1
cmp al, 0xd
je 0x40b9e1
inc esi
cmp byte [esi], 0
jne 0x40b9cd
cmp byte [esi], 0x5d
jne 0x40ba63
mov byte [esi], 0
jmp 0x40b9f3
cmp al, bl
je 0x40ba66
cmp al, 0xd
je 0x40ba67
inc esi
mov al, byte [esi]
test al, al
jne 0x40b9eb
jmp 0x40ba67
cmp al, bl
je 0x40ba67
cmp al, 0xd
je 0x40ba67
mov edx, esi
jmp 0x40ba17
cmp al, 0x3d
je 0x40ba1b
cmp al, 0xd
je 0x40ba1b
cmp al, bl
je 0x40ba1b
inc esi
mov al, byte [esi]
test al, al
jne 0x40ba08
lea eax, [esi - 1]
jmp 0x40ba2d
mov cl, byte [eax]
cmp cl, 0x20
je 0x40ba2c
cmp cl, 9
jne 0x40ba31
dec eax
cmp eax, edx
ja 0x40ba20
mov byte [eax + 1], 0
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x40ba35
cmp al, 9
je 0x40ba35
push esi
push edx
push dword [ebp - 0xc]
push edi
call fcn.0040b72e
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x40ba5e
mov al, byte [esi]
cmp al, bl
je 0x40ba63
cmp al, 0xd
je 0x40ba63
inc esi
cmp byte [esi], 0
jne 0x40ba53
mov byte [esi], 0
inc esi
mov al, byte [esi]
cmp al, bl
je 0x40ba66
cmp al, 0xd
je 0x40ba66
cmp esi, dword [0x482d2c]
jb 0x40b969
jmp 0x40bac8
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and dword [0x482d18], 0
mov dword [0x482d44], eax
mov dword [0x482d30], 0xfde9
call sub.MSVCRT.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x482d1c], eax
test eax, eax
je 0x40bac8
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov eax, dword [0x482d18]
pop edi
pop esi
pop ebx
leave
ret 8