Function at 0x42f330
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x471646
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [esp + 0xa0]
lea eax, [esp + 0x28]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x36]
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x34]
push edx
movzx edx, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x36]
push ecx
movzx ecx, word [esp + 0x3e]
push edx
push eax
push ecx
push str.__02d._02d._04d___02d:_02d:_02d._03d_
lea edx, [esp + 0x5c]
push 0x28
push edx
call fcn.00450ae9
add esp, 0x28
call fcn.00440dd3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f3d1
push 0x80004005
call fcn.00402690
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x98], 0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
push str._s__ThID:__6d____60s_Ln:_4d_
push ecx
call fcn.0040a750
add esp, 0x18
call fcn.00440dd3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f42c
push 0x80004005
call fcn.00402690
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x98], 1
mov ecx, dword [esi]
mov edx, dword [esp + 0x14]
push edi
push ecx
push edx
lea eax, [esp + 0x28]
push str._s_data:__s__s_r_n
push eax
call fcn.0040a750
add esp, 0x14
cmp dword [esi + 0xc], 0
mov bl, 1
je 0x42f5a8
call fcn.00440dd3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f485
push 0x80004005
call fcn.00402690
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea edi, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.0042f6d0
mov bl, al
cmp bl, 1
jne 0x42f580
push 0x48a134
lea ecx, [esp + 0x24]
call fcn.00402870
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xa4], 3
call fcn.00408a80
mov ecx, edi
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xb0], 4
call fcn.00408a80
add esp, 0x18
mov byte [esp + 0x98], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408e70
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f530
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f558
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f5a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x18]
push 0xfa0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov ebp, dword [esp + 0x1c]
jne 0x42f652
mov eax, dword [esi + 0x10]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42f5ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42f652
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov dword [esp + 0x24], 0
mov eax, dword [ebp - 0xc]
lea edx, [esp + 0x24]
push edx
add eax, eax
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x42f652
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push str.WriteLog___Error_while_trying_to_get_Error_code_and_text__Failed_with_Error_code__d__0x_x_
push 1
push 0xe2
push str.CLogger::WriteLog
call fcn.0042f100
add esp, 0x18
lea eax, [ebp - 0x10]
mov byte [esp + 0x98], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f676
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f6a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0044fc05
add esp, 0x88
ret 4