Function at 0x45a230
Capabilities:
Check if file exists
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4d8478
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x20], 0
mov ebp, dword [esp + 0x48]
lea esi, [esp + 0x28]
mov eax, ebp
call fcn.00432620
mov edi, eax
lea esi, [esp + 0x24]
mov eax, ebp
mov dword [esp + 0x40], 0
call fcn.00484920
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x45a2b5
mov eax, dword [edi]
push eax
call ebx
test eax, eax
jne 0x45a2b5
mov edi, dword [edi]
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x45a2b7
xor bl, bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a2d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a2ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x45a52d
lea esi, [esp + 0x2c]
mov eax, ebp
call fcn.00432620
mov dword [esp + 0x40], 1
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00405a00
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a34d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x48], 4
call fcn.0045b0f0
mov byte [esp + 0x40], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x45a3cf
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x45a3be
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45a3be
call fcn.00408230
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x45a3b5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x1c], edi
jmp 0x45a3cf
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00405e30
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a3f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov esi, 1
sub esi, dword [edx - 4]
sub eax, ecx
or eax, esi
jge 0x45a419
lea eax, [esp + 0x18]
call fcn.00405d80
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004a5cf7
add esp, 8
test eax, eax
jl 0x45a54c
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x45a54c
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0xb4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040e720
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e720
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 0x20]
add ebp, 0x20
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x45a4d0
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x45a4c5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45a4c5
call fcn.00408230
mov dword [esp + 0x34], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x45a4b9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x34]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x45a4d0
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00405e30
add edi, 0xfffffff0
mov byte [esp + 0x40], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x45a4f1
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x14
mov dword [esp + 0x20], eax
jl 0x45a264
jmp 0x45a532
mov byte [esp + 0x17], 1
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
push 0x80070057
call fcn.00405ef0
int3