Function at 0x419810
Capabilities:
Move file

Disassembly:
sub esp, 0x364
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x378]
push 0x100
push edi
mov esi, ecx
call dword [sym.imp.MSVCR90.dll_wcsnlen]
xor ebx, ebx
add esp, 8
mov ebp, eax
mov byte [esp + 0x70], bl
cmp edi, ebx
je 0x419878
push ebx
push ebx
push 0x100
lea eax, [esp + 0x7c]
push eax
push ebp
push edi
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp ebp, 0x100
jae 0x419871
mov byte [esp + ebp + 0x70], bl
jmp 0x419878
mov byte [esp + 0x16f], bl
push 0x800
call dword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x230], eax
mov edx, dword [esi + 8]
add esp, 4
cmp dword [edx + 0x230], ebx
je 0x41991f
mov eax, edx
mov dword [eax + 0x234], 0x800
mov ecx, dword [esi + 8]
mov dword [ecx + 0x18], ebx
cmp dword [esp + 0x388], ebx
jne 0x4198e5
push edi
lea edx, [esp + 0x174]
push str._s.bak
push edx
mov edx, 0x100
call fcn.00419760
add esp, 0xc
push 1
lea eax, [esp + 0x174]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x20
push 0x5dd3f4
push edi
call dword [sym.imp.MSVCR90.dll__wfsopen]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x18], eax
mov edx, dword [esi + 8]
add esp, 0xc
mov eax, edx
cmp dword [edx + 0x18], ebx
jne 0x419926
mov ecx, dword [eax + 0x230]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [esi + 8]
add esp, 4
mov dword [edx + 0x230], ebx
xor eax, eax
jmp 0x419a98
push edi
add eax, 0x30
push 0x100
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x38c]
mov dword [ecx + 0x24], edx
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x388]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x390]
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x398]
add esp, 0xc
cmp ecx, 0x7a120
mov dword [edx + 0x20], eax
jge 0x419974
mov ecx, 0x7a120
mov edx, dword [esi + 8]
mov dword [edx + 0x28], ecx
mov ecx, dword [esi + 8]
mov dword [ecx + 0x14], 1
cmp eax, ebx
je 0x41998f
mov ecx, edi
call fcn.0041aed0
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4199aa
cmp dword [eax + 0xc], ebx
jne 0x4199aa
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [esi + 8]
mov dword [edx + 0xc], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll__time64]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push 0x1a
push edx
call dword [sym.imp.MSVCR90.dll__ctime64_s]
add esp, 0x10
push 0x1e
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push edx
push 1
xor eax, eax
push 1
mov byte [esp + 0x48], bl
mov word [esp + 0x4c], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x34]
push ecx
push edi
push 0x5dd3f8
push ebx
push 9
push esi
call edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x268]
add esp, 0x18
cmp ecx, ebx
jle 0x419a51
xor edi, edi
cmp ecx, ebx
jle 0x419a51
xor ebp, ebp
lea ebx, [ebx]
mov ecx, dword [esi]
mov ecx, dword [ecx]
lea edx, [esp + 0x34]
push edx
lea eax, [eax + ebp + 0x47c]
push eax
push str.Filter_log_file___s__started_at__s
push ebx
push 9
push esi
call ecx
mov eax, dword [esi + 8]
inc edi
add esp, 0x18
add ebp, 0xc944
cmp edi, dword [eax + 0x268]
jl 0x419a20
mov eax, dword [esi + 8]
cmp dword [eax + 0x260], ebx
je 0x419a79
mov edx, dword [esi]
mov edx, dword [edx]
lea ecx, [esp + 0x34]
push ecx
add eax, 0x270
push eax
push str.Hex_Filter_log_file___s__started_at__s
push ebx
push 9
push esi
call edx
add esp, 0x18
mov ecx, dword [esp + 0x37c]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
push str.Log_level_set_to__d
push ebx
push 9
push esi
call edx
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x370]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051ed00
add esp, 0x364
ret 0x18