Function at 0x40cb6c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x416c5a
call fcn.00413044
sub esp, 0x130
push dword [ebp + 8]
call fcn.0040cb49
test al, al
je 0x40cdf3
push ebx
push esi
push edi
push 7
pop ecx
mov esi, 0x402d24
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x58]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4c]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x58]
push eax
lea eax, [ebp - 0x78]
push 0x402cf4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
mov edi, eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea esi, [ebp - 0x78]
add esi, edi
cmp dword [ebp - 0x13c], 0
jne 0x40cc02
xor eax, eax
mov byte [esi], 0x5a
inc eax
jmp 0x40cc2f
push dword [ebp - 0x13c]
call sub.api_ms_win_crt_utility_l1_1_0.dll_labs
push 0x3c
pop ecx
cdq
idiv ecx
mov eax, dword [ebp - 0x13c]
push edx
push 0xffffffffffffffc4
pop ecx
cdq
idiv ecx
push eax
push 0x402d18
push esi
call fcn.004125c6
add esp, 0x14
add eax, edi
lea ecx, [ebp - 0x48]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00412232
push 4
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040ca74
mov esi, dword [eax*4 + 0x4182cc]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00412463
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40cd4b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40cd4b
lea edx, [ebp - 0x11]
add eax, ecx
push edx
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.00411e1e
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x30], bl
push 0x40000001
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040d574
mov esi, 0x402d44
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00412463
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
push eax
call fcn.00412463
mov esi, 0x402d48
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00412463
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40cd34
mov ecx, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x40cd2b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c9b4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.00411d68
pop ecx
pop ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], bl
call fcn.004123cd
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40cd58
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x48]
push eax
call fcn.00412463
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
dec eax
push eax
call fcn.00412507
cmp byte [eax], 0xa
je 0x40cd8c
mov edi, 0x402d4c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00412463
push 0xffffffffffffffff
push dword [0x4182e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x10]
call fcn.0040ceb4
mov esi, eax
cmp esi, 0xffffffff
je 0x40cddc
mov ecx, dword [ebp - 0x38]
push 2
push ebx
push ebx
push esi
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x10]
push ebx
push ecx
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x4182e8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp - 0x48]
call fcn.004123cd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x10