Function at 0x4a3520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x2b4], ecx
push edi
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2a4]
push ecx
mov dword [ebp - 0x2b8], edx
mov dword [ebp - 0x2c0], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x292]
push eax
mov word [ebp - 0x294], dx
call fcn.004e8ba0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x56d3b0
lea ecx, [ebp - 0x294]
push str._sEventLog
push ecx
call esi
lea edx, [ebp - 0x294]
push edx
call fcn.004e51cd
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4a35bb
lea eax, [ebp - 0x294]
push eax
call fcn.004e519b
add esp, 4
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a35c4
sub eax, edx
sar eax, 1
push ebx
lea ecx, [ebp + eax*2 - 0x294]
push 0x5230c8
push ecx
call esi
lea edx, [ebp - 0x294]
push edx
call fcn.004e51cd
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a3606
lea eax, [ebp - 0x294]
push eax
call fcn.004e519b
add esp, 4
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3610
movzx ecx, word [ebp - 0x29e]
sub eax, edx
movzx edx, word [ebp - 0x2a2]
push ecx
movzx ecx, word [ebp - 0x2a4]
push edx
push ecx
sar eax, 1
lea edx, [ebp + eax*2 - 0x294]
push str._04u_02u_02u.log
push edx
call esi
add esp, 0x14
push 0x5681d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov esi, 0x56e280
jmp 0x4a3660
mov ecx, esi
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a368a
test dx, dx
je 0x4a3686
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a368a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a3664
xor eax, eax
jmp 0x4a368f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a36c1
mov eax, esi
lea edx, [eax + 2]
jmp 0x4a36a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a36a0
sub eax, edx
sar eax, 1
je 0x4a39cd
add esi, 0x40
inc edi
cmp esi, 0x56ea80
jl 0x4a3660
mov dword [ebp - 0x2ac], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x8000080
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x294]
push eax
mov dword [ebp - 0x2a8], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3743
push 0
push 0x8000080
push 1
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x294]
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4a3a15
push 0
lea edx, [ebp - 0x2a8]
push edx
push 2
lea eax, [ebp - 0x2b0]
push eax
push esi
mov word [ebp - 0x2b0], 0xfeff
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call ebx
cmp dword [ebp - 0x2bc], 0
je 0x4a3a0e
mov eax, dword [ebp - 0x2ac]
inc dword [eax*4 + 0x56ea80]
mov ecx, dword [eax*4 + 0x56ea80]
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x8a]
push eax
mov dword [ebp - 0x2ac], ecx
mov word [ebp - 0x8c], dx
call fcn.004e8ba0
movzx ecx, word [ebp - 0x296]
movzx edx, word [ebp - 0x298]
movzx eax, word [ebp - 0x29a]
push ecx
movzx ecx, word [ebp - 0x29c]
push edx
mov edx, dword [ebp - 0x2ac]
push eax
push ecx
push edx
lea eax, [ebp - 0x8c]
push str.__i__t__02u:_02u:_02u:_03u__t_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x8c]
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a37d6
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x8c]
push eax
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
mov eax, dword [ebp - 0x2bc]
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4a3810
sub eax, ecx
push 0
sar eax, 1
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2bc]
push edx
push eax
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
push 0
lea ecx, [ebp - 0x2a8]
push ecx
push 2
push 0x5232bc
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
cmp dword [ebp - 0x2b4], 0
push 0
lea edx, [ebp - 0x2a8]
push edx
je 0x4a3a04
push 2
push 0x5206d4
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
mov eax, dword [ebp - 0x2b4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3890
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2b4]
push edx
push eax
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
push 0
lea ecx, [ebp - 0x2a8]
push ecx
push 2
push 0x5232bc
push esi
call edi
cmp dword [ebp - 0x2b8], 0
push 0
je 0x4a39fd
lea edx, [ebp - 0x2a8]
push edx
push 2
push 0x5206d4
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
mov eax, dword [ebp - 0x2b8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3904
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2b8]
push edx
push eax
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
push 0
lea ecx, [ebp - 0x2a8]
push ecx
push 2
push 0x5232bc
push esi
call edi
cmp dword [ebp - 0x2c0], 0
push 0
je 0x4a39f4
lea edx, [ebp - 0x2a8]
push edx
push 2
push 0x5206d4
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
mov eax, dword [ebp - 0x2c0]
lea ecx, [eax + 2]
jmp 0x4a3980
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4a3980
sub eax, ecx
push 0
sar eax, 1
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c0]
push edx
push eax
push esi
call edi
push 2
push 0
push 0
push esi
call ebx
push 0
lea ecx, [ebp - 0x2a8]
push ecx
push 2
push 0x5232bc
push esi
call edi
push 0
lea edx, [ebp - 0x2a8]
push edx
jmp 0x4a3a04
mov dword [ebp - 0x2ac], edi
shl edi, 6
lea edx, [edi + 0x56e280]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a39e0
jmp 0x4a36c7
lea eax, [ebp - 0x2a8]
push eax
jmp 0x4a3a04
lea ecx, [ebp - 0x2a8]
push ecx
push 4
push 0x51ca0c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5681d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret