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

Disassembly:
sub esp, 0xc30
push ebx
push esi
lea eax, [esp + 0x12c]
push edi
push eax
mov dword [esp + 0x28], 0
call fcn.004014b0
add esp, 4
test eax, eax
je 0x403ecc
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [esp + 0xc], ecx
mov cl, byte [esp + ecx + 0x2c]
cmp cl, 0x5c
je 0x4039d6
cmp cl, 0x2f
je 0x4039d6
lea edx, [esp + 0x2c]
mov edi, str.wdupdate.tmp
jmp 0x4039df
lea edx, [esp + 0x2c]
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 + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x134]
push ecx
call fcn.00401560
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x403ecc
mov edx, dword [esp + 0xc40]
mov ecx, 0x202
xor eax, eax
lea edi, [esp + 0x434]
rep stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0x438]
push 1
push eax
push 0x403500
push esi
mov dword [esp + 0x448], edx
call fcn.00407ee0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov dword [esp + 0x34], ebp
lea ecx, [ebp + 0xc00]
push ecx
call fcn.0041b740
mov ebx, eax
mov eax, dword [esp + 0x450]
xor esi, esi
add esp, 0x14
lea ecx, [esp + 0x440]
xor edx, edx
cmp eax, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
jle 0x403c93
mov ebp, dword [esp + 0xc48]
mov dword [esp + 0x1c], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, esi
mov dword [esp + 0x20], ecx
jle 0x403add
mov edi, dword [esp + 0x14]
sub eax, esi
mov ecx, eax
add esi, edi
lea edi, [ebx + edx]
mov edx, ecx
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]
add edx, eax
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x403b18
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov esi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + edx]
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 edx, dword [esp + 0x10]
not ecx
dec ecx
add edx, ecx
xor ebp, ebp
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x43c]
mov esi, dword [esp + 0x20]
add ecx, 8
inc eax
cmp eax, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jl 0x403aab
mov ebp, dword [esp + 0x24]
mov ecx, esi
cmp ebp, ecx
jle 0x403d46
cmp edx, 4
jle 0x403b81
test edx, edx
mov dword [esp + 0x1c], 0
jle 0x403b81
dec edx
mov dword [esp + 0x10], edx
mov al, byte [ebx + edx]
cmp al, 0xd
je 0x403b6e
cmp al, 0xa
jne 0x403b7c
test edx, edx
mov dword [esp + 0x1c], 1
jg 0x403b5e
jmp 0x403b81
inc edx
mov dword [esp + 0x10], edx
sub ebp, ecx
mov dword [esp + 0x18], 0
mov eax, ebp
xor ebp, ebp
test eax, eax
mov dword [esp + 0x24], eax
jle 0x403d46
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea esi, [edi + ecx]
mov cl, byte [esi + ebp]
cmp cl, 0xd
je 0x403bb3
cmp cl, 0xa
jne 0x403bc5
inc ebp
mov dword [esp + 0x18], 1
cmp ebp, eax
jl 0x403ba6
jmp 0x403d46
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x403be1
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x403c26
sub eax, ebp
lea esi, [edi + ebp]
mov ecx, eax
jmp 0x403c71
mov edi, 0x450214
or ecx, 0xffffffff
xor eax, eax
add edx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 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 eax, dword [esp + 0x18]
not ecx
dec ecx
add edx, ecx
test eax, eax
mov dword [esp + 0x10], edx
je 0x403c63
mov edi, 0x450214
or ecx, 0xffffffff
xor eax, eax
add edx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 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]
not ecx
dec ecx
add edx, ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub eax, ebp
add esi, ebp
mov ecx, eax
mov edi, dword [esp + 0x14]
add esi, edi
lea edi, [ebx + edx]
mov edx, ecx
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]
add edx, eax
jmp 0x403d42
cmp ebp, esi
jle 0x403d0b
mov esi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
mov edi, ebx
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 edx, dword [esp + 0x10]
mov edi, 0x450214
or ecx, 0xffffffff
add edx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
lea edi, [ebx + edx]
mov edx, ecx
mov esi, 0x450214
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0xc48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x450214
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
mov dword [esp + 0x10], ebp
dec ecx
lea edi, [ebx + ebp]
jmp 0x403d22
mov edx, dword [esp + 0xc48]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, edx
mov edi, ebx
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 edx, dword [esp + 0x10]
not ecx
dec ecx
add edx, ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x2c]
pop ebp
test eax, eax
je 0x403ddf
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
call fcn.00425b60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403dd5
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x403dcc
lea edx, [esp + 0x2c]
push 0x45031c
push edx
call fcn.0041ba39
mov edi, eax
add esp, 8
test edi, edi
je 0x403da7
mov eax, dword [esp + 0xc]
push edi
push eax
push 1
push esi
call fcn.0041be22
push edi
call fcn.0041b5ac
push esi
call fcn.00425d40
add esp, 0x18
jmp 0x403e12
push esi
call fcn.00425d40
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041b490
push ebx
call fcn.0041b490
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc30
ret
push esi
call fcn.00425d40
add esp, 4
mov edx, dword [esp + 0x10]
push edx
jmp 0x403ebe
lea eax, [esp + 0x2c]
push 0x45031c
push eax
call fcn.0041ba39
mov esi, eax
add esp, 8
test esi, esi
je 0x403eb9
mov ecx, dword [esp + 0xc]
push esi
push ecx
push 1
push ebx
call fcn.0041be22
push esi
call fcn.0041b5ac
add esp, 0x14
mov edx, dword [esp + 0x10]
push edx
call fcn.0041b490
push ebx
call fcn.0041b490
mov eax, dword [0x455ed4]
add esp, 8
test eax, eax
je 0x403e8b
lea ecx, [esp + 0x234]
lea edx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x30]
push edx
push ecx
push str.CopyFile
call eax
add esp, 0x10
test eax, eax
je 0x403e8b
lea edx, [esp + 0x234]
push str.TRUE
push edx
call fcn.00421a60
add esp, 8
test eax, eax
jne 0x403e72
mov dword [esp + 0x24], 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
add esp, 0xc30
ret
lea ecx, [esp + 0x130]
push 0
lea edx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc30
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041b490
push ebx
call fcn.0041b490
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc30
ret