Function at 0x433ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x120
push esi
push edi
push 0x4b17a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 1
push 0xc
push str.Errorlog.txt
call fcn.0047b840
push 0x10000
mov edi, eax
push 0x80000
push edi
mov dword [esp + 0x30], edi
call fcn.004451a0
push 0
push 0x80
push 4
push 0x40000000
push edi
call fcn.00447e10
mov esi, eax
add esp, 0x30
cmp esi, 0xffffffff
je 0x434195
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x13c]
add ecx, eax
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jae 0x43418e
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
movsx eax, byte [edx]
push eax
push 0x49b31c
push 0xffff0000
call fcn.00433d00
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp byte [ecx], 0xa
jne 0x433fd1
push 0
lea edx, [esp + 0x10]
push edx
push 1
push 0x49b344
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 1
push 0x49a6b4
push esi
call edi
push esi
mov dword [0x4b033c], 1
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x434174
cmp dword [0x4b033c], 0
je 0x434163
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100
lea edx, [esp + 0x30]
push edx
push 0
lea eax, [esp + 0x28]
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
test eax, eax
je 0x434043
cmp byte [esp + 0x2c], 0
lea eax, [esp + 0x2c]
je 0x43401e
add eax, 1
cmp byte [eax], 0
jne 0x434016
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 1
push 0x49b340
push esi
call edi
push 0x100
lea edx, [esp + 0x30]
push edx
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
test eax, eax
je 0x43409d
cmp byte [esp + 0x2c], 0
lea eax, [esp + 0x2c]
je 0x434078
add eax, 1
cmp byte [eax], 0
jne 0x434070
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 0x49b33c
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0xb
push 0x49b330
push esi
call edi
mov eax, str.1.2.1.451a
add eax, 1
cmp byte [eax], 0
jne 0x4340b3
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, str.1.2.1.451a
push eax
push str.1.2.1.451a
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 2
push 0x49b33c
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.00452ec0
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 [0x4b033c], 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 0x433f76
mov edi, dword [esp + 0x18]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004455d0
add esp, 4
push 0x4b17a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
add esp, 0x120
ret