Function at 0x696360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72c97f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push esi
call fcn.00428840
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004290e0
test eax, eax
jle 0x696a1a
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push esi
call fcn.00428840
mov eax, dword [0x7fa9f0]
mov byte [ebp - 4], 1
test eax, eax
jne 0x6963ed
push 0x20
call fcn.00428650
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x6963e2
mov ecx, eax
call fcn.00544910
jmp 0x6963e4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x7fa9f0], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.0062c590
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004290f0
test eax, eax
jne 0x696496
push eax
lea ecx, [ebp - 0x30]
call fcn.00429100
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00694bb0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00429100
push eax
call fcn.005b6cc0
add esp, 4
test eax, eax
jne 0x69648e
push ecx
mov eax, esp
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.005b5ff0
add esp, 8
call fcn.005b1510
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 1
push 0xffffffffffffffff
push 0x783bbc
push 0
push 0
call fcn.0057ff60
push eax
lea ecx, [ebp - 0x28]
call fcn.00429100
push eax
lea ecx, [ebp - 0x30]
call fcn.00429100
push eax
call fcn.005bee00
add esp, 0x34
lea ecx, [ebp - 0x28]
jmp 0x696a05
lea ecx, [ebp - 0x18]
call fcn.00429100
push eax
call fcn.005b76c0
add esp, 4
test eax, eax
je 0x6964dc
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00428690
lea eax, [ebp - 0x34]
push eax
call fcn.006a27c0
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004289a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00428810
push 0
lea ecx, [ebp - 0x18]
call fcn.00429100
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00694bb0
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00429100
push eax
call fcn.005b6cc0
add esp, 4
test eax, eax
jne 0x696a02
lea ecx, [ebp - 0x18]
call fcn.00429100
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005b3e90
add esp, 8
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xd]
call fcn.006944a0
test al, al
je 0x6969f6
lea ecx, [ebp - 0x18]
call fcn.00429100
push eax
call fcn.005b4d00
mov ecx, dword [0x80114c]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3c], ebx
test cl, 1
jne 0x696586
or ecx, 1
mov dword [0x80114c], ecx
mov ecx, 0x801144
mov byte [ebp - 4], 8
call fcn.006943c0
push 0x73c2c0
call fcn.006b31e3
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00429100
push eax
call fcn.005b6cc0
add esp, 4
test eax, eax
je 0x6965c1
lea eax, [ebp - 0x18]
mov ecx, 0x801144
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0062cdc0
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x801144]
je 0x6965c1
cmp dword [eax + 0x14], ebx
je 0x6969f6
mov eax, dword [0x80114c]
test al, 2
jne 0x6965f1
or eax, 2
mov dword [0x80114c], eax
mov ecx, 0x801150
mov byte [ebp - 4], 9
call fcn.00628f10
push 0x73c340
call fcn.006b31e3
add esp, 4
mov byte [ebp - 4], 7
cmp dword [0x801154], 0
jbe 0x69661b
lea eax, [ebp - 0x20]
mov ecx, 0x801150
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0062cdc0
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x801150]
jne 0x6969f6
movzx eax, byte [0x801140]
mov ecx, 0x801150
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00628ba0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x68]
call fcn.00694370
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x78]
call fcn.00694370
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00694370
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x88]
call fcn.00694370
push str..flac
lea ecx, [ebp - 0x24]
call fcn.00429150
test eax, eax
jne 0x696701
lea ecx, [ebp - 0x88]
call fcn.00694a20
lea ecx, [ebp - 0x68]
call fcn.00694970
lea ecx, [ebp - 0x78]
call fcn.00694600
lea ecx, [ebp - 0x4c]
call fcn.00694800
jmp 0x69678b
push str..m4a
lea ecx, [ebp - 0x24]
call fcn.00429150
test eax, eax
jne 0x69672c
lea ecx, [ebp - 0x78]
call fcn.00694600
lea ecx, [ebp - 0x68]
call fcn.00694970
lea ecx, [ebp - 0x4c]
call fcn.00694800
jmp 0x696780
push str..aif
lea ecx, [ebp - 0x24]
call fcn.00429150
test eax, eax
je 0x696768
push str..aiff
lea ecx, [ebp - 0x24]
call fcn.00429150
test eax, eax
je 0x696768
lea ecx, [ebp - 0x68]
call fcn.00694970
lea ecx, [ebp - 0x78]
call fcn.00694600
lea ecx, [ebp - 0x4c]
call fcn.00694800
jmp 0x696780
lea ecx, [ebp - 0x4c]
call fcn.00694800
lea ecx, [ebp - 0x68]
call fcn.00694970
lea ecx, [ebp - 0x78]
call fcn.00694600
lea ecx, [ebp - 0x88]
call fcn.00694a20
mov edi, dword [ebp - 0x54]
mov eax, edi
mov esi, dword [ebp - 0x58]
sub eax, esi
sar eax, 2
test eax, eax
je 0x6968ce
mov dword [ebp - 0x34], 0
cmp esi, edi
je 0x696970
nop
mov ebx, dword [esi]
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0x1c], eax
call fcn.006b1920
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push dword [ebx + 8]
push eax
call fcn.006b3670
add esp, 0x10
mov ecx, ebx
call fcn.00690f70
push ebx
call fcn.00428680
add esp, 4
cmp dword [ebp - 0x1c], 0
jle 0x696898
cmp dword [ebp - 0x14], 0
je 0x696898
push ecx
mov eax, esp
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.005b5ff0
add esp, 8
call fcn.005b1510
add esp, 4
test eax, eax
je 0x696886
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
push ebx
call fcn.00429100
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00694bb0
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
inc ebx
mov byte [ebp - 4], 0xb
push 0x40000000
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
call fcn.00429100
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6968ab
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00428810
push dword [ebp - 0x14]
call fcn.00428680
add esp, 4
mov dword [ebp - 0x14], 0
add esi, 4
cmp esi, edi
jne 0x6967b0
mov ebx, dword [ebp - 0x3c]
jmp 0x696970
push dword [ebp - 0x14]
call fcn.00428680
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00428810
jmp 0x6969d1
cmp dword [ebp - 0x1c], 0
jle 0x696970
cmp dword [ebp - 0x14], 0
je 0x696970
push ecx
mov eax, esp
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.005b5ff0
add esp, 8
call fcn.005b1510
add esp, 4
test eax, eax
je 0x69695e
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.00429100
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x69693d
push dword [ebp - 0x14]
call fcn.00428680
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x6969d1
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.00428680
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [0x801154], 0
jbe 0x6969a5
lea eax, [ebp - 0x20]
mov ecx, 0x801150
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0062cdc0
mov eax, dword [ebp - 0x3c]
cmp eax, dword [0x801150]
je 0x6969a5
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x801150
push eax
call fcn.00698e10
lea ecx, [ebp - 0x20]
call fcn.00429100
push eax
call fcn.005b6cc0
add esp, 4
mov ecx, 0x801144
test eax, eax
lea eax, [ebp - 0x18]
push eax
jne 0x6969cc
call fcn.00694400
mov dword [eax], ebx
jmp 0x6969d1
call fcn.00699080
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x6969f6
push eax
call fcn.00428680
add esp, 4
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00428810
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00428810
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00428810
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret