Function at 0x4079a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x431c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], 0
mov eax, 1
shl eax, 2
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 5
jae 0x4079ca
jmp 0x4079cf
call fcn.0041c2e7
mov ecx, dword [ebp - 0x40]
mov byte [ebp + ecx - 0xc], 0
mov edx, dword [ebp + 8]
push edx
push 4
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.004193d1
add esp, 0x10
lea ecx, [ebp - 0xc]
push ecx
push 0x430284
call fcn.0041966d
add esp, 8
push 4
push str.RIFF
lea edx, [ebp - 0xc]
push edx
call fcn.0041c460
add esp, 0xc
test eax, eax
je 0x407a18
jmp 0x407c17
mov eax, dword [ebp + 8]
push eax
call fcn.00408bb0
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
push ecx
push 4
push 1
lea edx, [ebp - 0xc]
push edx
call fcn.004193d1
add esp, 0x10
push 4
push str.ACON
lea eax, [ebp - 0xc]
push eax
call fcn.0041c460
add esp, 0xc
test eax, eax
je 0x407a57
jmp 0x407c17
cmp dword [ebp - 0x34], 0
jle 0x407c13
mov ecx, dword [ebp + 8]
push ecx
push 4
push 1
lea edx, [ebp - 0xc]
push edx
call fcn.004193d1
add esp, 0x10
test eax, eax
jne 0x407a8b
push str.clean_quit_n
call fcn.0041966d
add esp, 4
jmp 0x407c13
lea eax, [ebp - 0xc]
push eax
push 0x4302a4
call fcn.0041966d
add esp, 8
push 4
push str.LIST
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041c460
add esp, 0xc
test eax, eax
jne 0x407adc
mov edx, dword [ebp + 8]
push edx
call fcn.00408bb0
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00408bb0
add esp, 4
mov ecx, dword [ebp - 0x34]
sub ecx, 8
mov dword [ebp - 0x34], ecx
jmp 0x407a57
mov edx, dword [ebp + 8]
push edx
call fcn.00408bb0
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
push str.len__ld_n
call fcn.0041966d
add esp, 8
push str.anih
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041c3d0
add esp, 8
test eax, eax
jne 0x407b26
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004082b0
add esp, 8
jmp 0x407bbf
push str.icon
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041c3d0
add esp, 8
test eax, eax
jne 0x407b78
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407c30
add esp, 8
cmp dword [ebp - 0x44], 0
je 0x407b56
jmp 0x407c17
mov ecx, dword [ebp - 0x3c]
and ecx, 0x80000001
jns 0x407b66
dec ecx
or ecx, 0xfffffffe
inc ecx
test ecx, ecx
je 0x407b76
mov edx, dword [ebp + 8]
push edx
call fcn.00418d4e
add esp, 4
jmp 0x407bbf
mov dword [ebp - 0x3c], 0
jmp 0x407b8a
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x38]
jge 0x407ba0
mov edx, dword [ebp + 8]
push edx
call fcn.00418d4e
add esp, 4
jmp 0x407b81
mov eax, dword [ebp - 0x3c]
and eax, 0x80000001
jns 0x407baf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x407bbf
mov ecx, dword [ebp + 8]
push ecx
call fcn.00418d4e
add esp, 4
mov edx, dword [ebp - 0x38]
and edx, 0x80000001
jns 0x407bcf
dec edx
or edx, 0xfffffffe
inc edx
mov eax, dword [ebp - 0x38]
lea ecx, [eax + edx + 8]
mov edx, dword [ebp - 0x34]
sub edx, ecx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
push str.flen__ld_n
call fcn.0041966d
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00418d02
add esp, 4
test eax, eax
je 0x407c0e
push str.bad_n
call fcn.0041966d
add esp, 4
jmp 0x407c13
jmp 0x407a57
xor eax, eax
jmp 0x407c19
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004191fd
mov esp, ebp
pop ebp
ret