Function at 0x405280
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d589
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x431f1c]
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 0x4052de
mov ecx, dword [eax]
mov dword [ebp - 0xfc], ecx
mov eax, dword [eax + 0x10]
cmp eax, 0xb
jb 0x405342
add eax, 0xfffffff6
lea eax, [ecx + eax*2]
mov dword [ebp - 0x100], eax
sub eax, ecx
sar eax, 1
je 0x405342
cmp word [ecx], 0x2d
je 0x405308
add ecx, 2
sub eax, 1
jne 0x4052f8
jmp 0x405342
mov edx, str._updatehigh
mov edi, ecx
mov esi, 0xb
sub edi, edx
jmp 0x405320
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x405589
add edx, 2
sub esi, 1
jne 0x405320
sub ecx, dword [ebp - 0xfc]
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x405370
lea eax, [ebp - 0x28]
push eax
call fcn.0040bd20
mov ebx, 1
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0xf0], ebx
call fcn.00404410
add esp, 8
mov byte [ebp - 0xe9], bl
test al, al
je 0x405377
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x405394
and ebx, 0xfffffffe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xf0], ebx
call fcn.00401a00
cmp byte [ebp - 0xe9], 0
je 0x4055c5
lea eax, [ebp - 0x28]
push eax
call fcn.0040b6c0
mov ecx, dword [ebp - 0xf4]
add esp, 4
push eax
call fcn.00401bb0
lea ecx, [ebp - 0x28]
call fcn.00401a00
lea eax, [ebp - 0x88]
push eax
call fcn.0040bd20
add esp, 4
push 0x11
push str.Run__UserAdmin__
push 0
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00402860
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 0x40545d
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00402510
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 0x41e4cc
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.00401bb0
lea ecx, [ebp - 0xb8]
call fcn.00401a00
lea ecx, [ebp - 0xd0]
call fcn.00401a00
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x405538
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40552e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b8e
push edx
push ecx
call fcn.0040cf06
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.00401a00
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4055a1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405597
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b8e
jmp 0x405597
mov eax, dword [ebp - 0x100]
add ecx, 2
jmp 0x4052f2
push edx
push ecx
call fcn.0040cf06
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.00401a00
jmp 0x405b72
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
push eax
call fcn.0040bd20
add esp, 4
lea ecx, [ebp - 0x28]
or ebx, 8
mov esi, eax
mov dword [ebp - 0xf0], ebx
push 0x16
push 0x41e5bc
call fcn.00402510
mov edi, dword [ebp - 0xf4]
mov ecx, edi
push esi
call fcn.00401bb0
and ebx, 0xfffffff7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xf0], ebx
call fcn.00401a00
push edi
call fcn.00404900
add esp, 4
test al, al
lea eax, [ebp - 0x88]
push eax
je 0x40565e
call fcn.00405020
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40563c
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x405644
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x88]
call fcn.00401a00
jmp 0x405b72
call fcn.00405020
add esp, 4
mov ecx, edi
push eax
call fcn.00401bb0
lea ecx, [ebp - 0x88]
call fcn.00401a00
push edi
call fcn.00404900
add esp, 4
test al, al
je 0x405730
lea eax, [ebp - 0x70]
push eax
call fcn.0040bd20
add esp, 4
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.00402510
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.00405210
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 0x4056f7
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 0x40571b
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402690
lea ecx, [ebp - 0x28]
call fcn.00401a00
lea ecx, [ebp - 0x70]
call fcn.00401a00
jmp 0x405b72
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 9
push eax
call fcn.0040bd20
add esp, 4
lea ecx, [ebp - 0x28]
or ebx, 0x10
mov esi, eax
mov dword [ebp - 0xf0], ebx
push 0x17
push str.wtoolexupdateself.exe
call fcn.00402510
push esi
mov ecx, edi
call fcn.00401bb0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00401a00
push edi
call fcn.00404900
add esp, 4
test al, al
je 0x405798
mov ecx, dword [ebp - 0xf8]
push 0x12
push str._r__from:ksolaunch
call fcn.00402690
jmp 0x405b72
lea eax, [ebp - 0x104]
push eax
call fcn.00404bc0
add esp, 4
cmp dword [ebp - 0x100], 0
mov dword [ebp - 4], 0xa
je 0x405b67
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 0x4058e1
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 0x405889
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40583f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405835
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b8e
push edx
push ecx
call fcn.0040cf06
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 0x4058c3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4058b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b8e
push edx
push ecx
call fcn.0040cf06
add esp, 8
lea eax, [ebp - 0x40]
push eax
call fcn.00404900
add esp, 4
test al, al
jne 0x405a0f
mov esi, dword [esi]
cmp esi, ebx
jne 0x4057e3
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 0x405b09
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 0x4059ac
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x405962
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b8e
push edx
push ecx
call fcn.0040cf06
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 0x4059ec
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b8e
push edx
push ecx
call fcn.0040cf06
add esp, 8
lea eax, [ebp - 0x58]
push eax
call fcn.00404900
add esp, 4
test al, al
jne 0x405a9f
mov esi, dword [esi]
cmp esi, ebx
jne 0x405903
jmp 0x405acf
lea eax, [ebp - 0x88]
push eax
call fcn.00405020
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x405a26
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.00401a00
lea eax, [ebp - 0x88]
push eax
call fcn.00405210
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x405a5f
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.00401a00
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x405b1d
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00402690
jmp 0x405b1d
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0x58]
cmp ecx, eax
je 0x405abd
cmp dword [ebp - 0x44], 8
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00402690
mov ecx, dword [ebp - 0xf8]
push 0x12
push str._r__from:ksolaunch
call fcn.00402690
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x405b09
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405aff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b93
push edx
push ecx
call fcn.0040cf06
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 0x405b53
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b93
push edx
push ecx
call fcn.0040cf06
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.00404b70
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.0040d173
mov esp, ebp
pop ebp
ret
call fcn.00410b2a
call fcn.00410b2a
int3