Function at 0x406ce0
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
mov eax, dword [0x41e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41f1a0]
imul eax, eax
cdq
mov ecx, 0x13
idiv ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edx, 0xa
jne 0x406d1b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x41f1a0], eax
push esi
push 0
call fcn.00409323
push eax
call fcn.004088d7
add esp, 8
call fcn.00406a20
test al, al
jne 0x406d56
mov esi, dword [0x41f1a0]
mov ecx, 1
cmp esi, ecx
jle 0x406d50
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x406d44
mov dword [0x41f1a0], ecx
lea eax, [ebp - 0x74c]
push eax
call fcn.00409323
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004089f0
add esp, 0x10
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call fcn.00406bb0
push eax
call fcn.00403090
mov eax, dword [0x41f170]
mov ecx, 0x41f170
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x740], eax
mov eax, dword [0x41f170]
mov ecx, 0x41f170
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x738], eax
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x71c]
call fcn.00403ed0
push 0x5c
push dword [ebp - 0x71c]
call fcn.0040918a
add esp, 8
test eax, eax
jne 0x406dee
or eax, 0xffffffff
jmp 0x406df4
sub eax, dword [ebp - 0x71c]
push str.utils.exe
inc eax
push eax
lea eax, [ebp - 0x734]
push eax
lea ecx, [ebp - 0x71c]
call fcn.00405530
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004041a0
add esp, 0xc
lea ecx, [ebp - 0x71c]
push eax
call fcn.00403fb0
mov edx, dword [ebp - 0x720]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x406e4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x734]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406e6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x740]
push eax
call fcn.00404cd0
push edi
mov edi, dword [ebp - 0x740]
push edi
lea eax, [ebp - 0x738]
push str._parent_s__s
push eax
call fcn.00404860
mov esi, dword [ebp - 0x738]
add esp, 0x14
cmp dword [esi - 0xc], 0
jl 0x4071f0
push str._brwtype
push esi
call fcn.0040922e
add esp, 8
test eax, eax
je 0x4071f0
sub eax, esi
js 0x4071f0
push str._runexe
lea ecx, [ebp - 0x728]
mov byte [ebp - 0x715], 0
call fcn.00403ed0
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x72c]
push eax
call fcn.00404af0
mov edx, dword [ebp - 0x728]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406f13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x72c]
cmp dword [eax - 0xc], 0
je 0x4071bc
lea eax, [ebp - 0x72c]
push eax
call fcn.004045a0
add esp, 4
test al, al
je 0x4071bc
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.004089f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4071bc
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x724]
call fcn.00403ed0
mov eax, dword [ebp - 0x724]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x4075bc
cmp ecx, edx
jg 0x4075bc
cmp byte [ecx + eax], 0x5c
je 0x406fb5
push 0x417544
lea ecx, [ebp - 0x724]
call fcn.00404340
lea eax, [ebp - 0x724]
push eax
call fcn.00404720
add esp, 4
test al, al
je 0x407194
mov eax, dword [0x41f170]
mov ecx, 0x41f170
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x730], eax
call fcn.004088b4
cdq
mov ecx, 0x2710
idiv ecx
lea eax, [ebp - 0x730]
push edx
push str._d.exe
push eax
call fcn.00404860
add esp, 0xc
call fcn.00406b80
test al, al
jne 0x40709c
xor edi, edi
lea eax, [ebp - 0x714]
lea esp, [esp]
xor ecx, ecx
mov dword [ebp - 0x73c], ecx
mov dword [ebp - 0x728], eax
mov edi, edi
mov esi, dword [0x41f1a0]
lea eax, [ecx + 1]
mov dword [ebp - 0x720], eax
mov eax, esi
cdq
lea ecx, [edi + 1]
idiv ecx
mov eax, esi
mov ecx, esi
mov esi, dword [ebp - 0x720]
sub ecx, edi
mov ebx, edx
cdq
imul ebx, ecx
idiv esi
add ebx, eax
sub ebx, dword [ebp - 0x73c]
push ebx
push 0x4174e4
call fcn.0040890a
mov eax, dword [ebp - 0x728]
mov ecx, esi
add eax, 4
add esp, 8
mov dword [ebp - 0x73c], esi
mov dword [ebp - 0x728], eax
cmp ecx, 0x17
jl 0x407030
inc edi
cmp edi, 0xe
jl 0x407020
mov edi, dword [ebp - 0x740]
or ebx, 0xffffffff
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.00404020
add esp, 0xc
push 0
push dword [eax]
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [ebp - 0x720]
add esi, 0xfffffff0
mov dword [ebp - 0x734], eax
lea ecx, [esi + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x734]
test eax, eax
je 0x407175
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.00404020
push eax
call fcn.004045a0
add esp, 0x10
lea ecx, [ebp - 0x720]
mov bl, al
call fcn.00403f70
test bl, bl
je 0x407172
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.00404020
add esp, 0xc
lea ecx, [ebp - 0x71c]
push eax
call fcn.00403fb0
lea ecx, [ebp - 0x720]
call fcn.00403f70
mov byte [ebp - 0x715], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x730]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407194
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x724]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4071b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x715], 0
jne 0x4071d1
push 0x4174e0
push str._brwtype
lea ecx, [ebp - 0x738]
call fcn.004058e0
mov edx, dword [ebp - 0x72c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4071f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x71c]
cmp dword [eax - 0xc], 0
jne 0x4072be
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407210
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x71c]
call fcn.00405b60
push 0x5c
push dword [ebp - 0x71c]
call fcn.0040918a
add esp, 8
test eax, eax
jne 0x407245
or eax, 0xffffffff
jmp 0x40724b
sub eax, dword [ebp - 0x71c]
push str.utils.exe
inc eax
push eax
lea eax, [ebp - 0x734]
push eax
lea ecx, [ebp - 0x71c]
call fcn.00405530
push eax
lea eax, [ebp - 0x720]
push eax
call fcn.004041a0
add esp, 0xc
lea ecx, [ebp - 0x71c]
push eax
call fcn.00403fb0
mov edx, dword [ebp - 0x720]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40729f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x734]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4072be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x71c]
push eax
call fcn.00405ae0
add esp, 8
test al, al
jne 0x407552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x71c]
push edx
mov esi, eax
push edx
mov dword [ebp - 0x744], esi
call fcn.00408bdd
add esp, 8
test eax, eax
mov eax, dword [0x41f170]
mov ecx, 0x41f170
sete byte [ebp - 0x715]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x73c], eax
lea eax, [ebp - 0x720]
push eax
call fcn.00406270
lea eax, [ebp - 0x734]
push eax
call fcn.00405dc0
add esp, 8
call fcn.00406af0
test al, al
jne 0x407368
mov esi, dword [0x41f1a0]
mov ecx, 1
cmp esi, ecx
jle 0x40735c
lea esp, [esp]
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x407350
mov esi, dword [ebp - 0x744]
mov dword [0x41f1a0], ecx
lea eax, [ebp - 0x724]
push eax
call fcn.004064b0
lea eax, [ebp - 0x730]
push eax
call fcn.00405cc0
lea eax, [ebp - 0x728]
push eax
call fcn.004063b0
lea eax, [ebp - 0x72c]
push eax
call fcn.004053f0
mov eax, dword [ebp - 0x72c]
add esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x4073bf
push 1
push 0x417550
lea ecx, [ebp - 0x72c]
call fcn.00405b60
mov eax, dword [ebp - 0x72c]
push dword [ebp - 0x74c]
xor ecx, ecx
cmp byte [ebp - 0x715], cl
setne cl
push ecx
push esi
push eax
push dword [ebp - 0x728]
lea eax, [ebp - 0x73c]
push dword [ebp - 0x724]
push dword [ebp - 0x734]
push dword [ebp - 0x730]
push dword [ebp - 0x720]
push str._s_ie_error.gif_t_t_actionuninstallation_t_tapp_s_t_tbic_s_t_tverifier_s_t_tver_s_t_tos_s_t_terrorrun_uninstall_from_proxy_t_tlasterror0x_x_t_tfileexists_d_t_trnd_d
push eax
call fcn.00404860
mov esi, dword [ebp - 0x73c]
add esp, 0x2c
push 0
push 0
push 0x4174e0
push esi
push 0
call fcn.00406bb0
mov ecx, eax
call fcn.004036a0
mov eax, dword [0x41f1a0]
imul eax, eax
and eax, 0x8000000f
jns 0x407437
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 3
jne 0x40747f
push 0x28
call fcn.004088ec
add esp, 4
mov edi, eax
xor ebx, ebx
lea ebx, [ebx]
call fcn.004088b4
add eax, dword [0x41f1a0]
inc ebx
mov dword [edi + ebx*4 - 4], eax
cmp ebx, 0xa
jl 0x407450
mov eax, dword [edi + 0x24]
push edi
mov dword [0x41f1a0], eax
call fcn.004088e7
mov edi, dword [ebp - 0x740]
add esp, 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x72c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40749e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x728]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4074bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x730]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4074dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x724]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4074fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x734]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40751a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x720]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407539
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407552
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x71c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
pop esi
test ecx, ecx
jg 0x407572
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x738]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407591
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4075a8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00407e14
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00404560
int3