Function at 0x4010b0
Capabilities:
Move file

Disassembly:
sub esp, 0x364
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x378]
push pe_nt_image_headers32
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 0x401118
push ebx
push ebx
push pe_nt_image_headers32
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 0x401111
mov byte [esp + ebp + 0x70], bl
jmp 0x401118
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 0x4011bf
mov eax, edx
mov dword [eax + 0x234], 0x800
mov ecx, dword [esi + 8]
mov dword [ecx + 0x18], ebx
cmp dword [esp + 0x388], ebx
jne 0x401185
push edi
lea edx, [esp + 0x174]
push str._s.bak
push edx
mov edx, pe_nt_image_headers32
call fcn.00401000
add esp, 0xc
push 1
lea eax, [esp + 0x174]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x20
push 0x57e92c
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 0x4011c6
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 0x401338
push edi
add eax, 0x30
push pe_nt_image_headers32
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 0x401214
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 0x40122f
mov ecx, edi
call fcn.00402760
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40124a
cmp dword [eax + 0xc], ebx
jne 0x40124a
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 0x57e930
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 0x4012f1
xor edi, edi
cmp ecx, ebx
jle 0x4012f1
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 0x4012c0
mov eax, dword [esi + 8]
cmp dword [eax + 0x260], ebx
je 0x401319
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.0051973e
add esp, 0x364
ret 0x18