Function at 0x4040f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push 0x40
push 0x42a604
push dword [ebp + 8]
mov ebx, ecx
call fcn.0041622a
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40411d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edi, 0x412
mov edx, 0x437
cmp ax, di
mov ecx, 0x443
push 0
cmove ecx, edx
push ecx
mov ecx, 0x434b58
call fcn.004018d0
push eax
call fcn.00405a50
push 0
push 0x70800
push esi
call fcn.004164ef
add esp, 0x10
push esi
test eax, eax
jne 0x4041ff
push 0x10
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.004160b9
add esp, 0x10
cmp eax, 0x10
jne 0x4041fe
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x70800
jg 0x4041fe
cmp dword [ebx + 0x100], 0
je 0x4041ac
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
call fcn.00405aa0
add esp, 4
push 0x40
push 0x42a600
push dword [ebp + 0xc]
call fcn.0041622a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4041fe
push 0
push 0
push esi
call fcn.004164ef
add esp, 0xc
mov ecx, ebx
push dword [ebp - 0x10]
push esi
push edi
call fcn.00403ca0
push edi
call fcn.00415e1c
push 0x40
push 0x42a600
push dword [ebp + 0x10]
call fcn.0041622a
mov edi, eax
add esp, 0x10
mov dword [ebp + 0xc], edi
test edi, edi
jne 0x404212
push esi
call fcn.00415e1c
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0x70810
push esi
call fcn.004164ef
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xfff8f7f0
mov ecx, ebx
push eax
push esi
push edi
call fcn.00403ca0
push esi
call fcn.00415e1c
push dword [ebp + 8]
lea eax, [ebp - 0x318]
push 0x104
push eax
call fcn.00415b43
mov edi, 1
add esp, 0x10
cmp dword [ebp - 4], edi
jl 0x4043d1
nop
lea eax, [ebp - 0x318]
push 0x2e
push eax
call fcn.00413b20
push edi
push str.._03d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x40
lea eax, [ebp - 0x318]
push 0x42a604
push eax
call fcn.0041622a
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4043b1
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00415b43
lea eax, [ebp - 0x214]
push 0x5c
push eax
call fcn.00413b20
add esp, 0x14
test eax, eax
je 0x4042ce
mov byte [eax], 0
inc eax
jmp 0x4042db
mov byte [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00415b43
add esp, 0xc
push edi
push 0
push 0x430
mov ecx, 0x434b58
call fcn.004018d0
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
call fcn.00405b20
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0x100
push ebx
call fcn.00415b43
add esp, 0x18
push ebx
push 0x404620
push esi
push 0x85
push dword [0x434b50]
call fcn.004047c0
test eax, eax
je 0x404207
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00415b9d
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00415b9d
push 0x40
lea eax, [ebp - 0x110]
push 0x42a604
push eax
call fcn.0041622a
mov esi, eax
add esp, 0x30
test esi, esi
je 0x4042f0
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00403ca0
push esi
call fcn.00415e1c
inc edi
add esp, 4
cmp edi, dword [ebp - 4]
jle 0x404260
push dword [ebp + 0xc]
call fcn.00415e1c
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc