Function at 0x406690
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454b59
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x474238]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xfc], eax
cmp dword [eax + 0x14], 8
jb 0x4066ee
mov ecx, dword [eax]
mov dword [ebp - 0xfc], ecx
mov eax, dword [eax + 0x10]
cmp eax, 0xb
jb 0x406752
add eax, 0xfffffff6
lea eax, [ecx + eax*2]
mov dword [ebp - 0x100], eax
sub eax, ecx
sar eax, 1
je 0x406752
cmp word [ecx], 0x2d
je 0x406718
add ecx, 2
sub eax, 1
jne 0x406708
jmp 0x406752
mov edx, str._updatehigh
mov edi, ecx
mov esi, 0xb
sub edi, edx
jmp 0x406730
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x40699d
add edx, 2
sub esi, 1
jne 0x406730
sub ecx, dword [ebp - 0xfc]
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x406782
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004183a0
mov ebx, 1
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0xf0], ebx
call fcn.004058e0
add esp, 0xc
mov byte [ebp - 0xe9], bl
test al, al
je 0x406789
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4067a6
and ebx, 0xfffffffe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xf0], ebx
call fcn.00401dd0
cmp byte [ebp - 0xe9], 0
je 0x4069d9
lea eax, [ebp - 0x28]
push eax
call fcn.00417610
mov ecx, dword [ebp - 0xf4]
add esp, 4
push eax
call fcn.004020d0
lea ecx, [ebp - 0x28]
call fcn.00401dd0
lea eax, [ebp - 0x88]
push 1
push eax
call fcn.004183a0
add esp, 8
push 0x11
push str.Run__UserAdmin__
push 0
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004032b0
mov edx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
push str...ksolaunch.exe_
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00401200
add esp, 0xc
mov esi, dword [ebp - 0xf8]
mov ecx, esi
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x406871
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00402cf0
mov edx, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov ecx, dword [edx]
mov dword [ebp - 0x70], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x68], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x64], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
push 0x458624
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00401200
push str._updatehigh
push eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 5
push eax
call fcn.00401200
add esp, 0x18
mov ecx, esi
push eax
call fcn.004020d0
lea ecx, [ebp - 0xb8]
call fcn.00401dd0
lea ecx, [ebp - 0xd0]
call fcn.00401dd0
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40694c
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406942
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fae
push edx
push ecx
call fcn.0041f4b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00401dd0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4069b5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4069ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fae
jmp 0x4069ab
mov eax, dword [ebp - 0x100]
add ecx, 2
jmp 0x406702
push edx
push ecx
call fcn.0041f4b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401dd0
jmp 0x406f92
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
push 1
push eax
call fcn.004183a0
add esp, 8
lea ecx, [ebp - 0x28]
or ebx, 8
mov esi, eax
mov dword [ebp - 0xf0], ebx
push 0x16
push str.wtoolexwpsupdate.exe
call fcn.00402cf0
mov edi, dword [ebp - 0xf4]
mov ecx, edi
push esi
call fcn.004020d0
and ebx, 0xfffffff7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xf0], ebx
call fcn.00401dd0
push edi
call fcn.00405e40
add esp, 4
test al, al
lea eax, [ebp - 0x88]
push eax
je 0x406a74
call fcn.00406430
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406a52
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x406a5a
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x88]
call fcn.00401dd0
jmp 0x406f92
call fcn.00406430
add esp, 4
mov ecx, edi
push eax
call fcn.004020d0
lea ecx, [ebp - 0x88]
call fcn.00401dd0
push edi
call fcn.00405e40
add esp, 4
test al, al
je 0x406b48
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.004183a0
add esp, 8
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmovae eax, dword [ebp - 0x70]
push 0
push eax
mov dword [ebp - 4], 7
call esi
push 9
push str.wtoolex_
lea ecx, [ebp - 0x70]
call fcn.00402cf0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
call fcn.00406620
add esp, 4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x406b0f
mov eax, dword [edi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x406b33
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402e70
lea ecx, [ebp - 0x28]
call fcn.00401dd0
lea ecx, [ebp - 0x70]
call fcn.00401dd0
jmp 0x406f92
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 9
push 1
push eax
call fcn.004183a0
add esp, 8
lea ecx, [ebp - 0x28]
or ebx, 0x10
mov esi, eax
mov dword [ebp - 0xf0], ebx
push 0x17
push str.wtoolexupdateself.exe
call fcn.00402cf0
push esi
mov ecx, edi
call fcn.004020d0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00401dd0
push edi
call fcn.00405e40
add esp, 4
test al, al
je 0x406bb2
mov ecx, dword [ebp - 0xf8]
push 0x12
push str._r__from:ksolaunch
call fcn.00402e70
jmp 0x406f92
lea eax, [ebp - 0x104]
push eax
call fcn.00405fd0
add esp, 4
cmp dword [ebp - 0x100], 0
mov dword [ebp - 4], 0xa
je 0x406f87
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ebx, dword [ebp - 0x104]
mov byte [ebp - 4], 0xb
mov esi, dword [ebx]
cmp esi, ebx
je 0x406cfe
lea ecx, [ecx]
lea eax, [esi + 8]
push str.wpsupdate.exe
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401280
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x406ca6
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x406c5c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406c52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fae
push edx
push ecx
call fcn.0041f4b4
add esp, 8
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x2c], 7
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406ce0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406cd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fae
push edx
push ecx
call fcn.0041f4b4
add esp, 8
lea eax, [ebp - 0x40]
push eax
call fcn.00405e40
add esp, 4
test al, al
jne 0x406e2c
mov esi, dword [esi]
cmp esi, ebx
jne 0x406c00
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov esi, dword [ebx]
mov byte [ebp - 4], 0xc
cmp esi, ebx
je 0x406f29
push str.updateself.exe
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00401280
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x58]
cmp eax, edi
je 0x406dc9
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x406d7f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406d75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fae
push edx
push ecx
call fcn.0041f4b4
add esp, 8
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x58], ax
mov dword [ebp - 0x44], 7
mov eax, dword [edi]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x406e09
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406dff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fae
push edx
push ecx
call fcn.0041f4b4
add esp, 8
lea eax, [ebp - 0x58]
push eax
call fcn.00405e40
add esp, 4
test al, al
jne 0x406ebf
mov esi, dword [esi]
cmp esi, ebx
jne 0x406d20
jmp 0x406eef
lea eax, [ebp - 0x88]
push eax
call fcn.00406430
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406e43
mov eax, dword [eax]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmovae ecx, dword [ebp - 0x40]
push 0
push eax
push ecx
call esi
lea ecx, [ebp - 0x88]
call fcn.00401dd0
lea eax, [ebp - 0x88]
push eax
call fcn.00406620
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406e7c
mov eax, dword [eax]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
call esi
lea ecx, [ebp - 0x88]
call fcn.00401dd0
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x406f3d
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00402e70
jmp 0x406f3d
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x58]
cmp ecx, eax
je 0x406edd
cmp dword [ebp - 0x44], 8
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00402e70
mov ecx, dword [ebp - 0xf8]
push 0x12
push str._r__from:ksolaunch
call fcn.00402e70
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x406f29
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406f1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fb3
push edx
push ecx
call fcn.0041f4b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x406f73
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406f69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fb3
push edx
push ecx
call fcn.0041f4b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x104]
call fcn.00405f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f721
mov esp, ebp
pop ebp
ret
call fcn.0043a32a
call fcn.0043a32a
int3