Function at 0x45f0f0
Capabilities:
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x174], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
cmp dword [edi + 0x4c], 0
jbe 0x45f510
mov eax, dword [edi + 0x50]
cmp eax, 1
jb 0x45f510
cmp eax, 3
ja 0x45f510
mov eax, dword [edi + 0x54]
test eax, eax
je 0x45f142
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [edi + 0x4c]
call fcn.004a75b4
lea ecx, [edi + 0x18]
add esp, 4
cmp dword [ecx + 0x14], 0x10
mov esi, eax
mov dword [esp + 0x30], esi
jb 0x45f15e
mov ecx, dword [ecx]
mov eax, dword [edi + 0x4c]
push eax
push ecx
push eax
push esi
call dword [sym.imp.MSVCR120.dll_memcpy_s]
push dword [edi + 0x4c]
call fcn.004a75b4
mov edx, eax
mov dword [esp + 0x30], 0
mov dword [edi + 0x54], edx
xor ecx, ecx
movsx eax, byte [esi]
add esp, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x45f35a
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
cmp eax, 0xa
je 0x45f341
cmp eax, 0xd
je 0x45f341
cmp eax, 9
je 0x45f341
test ecx, ecx
jne 0x45f33a
push eax
call edi
add esp, 4
test eax, eax
je 0x45f1e3
nop
movsx eax, byte [esi + 1]
inc esi
push eax
mov dword [esp + 0x1c], eax
call edi
add esp, 4
test eax, eax
jne 0x45f1d0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x45f352
nop
movsx eax, byte [esi + 1]
inc esi
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCR120.dll_isspace]
add esp, 4
test eax, eax
jne 0x45f1f0
cmp dword [esp + 0x18], eax
je 0x45f352
movsx eax, byte [esi + 1]
inc esi
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCR120.dll_isspace]
add esp, 4
test eax, eax
jne 0x45f211
cmp dword [esp + 0x24], eax
je 0x45f352
movsx eax, byte [esi + 1]
inc esi
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCR120.dll_isspace]
add esp, 4
test eax, eax
jne 0x45f232
cmp dword [esp + 0x28], eax
je 0x45f352
cmp edi, 0x3d
je 0x45f325
mov eax, dword [esp + 0x18]
cmp eax, 0x3d
je 0x45f325
push eax
call fcn.0045f6b0
push edi
mov dword [esp + 0x1c], eax
call fcn.0045f6b0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sar ecx, 4
inc edi
shl al, 2
and cl, 3
or al, cl
mov dword [esp + 0x1c], edi
mov byte [edx], al
inc edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edx
cmp eax, 0x3d
jne 0x45f2b9
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
mov ecx, 1
mov dword [esp + 0x20], ecx
jmp 0x45f341
push eax
call fcn.0045f6b0
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x24], eax
inc edi
mov eax, dword [esp + 0x18]
sar ecx, 2
shl al, 4
and cl, 0xf
or cl, al
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x28]
mov byte [edx], cl
inc edx
mov dword [esp + 0x14], edx
cmp eax, 0x3d
jne 0x45f2fe
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
mov ecx, 1
mov dword [esp + 0x20], ecx
jmp 0x45f341
push eax
call fcn.0045f6b0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
shl cl, 6
or al, cl
mov ecx, dword [esp + 0x20]
mov byte [edx], al
inc edx
inc edi
mov dword [esp + 0x1c], edi
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
jmp 0x45f33d
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
mov ecx, 1
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
jmp 0x45f341
mov byte [edx], al
inc edx
mov dword [esp + 0x14], edx
movsx eax, byte [esi + 1]
inc esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x45f1a2
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
push dword [esp + 0x30]
mov byte [edx], 0
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x50]
cmp eax, 1
jne 0x45f3cf
mov edx, dword [edi + 0x54]
cmp byte [edx], 0
jne 0x45f3a2
xor ecx, ecx
push ecx
push edx
mov ecx, edi
call fcn.0040f700
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f3a7
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.0040f700
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x45f557
cmp dword [edi + 0x44], 0x10
lea esi, [edi + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movq qword [esp + 0x34], xmm0
jb 0x45f3f6
mov eax, dword [esi]
jmp 0x45f3f8
mov eax, esi
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
call fcn.0046be10
cmp dword [esi + 0x14], 0x10
jb 0x45f41c
mov eax, dword [esi]
jmp 0x45f41e
mov eax, esi
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll__stat64i32]
mov edi, dword [esp + 0x3c]
add esp, 8
test eax, eax
jne 0x45f4d3
cmp dword [esi + 0x14], 0x10
xorps xmm0, xmm0
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
jb 0x45f452
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
call fcn.0046be10
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
test eax, eax
jle 0x45f48e
dec eax
add eax, ecx
cmp eax, ecx
jb 0x45f48e
nop
cmp byte [eax], 0x2e
je 0x45f526
dec eax
cmp eax, ecx
jae 0x45f480
or eax, 0xffffffff
push eax
push ecx
lea eax, [esp + 0x78]
push 0x108
push eax
call dword [sym.imp.MSVCR120.dll__mbsnbcpy_s]
push str..BAK
lea eax, [esp + 0x84]
push 0x108
push eax
call dword [sym.imp.MSVCR120.dll_strcat_s]
add esp, 0x1c
lea eax, [esp + 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x40]
call fcn.0046bec0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movdqa xmmword [esp + 0x40], xmm0
movq qword [esp + 0x50], xmm0
call fcn.00470040
push 0x1001
push edi
lea ecx, [esp + 0x48]
call fcn.00470120
lea ecx, [esp + 0x40]
test eax, eax
jne 0x45f52d
call fcn.004700c0
lea ecx, [esp + 0x34]
call fcn.0046bec0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
sub eax, ecx
jmp 0x45f491
mov eax, dword [esp + 0x2c]
push dword [eax + 0x48]
push dword [eax + 0x54]
call fcn.00470440
lea ecx, [esp + 0x40]
call fcn.00470710
lea ecx, [esp + 0x40]
call fcn.004700c0
lea ecx, [esp + 0x34]
call fcn.0046bec0
mov ecx, dword [esp + 0x17c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret