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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x568970
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5afee0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x5afee0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x10], ecx
cmp ebx, edi
je 0x42ce4b
mov esi, dword [ebx + 0x63fc]
cmp esi, edi
je 0x42ce4b
cmp eax, 2
je 0x42ce3d
cmp eax, 4
je 0x42cdd5
cmp eax, 6
je 0x42cd21
cmp eax, 7
je 0x42cb72
jle 0x42ce4b
cmp eax, 9
jg 0x42ce4b
mov esi, ebx
mov dword [ebx + 0x63cc], 1
call fcn.0042c3d1
mov ecx, ebx
lea edi, [esp + 0x10]
call fcn.0042ead7
mov dword [esp + 0x238], 2
mov esi, dword [esp + 0x10]
lea edi, [ebx + 0x63e8]
push esi
push dword [edi]
call fcn.0047750f
push eax
call fcn.00478224
push dword [ebx + 0x63cc]
push dword [edi]
call fcn.0047750f
mov edi, eax
call fcn.00478497
call fcn.0042c4b1
mov edi, eax
call fcn.0042c6a3
lea eax, [esi - 0x10]
jmp 0x42cdce
push edi
mov dword [ebx + 0x63cc], edi
call fcn.005334f8
mov dword [ebx + 0x63dc], edx
mov edx, dword [ebx + 0x63bc]
mov dword [ebx + 0x63d8], eax
mov eax, dword [esi + 0x5d138]
mov esi, dword [esi + 0x5d13c]
pop ecx
mov ecx, dword [ebx + 0x63b8]
mov dword [ebx + 0x63c0], eax
mov dword [ebx + 0x63c4], esi
cmp ecx, 0xffffffff
jne 0x42cbb8
cmp edx, ecx
je 0x42cbc0
cmp ecx, edi
jne 0x42cbcc
cmp edx, edi
jne 0x42cbcc
mov dword [ebx + 0x63b8], eax
mov dword [ebx + 0x63bc], esi
mov esi, ebx
call fcn.0042c3d1
xor eax, eax
push 0x206
push eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x26]
push eax
call fcn.00537010
add esp, 0xc
push 0x580020
lea esi, [ebx + 0x61ac]
push esi
push 0x58002c
lea eax, [esp + 0x28]
push 0x103
push eax
call fcn.00532a01
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push esi
call edi
test eax, eax
je 0x42cc24
mov ecx, esi
call fcn.0042e702
push esi
call edi
test eax, eax
jne 0x42cc4f
push esi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebx + 0x63e0], 0
je 0x42cc4f
push dword [ebx + 0x63e8]
mov eax, dword [esp + 0x14]
call fcn.0042e4a5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, ebx
lea edi, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.0042ead7
mov eax, ebx
mov dword [esp + 0x238], 1
call fcn.0042ecc3
mov edi, eax
test esi, esi
je 0x42cc89
push esi
call fcn.0042ed23
mov dword [esp + 0x18], eax
jmp 0x42cc8e
and dword [esp + 0x18], 0
push dword [esp + 0x14]
push dword [ebx + 0x63e8]
call fcn.0047750f
push eax
call fcn.0047818a
push dword [esp + 0x10]
push dword [ebx + 0x63e8]
call fcn.0047750f
push eax
call fcn.00478224
push edi
push dword [ebx + 0x63e8]
call fcn.0047750f
mov esi, eax
call fcn.004782be
push dword [esp + 0x18]
push dword [ebx + 0x63e8]
call fcn.0047750f
push eax
call fcn.0047837f
push dword [ebx + 0x63cc]
push dword [ebx + 0x63e8]
call fcn.0047750f
mov edi, eax
call fcn.00478497
cmp dword [esp + 0x18], 0
je 0x42cd09
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_DestroyIcon]
call fcn.0042c4b1
mov edi, eax
call fcn.0042c6a3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x42cdce
cmp dword [ebx + 0x63cc], 2
mov eax, dword [esi + 0x5d128]
mov ecx, dword [esi + 0x5d12c]
mov dword [ebx + 0x63b8], eax
mov dword [ebx + 0x63bc], ecx
mov eax, dword [esi + 0x5d138]
mov ecx, dword [esi + 0x5d13c]
mov dword [ebx + 0x63c0], eax
mov dword [ebx + 0x63c4], ecx
jne 0x42ce4b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebx + 0x63ec]
mov edx, eax
sub edx, dword [ecx]
cmp edx, 0x3e8
jb 0x42ce4b
mov dword [ecx], eax
mov esi, dword [esi + 0x26b8]
mov ecx, ebx
lea edi, [esp + 0x14]
mov dword [ebx + 0x63f0], esi
call fcn.0042ead7
and dword [esp + 0x238], 0
mov eax, ebx
call fcn.0042ecc3
mov edi, dword [esp + 0x14]
add ebx, 0x63e8
push edi
push dword [ebx]
mov esi, eax
call fcn.0047750f
push eax
call fcn.00478224
push esi
push dword [ebx]
call fcn.0047750f
mov esi, eax
call fcn.004782be
lea eax, [edi - 0x10]
call fcn.00407d09
jmp 0x42ce4b
lea eax, [ebx + 0x63c8]
cmp dword [eax], edi
jne 0x42ce4b
lea esi, [ebx + 0x61ac]
push esi
mov dword [eax], 1
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [esp + 0x14], eax
cmp esi, edi
je 0x42ce04
push esi
call fcn.0042ed23
mov esi, eax
jmp 0x42ce06
xor esi, esi
push dword [esp + 0x14]
add ebx, 0x63e8
push dword [ebx]
call fcn.0047750f
push eax
call fcn.0047818a
push esi
push dword [ebx]
call fcn.0047750f
push eax
call fcn.0047837f
cmp esi, edi
je 0x42ce36
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
call fcn.0042df6d
jmp 0x42ce4b
cmp dword [esi + 0x271c], edi
jne 0x42ce4b
mov dword [ebx + 0x63f4], edi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0052f7d0
mov esp, ebp
pop ebp
ret 4