Function at 0x402070
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x134
mov eax, dword [0x46974c]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x138]
push ebx
mov ebx, ecx
cmp dword [ebx + 0x50], 0
mov dword [esp + 4], eax
je 0x402307
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push str.C:Program_FilesAnalog_DevicesSoundMAXAEFilters.log
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4020f0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push str.C:Program_FilesAnalog_DevicesSoundMAXAEFilters.log
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x402305
push ebp
xor ebp, ebp
cmp dword [ebx + 4], ebp
je 0x4020fd
mov ebp, 1
cmp dword [ebx + 8], 0
je 0x402106
add ebp, 2
cmp dword [ebx + 0xc], 0
je 0x40210f
add ebp, 4
cmp dword [ebx + 0x10], 0
je 0x402118
add ebp, 8
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x28
lea edx, [esp + 0x54]
push edx
push 0x44dcb0
lea eax, [esp + 0x24]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
jmp 0x402150
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402150
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0x44dcac
sub eax, edx
push 0x14
sar eax, 1
lea ecx, [esp + 0x48]
push ecx
add eax, 1
push eax
lea edx, [esp + 0x64]
push edx
push 0x400
push 0
call esi
push 0x28
lea eax, [esp + 0x54]
push eax
push 0x44dc98
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea eax, [esp + 0x50]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4021b0
push 0
push 0x44dcac
sub eax, ecx
push 0x14
sar eax, 1
lea edx, [esp + 0x34]
push edx
add eax, 1
push eax
lea eax, [esp + 0x64]
push eax
push 0x400
push 0
call esi
mov eax, dword [esp + 0x14c]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x150]
jne 0x402230
cmp ecx, eax
jne 0x402270
mov ecx, dword [ebx + 0x18]
movzx eax, word [esp + 0x26]
mov edx, dword [esp + 0x10]
push ebp
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x50]
push edx
add ebx, 0x60
push ebx
push str._s__s__s._i:__s___i____i__r_n
lea eax, [esp + 0x98]
push 0xc8
push eax
call fcn.004327cb
add esp, 0x28
jmp 0x4022aa
cmp ecx, 0xffffffff
jne 0x402270
mov ecx, dword [ebx + 0x18]
mov edx, dword [esp + 0x10]
push ebp
push ecx
push eax
movzx eax, word [esp + 0x32]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x54]
push edx
add ebx, 0x60
push ebx
push str._s__s__s._i:__s___i____i____i__r_n
lea eax, [esp + 0x9c]
push 0xc8
push eax
call fcn.004327cb
add esp, 0x2c
jmp 0x4022aa
mov edx, dword [ebx + 0x18]
push ebp
push edx
push ecx
movzx ecx, word [esp + 0x32]
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x58]
push eax
add ebx, 0x60
push ebx
push str._s__s__s._i:__s___i____i____i____i__r_n
lea ecx, [esp + 0xa0]
push 0xc8
push ecx
call fcn.004327cb
add esp, 0x30
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x154], 0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
je 0x4022d9
push 0
lea edx, [esp + 0x14]
push edx
push 2
push 0x44dc2c
push edi
call esi
lea eax, [esp + 0x74]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4022e0
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x80]
push edx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x134]
pop ebx
xor ecx, esp
call fcn.00432688
add esp, 0x134
ret 0x10