Function at 0x4139a0
Capabilities:
Move file
Print debug messages

Disassembly:
mov eax, 0x12c4
call fcn.00416850
call fcn.00413900
test eax, eax
mov dword [esp], eax
jne 0x4139c0
call fcn.00413940
mov dword [esp], eax
mov eax, dword [0x43ac04]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x12d4]
push edi
cmp eax, esi
jg 0x41409c
mov edi, dword [0x43ac18]
test edi, edi
je 0x413a24
mov ebp, dword [esp + 0x12dc]
test ebp, ebp
je 0x41409c
test edi, edi
je 0x41409c
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
push ebp
push edi
call ebx
add esp, 8
test eax, eax
je 0x413a1c
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4139ff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c4
ret
test edi, edi
je 0x41409c
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2d4]
rep stosd dword es:[edi], eax
test byte [0x43ac0c], 3
je 0x413b35
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ebp, eax
mov al, byte [0x43ac0c]
add esp, 8
test al, 1
je 0x413acf
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
inc eax
push edx
add ecx, 0x76c
push eax
push ecx
push str._04d__02d__02d
lea edx, [esp + 0xf0]
push 0x1f4
push edx
call ebx
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2d4]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x12d8]
test byte [0x43ac0c], 2
je 0x413b35
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push str._02d:_02d:_02d
lea eax, [esp + 0xf0]
push 0x1f4
push eax
call ebx
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2d4]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x12d8]
test byte [0x43ac0c], 4
je 0x413be7
cmp esi, 0x14
ja case.0x413b4f.5
xor eax, eax
mov al, byte [esi + 0x4140c0]
jmp dword [eax*4 + 0x4140a8]
lea edx, [esp + 0x2d4]
mov edi, str._ALL_
jmp 0x413bc2
lea edx, [esp + 0x2d4]
mov edi, str._DEBUG_
jmp 0x413bc2
lea edx, [esp + 0x2d4]
mov edi, str._NOTE__
jmp 0x413bc2
lea edx, [esp + 0x2d4]
mov edi, str._WARN__
jmp 0x413bc2
lea edx, [esp + 0x2d4]
mov edi, str._ERROR_
jmp 0x413bc2
push esi
push str.__d_
lea eax, [esp + 0xe8]
push 0x1f4
push eax
call ebx
add esp, 0x10
lea edi, [esp + 0xe0]
lea edx, [esp + 0x2d4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [0x43ac0c], 8
je 0x413c41
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xe0]
mov ecx, dword [eax]
push ecx
push str._0x_x_
push 0x1f4
push edx
call ebx
lea edi, [esp + 0xf0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2d4]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [0x43ac0c], 0x10
je 0x413ca0
mov eax, dword [esp + 0x12dc]
test eax, eax
je 0x413ca0
push eax
push str.__s__t
lea eax, [esp + 0xe8]
push 0x1f4
push eax
call ebx
lea edi, [esp + 0xf0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2d4]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [0x43ac0c], 0x20
je 0x413d02
mov ecx, dword [esp + 0x12e0]
lea eax, [esp + 0x12e4]
push eax
push ecx
lea edx, [esp + 0xe8]
push 0x1f4
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
lea edi, [esp + 0xf0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2d4]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43acbc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x43ac00]
mov ecx, ebp
and ecx, 3
test al, 1
rep movsb byte es:[edi], byte [esi]
je 0x413d4a
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x43ac00], 2
je 0x41409c
mov al, byte [0x43ac08]
lea edi, [esp + 0x2d4]
test al, 1
je 0x413d98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [0x43ac40]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2d8]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__write]
mov eax, dword [0x43ac40]
jmp 0x413dc6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x10]
not ecx
mov edx, dword [esi + 4]
dec ecx
push ecx
lea ecx, [esp + 0x2d8]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__write]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
mov al, byte [0x43ac00]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x10
test al, 4
je 0x413f5c
mov ecx, dword [0x43b3ac]
push 0xffffffffffffffff
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov esi, eax
mov eax, dword [0x43b3b4]
add esp, 8
test eax, eax
jne 0x413e4b
mov ecx, dword [0x43ac24]
push esi
mov dword [esi + 8], ecx
mov edx, dword [0x43ac20]
mov dword [esi + 4], edx
mov eax, dword [0x43ac1c]
mov dword [esi], eax
call dword [sym.imp.MSVCRT.dll_mktime]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
mov dword [0x43b3b4], eax
jge 0x413f4f
jmp 0x413f45
cmp dword [esp + 0x10], eax
jle 0x413f4f
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x43ac40]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [0x43ac1c]
mov eax, dword [0x43ac20]
mov ecx, dword [0x43ac24]
push edx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x14]
inc eax
push edx
mov edx, dword [0x43ac14]
add ecx, 0x76c
push eax
push ecx
push edx
push str._s._04d_02d_02d_02d_02d_02d
lea eax, [esp + 0x3c]
push 0x64
push eax
call ebx
mov ecx, dword [0x43ac14]
lea edx, [esp + 0xa8]
push ecx
push str._s.log
push 0x64
push edx
call ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0xb8]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
mov edx, dword [0x43ac14]
add esp, 0x44
lea eax, [esp + 0x18]
push 0x43ac80
push edx
push str._s._s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x28]
push 0x43ac74
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edx, dword [0x43ac24]
mov dword [0x43ac40], eax
mov dword [esi + 8], edx
mov eax, dword [0x43ac20]
mov dword [esi + 4], eax
mov ecx, dword [0x43ac1c]
push esi
mov dword [esi], ecx
call dword [sym.imp.MSVCRT.dll_mktime]
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, ecx
mov dword [0x43b3b4], eax
jge 0x413f4f
add eax, 0x15180
mov dword [0x43b3b4], eax
mov edx, dword [0x43b3ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test byte [0x43ac00], 0x10
je 0x41409c
mov eax, dword [0x43b3ac]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [0x43ac40]
mov esi, dword [sym.imp.MSVCRT.dll_ftell]
push ecx
call esi
mov edx, dword [0x43ac40]
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edx
mov edi, eax
call ebp
mov eax, dword [0x43ac40]
push eax
call esi
mov ecx, dword [0x43ac40]
push 0
push edi
push ecx
mov esi, eax
call ebp
add esp, 0x20
cmp esi, 0x989680
jle 0x41408f
mov edx, dword [0x43ac40]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x43ac10]
mov ecx, dword [0x43ac14]
push eax
push ecx
push str._s__d.log
lea edx, [esp + 0x28]
push 0x64
push edx
call ebx
mov eax, dword [0x43ac14]
lea ecx, [esp + 0x94]
push eax
push str._s.log
push 0x64
push ecx
call ebx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.MSVCRT.dll__unlink]
lea eax, [esp + 0x44]
lea ecx, [esp + 0xa8]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
mov edx, dword [0x43ac14]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
push 0x43ac80
push edx
lea eax, [esp + 0x54]
push str._s._s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x44
lea ecx, [esp + 0x18]
push 0x43ac74
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov dword [0x43ac40], eax
mov eax, dword [0x43ac10]
add esp, 8
inc eax
cmp eax, 9
mov dword [0x43ac10], eax
jle 0x41408f
mov dword [0x43ac10], 0
mov edx, dword [0x43b3ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c4
ret