Function at 0x408a10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x538
mov eax, dword [0x43e0c0]
xor eax, esp
mov dword [esp + 0x534], eax
mov eax, dword [esp + 0x53c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x400
lea ecx, [esp + 0x44]
push ebx
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], ebx
call fcn.00419c30
add esp, 0xc
or ebp, 0xffffffff
cmp dword [0x440160], 0x440168
jne 0x408a73
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x440168]
mov byte [esp + eax + 0x40], cl
add eax, 1
cmp cl, bl
jne 0x408a60
jmp 0x408aec
call fcn.0040b7c2
mov eax, dword [eax + 4]
lea ecx, [eax + 0xac]
lea esi, [esp + 0x40]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
cmp dl, bl
jne 0x408a87
add eax, 0x1b0
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408aa0
lea edi, [esp + 0x40]
sub eax, edx
add edi, ebp
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x408ab1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x40]
rep movsb byte es:[edi], byte [esi]
add eax, ebp
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x408ad1
mov edx, dword [str..LOG]
mov cl, byte [0x433264]
mov dword [eax], edx
mov byte [eax + 4], cl
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x444]
push eax
push 0x3ff
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
lea edx, [esp + 0x458]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
jne 0x408b34
xor eax, eax
jmp 0x408c5d
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebx
push 2
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x22]
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x5c]
push str._04d__02d__02d__02d:_02d:_02d:_03d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x64]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408bb3
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
push eax
push esi
call edi
mov ebp, dword [esp + 0x38]
mov eax, ebp
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408be4
sub eax, ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push esi
mov dword [esp + 0x24], eax
call edi
mov ax, word [0x433238]
mov cl, byte [0x43323a]
mov word [esp + 0x40], ax
lea eax, [esp + 0x40]
mov byte [esp + 0x42], cl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408c20
sub eax, edx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
push esi
mov dword [esp + 0x24], eax
call edi
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x544]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419953
add esp, 0x538
ret 4