Function at 0x437da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xce8
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x430], 0
push 0x427
push 0
lea eax, [ebp - 0x42f]
push eax
call fcn.00447660
add esp, 0xc
push 0x4cb278
call fcn.004480c0
add esp, 4
test eax, eax
jne 0x437e51
push 0x104
push 0x4cb278
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4cb278
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [0x4cb270], eax
push 0
push 0
push 3
push 0
push 1
push closesocket
push 0x4cb278
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x437e51
lea ecx, [ebp - 0x43c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4b10ec], 0
je 0x437f49
cmp dword [0x4cb26c], 0
jne 0x437e8c
push 0x498c48
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4cb26c], eax
cmp dword [0x4cb26c], 0
jne 0x437e8c
mov dword [0x4cb26c], 0xffffffff
cmp dword [0x4cb26c], 0xffffffff
je 0x437f49
mov byte [ebp - 0x858], 0
push 0x400
push 0
lea ecx, [ebp - 0x857]
push ecx
call fcn.00447660
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x858]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x858]
push eax
mov ecx, dword [0x4cb270]
push ecx
push str.__s___s
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x430]
mov dword [ebp - 0x444], eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004480c0
add esp, 4
add eax, 1
mov dword [ebp - 0x448], eax
lea edx, [ebp - 0x44c]
push edx
push 0
push 0x4a
mov eax, dword [0x4cb26c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b10e8], 0
je 0x43807c
cmp dword [0x4cb268], 0
jne 0x437f84
push 0
push 0x498c5c
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4cb268], eax
cmp dword [0x4cb268], 0
jne 0x437f84
mov dword [0x4cb268], 0xffffffff
cmp dword [0x4cb268], 0xffffffff
je 0x43807c
mov byte [ebp - 0xce0], 0
push 0x400
push 0
lea ecx, [ebp - 0xcdf]
push ecx
call fcn.00447660
add esp, 0xc
mov byte [ebp - 0x8d8], 0
push 0x63
push 0
lea edx, [ebp - 0x8d7]
push edx
call fcn.00447660
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea ecx, [ebp - 0x8d8]
push ecx
push 0
lea edx, [ebp - 0x870]
push edx
push inet_ntoa
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x85c], eax
mov ecx, dword [ebp - 0x85c]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xce0]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 0x85c], 0
lea ecx, [ebp - 0xce0]
push ecx
mov edx, dword [0x4cb270]
push edx
lea eax, [ebp - 0x8d8]
push eax
push str._s____s___s
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x78
mov edx, dword [0x4cb268]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x860], eax
lea eax, [ebp - 0x430]
push eax
push 0
push 0x180
mov ecx, dword [ebp - 0x860]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4cb050], 0
je 0x43811c
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push str.C:log.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xce4], eax
cmp dword [ebp - 0xce4], 0xffffffff
je 0x43811c
push 2
push 0
push 0
mov edx, dword [ebp - 0xce4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xce8]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004480c0
add esp, 4
push eax
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0xce4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0xce8]
push ecx
push 2
push 0x498c84
mov edx, dword [ebp - 0xce4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xce4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret