Function at 0x4305e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x120
push 0x4aa7e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x4aa64a], 0
je 0x4308b1
push esi
push edi
push 0
push 1
push 0xc
push str.Errorlog.txt
call fcn.00476070
mov ecx, dword [0x4aa460]
mov edi, eax
mov eax, dword [0x4aa560]
push eax
push ecx
push edi
mov dword [esp + 0x30], edi
call fcn.00441630
push 0
push 0x80
push 4
push 0x40000000
push edi
call fcn.004443d0
mov esi, eax
add esp, 0x30
cmp esi, 0xffffffff
je 0x4308a6
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
lea ecx, [eax + edx]
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jae 0x43089f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [esp + 0x138]
mov eax, dword [esp + 0x10]
movsx ecx, byte [eax]
push ecx
push 0x495554
push 0xffff0000
call fcn.00430400
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp byte [edx], 0xa
jne 0x4306e2
push 0
lea eax, [esp + 0x10]
push eax
push 1
push 0x49557c
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
push 0x494898
push esi
call edi
push esi
mov dword [0x4a92dc], 1
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x430885
cmp dword [0x4a92dc], 0
je 0x430874
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
test eax, eax
je 0x430754
cmp byte [esp + 0x2c], 0
lea eax, [esp + 0x2c]
je 0x43072f
add eax, 1
cmp byte [eax], 0
jne 0x430727
push 0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push edx
sub eax, ecx
push eax
mov edx, ecx
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 1
push 0x495578
push esi
call edi
push 0x100
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
test eax, eax
je 0x4307ae
cmp byte [esp + 0x2c], 0
lea eax, [esp + 0x2c]
je 0x430789
add eax, 1
cmp byte [eax], 0
jne 0x430781
push 0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
sub eax, edx
push eax
mov eax, edx
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x495574
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0xb
push 0x495568
push esi
call edi
mov eax, str.1.2.1.442a
add eax, 1
cmp byte [eax], 0
jne 0x4307c4
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, str.1.2.1.442a
push eax
push str.1.2.1.442a
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 2
push 0x495574
push esi
call edi
mov ecx, dword [esp + 0x130]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call section..text
mov edx, dword [esp + 0x13c]
add esp, 4
push eax
push edx
push esi
call edi
mov eax, dword [esp + 0x134]
push eax
push str.__d_:
lea ecx, [esp + 0x34]
push 0x100
push ecx
call fcn.0044e7a0
add esp, 0x10
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push ebp
call section..text
add esp, 4
push eax
push ebp
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
push str.__:
push esi
call edi
mov dword [0x4a92dc], 0
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push 1
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jb 0x430687
mov edi, dword [esp + 0x18]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00441a60
add esp, 4
pop edi
pop esi
push 0x4aa7e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x120
ret