Function at 0x459030
Capabilities:
Check for time delay via gettickcount
Create directory
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633747
mov eax, dword fs:[0]
push eax
mov eax, 0x1cfc
call fcn.005bd7a0
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x1cf4], 0
push 0
push eax
call fcn.005d7e20
add esp, 0xc
lea eax, [ebp - 0x64c]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x64c]
push 0x5c
push eax
call fcn.005d8036
push 0x208
mov esi, eax
lea eax, [ebp - 0xa5c]
push 0
push eax
call fcn.005d7e20
add esp, 0x14
test esi, esi
je 0x4590fc
lea edx, [esi + 2]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1cf0], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4590d0
sub ecx, dword [ebp - 0x1cf0]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
lea eax, [ebp - 0xa5c]
push eax
call fcn.005d78a0
add esp, 0xc
xor eax, eax
mov word [esi], ax
push 0x208
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.005d7e20
push 0x208
lea eax, [ebp - 0xe6c]
push 0
push eax
call fcn.005d7e20
push 0x208
lea eax, [ebp - 0x1484]
push 0
push eax
call fcn.005d7e20
add esp, 0x24
cmp dword [edi + 0x1f9], 0
je 0x45924c
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.005d7e20
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x23c]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x444]
push str._sytool
push eax
call fcn.00458850
push 0x208
lea eax, [ebp - 0x168c]
push 0
push eax
call fcn.005d7e20
lea eax, [ebp - 0x1484]
push 0x208
push eax
call fcn.004503c0
add esp, 0x20
lea eax, [ebp - 0x168c]
push 0
push 0x10
push eax
push 0
call esi
lea ecx, [ebp - 0x64c]
lea eax, [ebp - 0x168c]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4591f6
test dx, dx
je 0x4591f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4591f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4591d0
xor eax, eax
jmp 0x4591fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x459267
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x1484]
push 0x63cc30
push eax
call esi
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0xe6c]
push 0x63cc30
push eax
call esi
add esp, 0x20
mov dword [ebp - 0x1cf4], 1
jmp 0x459267
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x444]
push str._sytool
push eax
call fcn.00458850
add esp, 0xc
push 0
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x459289
push 2
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x208
lea eax, [ebp - 0xc64]
push 0
push eax
call fcn.005d7e20
lea eax, [ebp - 0xa5c]
push eax
lea esi, [edi + 0x1fd]
push esi
call fcn.005e5c21
add esp, 0x14
test eax, eax
jne 0x4592f0
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4592c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push 0
push esi
call fcn.005d7e20
lea eax, [ebp - 0xa5c]
push eax
push 0x63d240
push esi
call fcn.00458880
add esp, 0x18
push 0x208
lea eax, [ebp - 0x127c]
push 0
push eax
call fcn.005d7e20
push 0x208
lea eax, [ebp - 0x1894]
push 0
push eax
call fcn.005d7e20
push 0x208
lea eax, [ebp - 0x1ca4]
push 0
push eax
call fcn.005d7e20
push 0x208
lea eax, [ebp - 0x1a9c]
push 0
push eax
call fcn.005d7e20
add esp, 0x30
lea eax, [ebp - 0x127c]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [edi + 0x2a2]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0xc64]
push 0x63cc30
push eax
call fcn.00458850
lea eax, [ebp - 0x127c]
push eax
push eax
lea eax, [ebp - 0x1894]
push str.__s____s_
push eax
call fcn.00458850
add esp, 0x20
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x1a9c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
push 0x208
push eax
push 0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1ca4]
push 0x208
push eax
call fcn.004503c0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc64]
push eax
call fcn.00450410
add esp, 0x10
lea ecx, [edi + 0x326]
lea eax, [ebp - 0x34]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x459400
test dl, dl
je 0x4593fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x459400
add eax, 2
add ecx, 2
test dl, dl
jne 0x4593e0
xor eax, eax
jmp 0x459405
sbb eax, eax
or eax, 1
test eax, eax
je 0x459415
mov dword [ebp - 0x1cf0], 1
jmp 0x459448
lea eax, [ebp - 0xc64]
push eax
lea eax, [edi + 0x2a2]
push eax
push 0x86
lea ecx, [edi + 0x347]
call fcn.00460600
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 0x1cf0], eax
lea ecx, [ebp - 0xc64]
push ecx
lea ecx, [edi + 0x2a2]
push ecx
push 0x86
lea ecx, [edi + 0x347]
call fcn.00460600
test eax, eax
jne 0x459474
mov eax, dword [ebp - 0x1cf0]
test eax, eax
je 0x459498
lea eax, [edi + 0x350]
mov ecx, edi
push eax
lea eax, [ebp - 0x1894]
push eax
lea eax, [ebp - 0xc64]
push eax
call fcn.00458fe0
test eax, eax
je 0x459992
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x208
mov dword [ebp - 0x1cf0], eax
lea eax, [ebp - 0x854]
push 0
push eax
call fcn.005d7e20
add esp, 0xc
lea eax, [ebp - 0x64c]
cmp dword [edi + 0x129], 0
push esi
jne 0x4594d0
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x854]
push 0x63cc30
push eax
call fcn.00458850
add esp, 0x10
lea eax, [ebp - 0x854]
lea ecx, [edi + 0x347]
push eax
push esi
push 0x85
call fcn.00460600
test eax, eax
je 0x45998d
cmp dword [edi + 0x125], 0
je 0x45951d
push 2
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x208
lea eax, [ebp - 0x1074]
push 0
push eax
call fcn.005d7e20
add esp, 0xc
lea eax, [ebp - 0x1074]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [edi + 0x12d], 0
je 0x45981d
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.005d7e20
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x23c]
push 0x208
push eax
call fcn.004504b0
add esp, 0x1c
cmp dword [ebp - 0x1cf4], 0
je 0x4596f2
push 1
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0x1484]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov dword [ebp - 0x1cc0], 7
mov dword [ebp - 0x1cc4], 0
mov word [ebp - 0x1cd4], ax
cmp word [ebp - 0xe6c], ax
jne 0x4595d6
xor ecx, ecx
jmp 0x4595ef
lea ecx, [ebp - 0xe6c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4595e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xe6c]
push eax
lea ecx, [ebp - 0x1cd4]
call fcn.00451230
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1ca8], 7
mov dword [ebp - 0x1cac], 0
mov word [ebp - 0x1cbc], ax
cmp word [ebp - 0x23c], ax
jne 0x459633
xor ecx, ecx
jmp 0x45964f
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459640
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1cbc]
call fcn.00451230
lea eax, [ebp - 0x1cd4]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1cbc]
push eax
call fcn.00458c30
mov eax, dword [ebp - 0x1ca8]
add esp, 8
cmp eax, 8
jb 0x45969a
inc eax
lea ecx, [ebp - 0x1cbc]
push eax
push dword [ebp - 0x1cbc]
call fcn.00451380
xor eax, eax
mov dword [ebp - 0x1ca8], 7
mov word [ebp - 0x1cbc], ax
mov eax, dword [ebp - 0x1cc0]
mov dword [ebp - 0x1cac], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4596dc
inc eax
lea ecx, [ebp - 0x1cd4]
push eax
push dword [ebp - 0x1cd4]
call fcn.00451380
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x45981d
xor eax, eax
mov dword [ebp - 0x1cc0], 7
mov dword [ebp - 0x1cc4], 0
mov word [ebp - 0x1cd4], ax
cmp word [ebp - 0x1074], ax
jne 0x45971c
xor ecx, ecx
jmp 0x459734
lea ecx, [ebp - 0x1074]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459725
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1074]
push eax
lea ecx, [ebp - 0x1cd4]
call fcn.00451230
xor eax, eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x1ca8], 7
mov dword [ebp - 0x1cac], 0
mov word [ebp - 0x1cbc], ax
cmp word [ebp - 0x23c], ax
jne 0x459778
xor ecx, ecx
jmp 0x459790
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459781
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1cbc]
call fcn.00451230
lea eax, [ebp - 0x1cd4]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1cbc]
push eax
call fcn.00458c30
mov eax, dword [ebp - 0x1ca8]
add esp, 8
cmp eax, 8
jb 0x4597db
inc eax
lea ecx, [ebp - 0x1cbc]
push eax
push dword [ebp - 0x1cbc]
call fcn.00451380
xor eax, eax
mov dword [ebp - 0x1ca8], 7
mov word [ebp - 0x1cbc], ax
mov eax, dword [ebp - 0x1cc0]
mov dword [ebp - 0x1cac], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x45981d
inc eax
lea ecx, [ebp - 0x1cd4]
push eax
push dword [ebp - 0x1cd4]
call fcn.00451380
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x1cd8], 7
xor eax, eax
mov dword [ebp - 0x1cdc], 0
lea edx, [edi + 0x131]
mov word [ebp - 0x1cec], ax
cmp word [edx], ax
jne 0x459851
xor ecx, ecx
jmp 0x459873
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1cf4], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459860
sub ecx, dword [ebp - 0x1cf4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1cec]
call fcn.00451230
cmp dword [ebp - 0x1cd8], 8
lea eax, [ebp - 0x1cec]
mov dword [ebp - 4], 4
mov ecx, 0x63d25c
cmovae eax, dword [ebp - 0x1cec]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4598c6
test dx, dx
je 0x4598c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4598c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4598a0
xor eax, eax
jmp 0x4598cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4598e8
lea eax, [ebp - 0x1074]
push eax
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x1cf5]
call fcn.00451560
sub esi, dword [ebp - 0x1cf0]
cmp esi, 0x7d0
jae 0x45990a
mov eax, 0x7d0
sub eax, esi
push eax
push dword [edi + 0x350]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1d08]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x854]
mov ecx, edi
push eax
movups xmmword [ebp - 0x1d08], xmm0
call fcn.00458fe0
mov eax, dword [ebp - 0x1cd8]
cmp eax, 8
jb 0x45998d
mov ecx, dword [ebp - 0x1cec]
inc eax
cmp eax, 0x7fffffff
jbe 0x459949
call fcn.005e06e1
add eax, eax
cmp eax, 0x1000
jb 0x459984
test byte [ebp - 0x1cec], 0x1f
je 0x459960
call fcn.005e06e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45996c
call fcn.005e06e1
sub ecx, eax
cmp ecx, 4
jae 0x459978
call fcn.005e06e1
cmp ecx, 0x23
jbe 0x459982
call fcn.005e06e1
mov ecx, eax
push ecx
call fcn.0062ce30
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bd4a0
mov esp, ebp
pop ebp
ret