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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
mov eax, dword [0x503040]
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 0x45c2a0
mov eax, dword [edi + 0x50]
cmp eax, 1
jb 0x45c2a0
cmp eax, 3
ja 0x45c2a0
mov eax, dword [edi + 0x54]
test eax, eax
je 0x45bed2
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [edi + 0x4c]
call fcn.004a437c
lea ecx, [edi + 0x18]
add esp, 4
cmp dword [ecx + 0x14], 0x10
mov esi, eax
mov dword [esp + 0x30], esi
jb 0x45beee
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.004a437c
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 0x45c0ea
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
cmp eax, 0xa
je 0x45c0d1
cmp eax, 0xd
je 0x45c0d1
cmp eax, 9
je 0x45c0d1
test ecx, ecx
jne 0x45c0ca
push eax
call edi
add esp, 4
test eax, eax
je 0x45bf73
nop
movsx eax, byte [esi + 1]
inc esi
push eax
mov dword [esp + 0x1c], eax
call edi
add esp, 4
test eax, eax
jne 0x45bf60
mov edi, dword [esp + 0x18]
test edi, edi
je 0x45c0e2
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 0x45bf80
cmp dword [esp + 0x18], eax
je 0x45c0e2
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 0x45bfa1
cmp dword [esp + 0x24], eax
je 0x45c0e2
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 0x45bfc2
cmp dword [esp + 0x28], eax
je 0x45c0e2
cmp edi, 0x3d
je 0x45c0b5
mov eax, dword [esp + 0x18]
cmp eax, 0x3d
je 0x45c0b5
push eax
call fcn.0045c440
push edi
mov dword [esp + 0x1c], eax
call fcn.0045c440
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 0x45c049
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
mov ecx, 1
mov dword [esp + 0x20], ecx
jmp 0x45c0d1
push eax
call fcn.0045c440
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 0x45c08e
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
mov ecx, 1
mov dword [esp + 0x20], ecx
jmp 0x45c0d1
push eax
call fcn.0045c440
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 0x45c0cd
mov edi, dword [sym.imp.MSVCR120.dll_isspace]
mov ecx, 1
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
jmp 0x45c0d1
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 0x45bf32
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 0x45c15f
mov edx, dword [edi + 0x54]
cmp byte [edx], 0
jne 0x45c132
xor ecx, ecx
push ecx
push edx
mov ecx, edi
call fcn.0040f4f0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c137
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.0040f4f0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x45c2e7
cmp dword [edi + 0x44], 0x10
lea esi, [edi + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movq qword [esp + 0x34], xmm0
jb 0x45c186
mov eax, dword [esi]
jmp 0x45c188
mov eax, esi
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
call fcn.00468b10
cmp dword [esi + 0x14], 0x10
jb 0x45c1ac
mov eax, dword [esi]
jmp 0x45c1ae
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 0x45c263
cmp dword [esi + 0x14], 0x10
xorps xmm0, xmm0
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
jb 0x45c1e2
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
call fcn.00468b10
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
test eax, eax
jle 0x45c21e
dec eax
add eax, ecx
cmp eax, ecx
jb 0x45c21e
nop
cmp byte [eax], 0x2e
je 0x45c2b6
dec eax
cmp eax, ecx
jae 0x45c210
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.00468bc0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movdqa xmmword [esp + 0x40], xmm0
movq qword [esp + 0x50], xmm0
call fcn.0046ccc0
push 0x1001
push edi
lea ecx, [esp + 0x48]
call fcn.0046cda0
lea ecx, [esp + 0x40]
test eax, eax
jne 0x45c2bd
call fcn.0046cd40
lea ecx, [esp + 0x34]
call fcn.00468bc0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
sub eax, ecx
jmp 0x45c221
mov eax, dword [esp + 0x2c]
push dword [eax + 0x48]
push dword [eax + 0x54]
call fcn.0046d0d0
lea ecx, [esp + 0x40]
call fcn.0046d3a0
lea ecx, [esp + 0x40]
call fcn.0046cd40
lea ecx, [esp + 0x34]
call fcn.00468bc0
mov ecx, dword [esp + 0x17c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret