Function at 0x402f60
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0xc34
push ebx
push ebp
push esi
lea eax, [esp + 0x134]
push edi
push eax
mov dword [esp + 0x34], 0
call fcn.004014b0
add esp, 4
test eax, eax
je 0x40342b
lea ecx, [esp + 0x34]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [esp + 0x10], ecx
mov cl, byte [esp + ecx + 0x34]
cmp cl, 0x5c
je 0x402fc7
cmp cl, 0x2f
je 0x402fc7
lea edx, [esp + 0x34]
mov edi, str.wdupdate.tmp
jmp 0x402fd0
lea edx, [esp + 0x34]
mov edi, 0x450328
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x13c]
push ecx
call fcn.00401560
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
je 0x40342b
mov ebp, dword [esp + 0xc48]
lea edx, [esp + 0x43c]
push 1
mov ecx, 0x202
xor eax, eax
lea edi, [esp + 0x440]
push edx
push 0x403500
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x44c], ebp
call fcn.00407ee0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov dword [esp + 0x34], edi
lea eax, [edi + 0x400]
push eax
call fcn.0041b740
mov edx, dword [esp + 0x454]
mov ebx, eax
add esp, 0x14
lea ecx, [esp + 0x444]
xor eax, eax
mov dword [esp + 0x18], ecx
test edx, edx
mov dword [esp + 0x10], eax
jle 0x40322c
mov edx, dword [esp + 0xc4c]
mov dword [esp + 0x20], eax
jmp 0x40309f
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
cmp edi, eax
mov dword [esp + 0x1c], ecx
jle 0x4030d7
mov ecx, edi
add esi, eax
sub ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x450324
mov esi, 0x450324
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x450324
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, ebp
not ecx
dec ecx
mov esi, ebp
add eax, ecx
or ecx, 0xffffffff
mov dword [esp + 0x10], eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, 0x450320
not ecx
dec ecx
mov esi, 0x450320
add eax, ecx
or ecx, 0xffffffff
mov dword [esp + 0x10], eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x450320
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, edx
not ecx
dec ecx
mov esi, edx
add eax, ecx
or ecx, 0xffffffff
mov dword [esp + 0x10], eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
add esi, ecx
mov ecx, dword [esp + 0x18]
add ecx, 8
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x440]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
inc ecx
cmp ecx, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
jl 0x40309b
mov edi, dword [esp + 0x24]
cmp edi, eax
jle 0x40338d
mov edx, edi
add esi, eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov ecx, edx
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
add eax, edx
jmp 0x403385
test edi, edi
jle 0x4032a5
mov ecx, edi
mov edi, ebx
mov edx, ecx
mov eax, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
mov edi, 0x450214
add edx, eax
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x450214
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + edx]
mov eax, ecx
mov dword [esp + 0x10], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x450214
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
mov edi, 0x450324
not ecx
dec ecx
mov esi, 0x450324
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x10], edx
dec ecx
lea edi, [ebx + edx]
jmp 0x4032bb
mov edi, 0x450324
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x450324
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x450324
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
mov edi, ebp
not ecx
dec ecx
mov esi, ebp
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + edx]
mov eax, ecx
mov dword [esp + 0x10], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
mov edi, 0x450320
not ecx
dec ecx
mov esi, 0x450320
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
lea edi, [ebx + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0xc4c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x450320
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x10]
mov edi, edx
not ecx
dec ecx
mov esi, edx
add ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + ebp]
mov eax, ecx
mov dword [esp + 0x10], ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
add eax, ecx
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x403438
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
call fcn.00425b60
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40341c
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x403413
lea eax, [esp + 0x34]
push 0x45031c
push eax
call fcn.0041ba39
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4033f1
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push 1
push edi
call fcn.0041be22
push ebp
call fcn.0041b5ac
push edi
call fcn.00425d40
add esp, 0x18
jmp 0x403467
push edi
call fcn.00425d40
push esi
call fcn.0041b490
push ebx
call fcn.0041b490
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc34
ret
push edi
call fcn.00425d40
add esp, 4
push esi
call fcn.0041b490
push ebx
call fcn.0041b490
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc34
ret
lea edx, [esp + 0x34]
push 0x45031c
push edx
call fcn.0041ba39
mov edi, eax
add esp, 8
test edi, edi
je 0x40341c
mov eax, dword [esp + 0x10]
push edi
push eax
push 1
push ebx
call fcn.0041be22
push edi
call fcn.0041b5ac
add esp, 0x14
push esi
call fcn.0041b490
push ebx
call fcn.0041b490
mov eax, dword [0x455ed4]
add esp, 8
test eax, eax
je 0x4034c6
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x138]
push ecx
lea ecx, [esp + 0x38]
push edx
push ecx
push str.CopyFile
call eax
add esp, 0x10
test eax, eax
je 0x4034c6
lea edx, [esp + 0x23c]
push str.TRUE
push edx
call fcn.00421a60
add esp, 8
mov esi, 1
test eax, eax
je 0x4034dd
mov esi, dword [esp + 0x30]
jmp 0x4034dd
lea ecx, [esp + 0x138]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc34
ret