Function at 0x408150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x41e2dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.Cwsound.exe
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..txt
lea edx, [ebp - 0x220]
push edx
mov byte [ebp + eax - 0x220], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [ebp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov dword [ebp - 0x238], edi
push 0
je 0x408211
lea ecx, [ebp - 0x228]
push ecx
push str.Delta____Event____Data_n
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push str.Delta____Event____Data_n
push edi
call esi
push 0
lea edx, [ebp - 0x228]
push edx
push 0x418f50
call ebx
push eax
push 0x418f50
jmp 0x408244
lea eax, [ebp - 0x228]
push eax
push str.Event____Data_n
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push str.Event____Data_n
push edi
call esi
push 0
lea ecx, [ebp - 0x228]
push ecx
push 0x418fac
call ebx
push eax
push 0x418fac
push edi
call esi
mov esi, dword [ebp + 0xc]
shr esi, 2
xor ebx, ebx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], ebx
test esi, esi
jle 0x4083b6
jmp 0x408276
mov esi, dword [ebp - 0x22c]
cmp dword [ebp + 0x10], 0
je 0x4082a4
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + ebx*4]
push eax
lea ecx, [ebp - 0x11c]
push str._08lX
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc ebx
mov dword [ebp - 0x224], ebx
jmp 0x4082ab
mov byte [ebp - 0x11c], 0
cmp ebx, esi
jge 0x4082eb
mov edx, dword [ebp - 0x230]
mov esi, dword [edx + ebx*4]
push esi
lea eax, [ebp - 0x18]
push str._08lX
push eax
mov dword [ebp - 0x234], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc ebx
mov dword [ebp - 0x224], ebx
jmp 0x4082f1
mov esi, dword [ebp - 0x234]
test esi, esi
jns 0x408373
mov eax, esi
and eax, 0xffffff
add eax, 3
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor esi, esi
test edi, edi
jle 0x408365
mov eax, dword [ebp - 0x230]
lea ebx, [eax + ebx*4]
jmp 0x408320
mov ecx, dword [ebp - 0x224]
lea edx, [esi + ecx]
cmp edx, dword [ebp - 0x22c]
jge 0x40835f
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x18]
push str._08lX
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc esi
add ebx, 4
cmp esi, edi
jl 0x408320
mov ebx, dword [ebp - 0x224]
mov edi, dword [ebp - 0x238]
add ebx, esi
mov dword [ebp - 0x224], ebx
push 0x418890
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, dword [ebp - 0x22c]
jl 0x408270
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b545
mov esp, ebp
pop ebp
ret