Function at 0x4a5710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x208
call fcn.004e4240
push 0x208
mov edi, eax
push 0
push edi
call fcn.004e7d90
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push 0x53b7d0
push 0x523a78
push edi
call ebx
push edi
call fcn.004e447d
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4a577f
push edi
call fcn.004e444b
add esp, 4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5784
sub eax, edx
sar eax, 1
push esi
lea ecx, [edi + eax*2]
push 0x5238d0
push ecx
call ebx
push edi
call fcn.004e447d
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a57b6
push edi
call fcn.004e444b
add esp, 4
mov eax, edi
lea edx, [eax + 2]
jmp 0x4a57c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a57c0
movzx ecx, word [ebp - 0x12]
sub eax, edx
movzx edx, word [ebp - 0xe]
push edx
movzx edx, word [ebp - 0x14]
push ecx
push edx
sar eax, 1
lea eax, [edi + eax*2]
push str._04u_02u_02u.log
push eax
call ebx
add esp, 0x14
push 0x53b1f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x8000080
push 3
push 0
push 3
push 0xc0000000
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a588b
push 0
push 0x8000080
push 1
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a5876
push 0x53b1f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x208
push 0
push edi
call fcn.004e7d90
push edi
call fcn.004e424b
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
lea edx, [ebp - 0x1c]
push edx
push esi
mov word [ebp - 0x1c], 0xfeff
call ebx
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x208
push 0
push edi
call fcn.004e7d90
push edi
call fcn.004e424b
add esp, 0x10
cmp dword [ebp - 0x24], 0
je 0x4a5a69
push 0x80
call fcn.004e4240
push 0x80
mov edi, eax
push 0
push edi
mov dword [ebp - 0x2c], edi
call fcn.004e7d90
movzx eax, word [ebp - 6]
movzx ecx, word [ebp - 8]
movzx edx, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push ecx
push edx
push eax
push str.__02u:_02u:_02u:_03u__t_
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5900
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax]
push edx
push edi
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call edi
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4a5932
sub eax, ecx
push 0
sar eax, 1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x24]
push edx
push eax
push esi
call ebx
push 2
push 0
push 0
push esi
call edi
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
push 0x523a74
push esi
call ebx
push 2
push 0
push 0
push esi
call edi
mov edx, dword [ebp - 0x2c]
push 0x80
push 0
push edx
call fcn.004e7d90
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004e424b
add esp, 0x10
cmp dword [ebp - 0x20], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
je 0x4a5a5f
push 2
push 0x520f44
push esi
call ebx
push 2
push 0
push 0
push esi
call edi
mov eax, dword [ebp - 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a59c0
mov ecx, dword [ebp - 0x20]
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 0x18]
push edx
add eax, eax
push eax
push ecx
push esi
call ebx
push 2
push 0
push 0
push esi
call edi
push 0
lea edx, [ebp - 0x18]
push edx
push 2
push 0x523a74
push esi
call ebx
cmp dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x18]
push eax
je 0x4a5a5f
push 2
push 0x520f44
push esi
call ebx
push 2
push 0
push 0
push esi
call edi
mov eax, dword [ebp - 0x28]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5a20
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
push edx
push eax
push esi
call ebx
push 2
push 0
push 0
push esi
call edi
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
push 0x523a74
push esi
call ebx
push 0
lea edx, [ebp - 0x18]
push edx
push 4
push 0x51c838
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x53b1f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret