Function at 0x41d2f0
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4a5ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x4f0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x500]
mov ebp, dword [esp + 0x504]
xor esi, esi
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
push esi
mov eax, ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], esi
mov word [esp + 0x58], si
call fcn.00406430
mov dword [esp + 0x4f8], esi
mov edi, 1
mov ecx, 0x20
lea eax, [esp + 0xbc]
lea ebx, [ebx]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x41d380
push edi
push str..tmp_04d
lea edx, [esp + 0xc4]
push 0x10
push edx
call fcn.00484063
push ebp
lea ebx, [esp + 0xd0]
lea esi, [esp + 0x44]
call fcn.00407ff0
mov esi, 8
add esp, 0x14
cmp dword [eax + 0x18], esi
jb 0x41d3c3
mov eax, dword [eax + 4]
jmp 0x41d3c6
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete bl
cmp dword [esp + 0x48], esi
jb 0x41d3e5
mov eax, dword [esp + 0x34]
push eax
call fcn.004692b1
add esp, 4
xor esi, esi
test bl, bl
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], esi
mov word [esp + 0x34], si
jne 0x41d40d
add edi, 1
cmp edi, 0x2710
jl 0x41d36e
jmp 0x41d438
lea eax, [esp + 0xbc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41d417
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x54]
call fcn.00408260
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], esi
mov word [esp + 0x88], si
mov byte [esp + 0x4f8], 1
cmp dword [ebp + 0x18], 8
lea esi, [ebp + 4]
jb 0x41d467
mov ecx, dword [esi]
jmp 0x41d469
mov ecx, esi
lea edx, [esp + 0x84]
push edx
call fcn.0043ddf0
lea eax, [esp + 0x88]
push eax
call fcn.0043e540
mov ecx, dword [esp + 0x58]
mov edi, 8
add esp, 8
cmp dword [esp + 0x64], edi
jae 0x41d499
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], edi
jb 0x41d4a7
mov eax, dword [eax + 4]
jmp 0x41d4aa
add eax, 4
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41d4e0
lea ecx, [esp + 0x20]
call fcn.00483c47
push 0x4c04d0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], vtable.CUpdaterException.0
mov dword [esp + 0x34], 0xffffffff
call fcn.0048aacb
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x41d4ee
lea eax, [esp + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x104
lea edx, [esp + 0xe0]
push edx
push eax
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
jne 0x41d52d
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x41d51d
lea eax, [esp + 0x50]
push 0x208
push eax
lea eax, [esp + 0xe4]
push eax
call ebx
cmp dword [ebp + 0x18], 8
jb 0x41d537
mov eax, dword [esi]
jmp 0x41d539
mov eax, esi
push 0x104
lea ecx, [esp + 0x2e8]
push ecx
push eax
call edi
test eax, eax
mov edi, 8
jne 0x41d56d
cmp dword [ebp + 0x18], edi
jb 0x41d55b
mov eax, dword [esi]
jmp 0x41d55d
mov eax, esi
push 0x208
push eax
lea edx, [esp + 0x2ec]
push edx
call ebx
xor ebx, ebx
mov ebp, 7
lea eax, [esp + 0xdc]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41d594
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe0]
push eax
lea esi, [esp + 0xa8]
call fcn.00406d50
mov byte [esp + 0x4f8], 2
lea eax, [esp + 0x2e4]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41d5e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2e8]
push ecx
lea esi, [esp + 0x70]
call fcn.00406d50
cmp dword [esp + 0x80], edi
mov ecx, dword [esp + 0x6c]
jae 0x41d612
lea ecx, [esp + 0x6c]
cmp dword [esp + 0xb8], edi
jb 0x41d6f9
mov edx, dword [esp + 0xa4]
cmp edx, ebx
je 0x41d641
cmp ecx, ebx
mov eax, 4
je 0x41d638
mov eax, 5
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [esp + 0x80], edi
mov edx, dword [esp + 0x1c]
mov byte [edx + 0x8c], 1
jb 0x41d662
mov eax, dword [esp + 0x6c]
push eax
call fcn.004692b1
add esp, 4
cmp dword [esp + 0xb8], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
jb 0x41d68b
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x9c], edi
jb 0x41d6a4
mov edx, dword [esp + 0x88]
push edx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
jb 0x41d6cd
mov eax, dword [esp + 0x50]
push eax
call fcn.004692b1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4d8]
xor ecx, esp
call fcn.00483bf3
add esp, 0x4e8
ret 8
lea edx, [esp + 0xa4]
jmp 0x41d62a