Function at 0x414ec0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [0x446ff4]
test ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
lea eax, [ebp + 0xac]
lea edx, [ebp + 0xa8]
jne 0x414f15
mov dword [eax], ecx
mov dword [edx], ecx
or eax, 0xffffffff
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004217dd
add esp, 0x110
ret
mov esi, dword [ecx]
push eax
mov eax, dword [esi + 0x24]
push edx
call eax
test eax, eax
jne 0x414ef9
mov ecx, dword [0x446ff4]
test ecx, ecx
lea ebx, [ebp + 0xbc]
lea edi, [ebp + 0xb8]
lea esi, [ebp + 0xb4]
lea eax, [ebp + 0xb0]
jne 0x414f53
mov dword [ebx], ecx
mov dword [edi], ecx
mov dword [esi], ecx
mov dword [eax], ecx
mov eax, 0xfffffffe
jmp 0x414efc
mov edx, dword [ecx]
push ebx
push edi
push esi
push eax
mov eax, dword [edx + 0x2c]
call eax
test eax, eax
jne 0x414f4c
cmp dword [ebp + 0x1688], eax
je 0x414fbe
mov ecx, dword [ebx]
mov edx, dword [edi]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0xb0]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str.ASIOGetBufferSize__min:__d__max:__d__preferred:__d__granularity:__d__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x1684]
add esp, 0x18
test eax, eax
mov dword [esp + 0x10], eax
je 0x414fbe
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x446ff4]
test ecx, ecx
je 0x4150f2
mov edx, dword [ecx]
lea eax, [ebp + 0xc0]
push eax
mov eax, dword [edx + 0x34]
call eax
xor edx, edx
cmp eax, edx
jne 0x4150f2
fld qword [0x43d890]
fld qword [esp + 0x128]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x415092
sub esp, 8
fstp qword [esp]
call fcn.00417b40
add esp, 8
test eax, eax
jne 0x415088
lea edx, [ebp + 0xc0]
call fcn.00417b20
test eax, eax
jne 0x41507e
mov edx, edi
mov eax, ebx
lea edi, [ebp + 0xb0]
call fcn.00417af0
test eax, eax
jne 0x41507a
cmp dword [ebp + 0x1688], eax
je 0x41507a
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xb8]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0xb0]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str.NOTE:_Change_ASIO_Sampling_Rate_r_nASIOGetBufferSize__min:__d__max:__d__preferred:__d__granularity:__d__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x1684]
add esp, 0x18
test eax, eax
je 0x41507a
push eax
lea esi, [esp + 0x1c]
call fcn.00407690
add esp, 4
xor edx, edx
jmp 0x415094
mov eax, 0xfffffffa
jmp 0x414efc
mov eax, 0xfffffffb
jmp 0x414efc
fstp st(0)
mov ecx, dword [0x446ff4]
cmp ecx, edx
je 0x4150b4
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
call edx
xor edx, edx
test eax, eax
jne 0x4150b4
mov byte [ebp + 0xc8], 1
jmp 0x4150bb
mov byte [ebp + 0xc8], 0
mov dword [ebp + 0x16c8], edx
mov dword [ebp + 0x16cc], edx
mov dword [ebp + 0x16d4], edx
mov dword [ebp + 0x170c], edx
mov dword [ebp + 0x1710], edx
mov dword [ebp + 0x171c], edx
mov dword [ebp + 0x1728], edx
mov dword [ebp + 0x1724], edx
xor eax, eax
jmp 0x414efc
mov eax, 0xfffffffd
jmp 0x414efc