Function at 0x4a5a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 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 esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x53b7d0
push str._sErrorLog
push edi
call esi
push edi
call fcn.004e447d
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4a5afc
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 0x4a5b01
movzx ecx, word [ebp - 0xe]
sub eax, edx
movzx edx, word [ebp - 0x12]
push ecx
movzx ecx, word [ebp - 0x14]
push edx
push ecx
sar eax, 1
lea edx, [edi + eax*2]
push str._04u_02u_02u.log
push edx
call esi
add esp, 0x14
push 0x53b220
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 0x4a5bcc
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 0x4a5bb7
push 0x53b220
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 eax, [ebp - 0x18]
push eax
push 2
lea ecx, [ebp - 0x1c]
push ecx
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 - 0x20], 0
je 0x4a5d5a
push 0x80
call fcn.004e4240
push 0x80
mov edi, eax
push 0
push edi
call fcn.004e7d90
movzx edx, word [ebp - 6]
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 0xa]
add esp, 0x10
push edx
movzx edx, word [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__i__t__s__t__02u:_02u:_02u:_03u__t_
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, edi
add esp, 0x20
lea edx, [eax + 2]
jmp 0x4a5c50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5c50
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
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4a5c80
sub eax, ecx
push 0
sar eax, 1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
push edx
push eax
push esi
call ebx
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
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 dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x80
push 0
push edi
call fcn.004e7d90
push edi
call fcn.004e424b
mov edi, dword [ebp - 0x24]
add esp, 0x10
push 0
lea edx, [ebp - 0x18]
push edx
test edi, edi
je 0x4a5d50
push 2
push 0x520f44
push esi
call ebx
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5d10
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
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
push 2
push 0x523a74
push esi
call ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0x51c838
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x53b220
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