Function at 0x405cd0
Capabilities:
Delete file
Delete registry key
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x442184]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push str.SOFTWAREGreatSkyDes
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x644], eax
mov dword [esp + 0x14], esi
mov dword [esi + 0x13c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4060f5
xor eax, eax
mov byte [esp + 0x328], bl
mov ecx, 0x81
lea edi, [esp + 0x329]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x530], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x531]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00403760
lea edx, [esp + 0x530]
nop
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x405d80
mov byte [esp + 0x120], cl
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x124]
push str._sHkApi.dll
push edx
stosb byte es:[edi], al
call fcn.004170ff
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
add esp, 0xc
lea eax, [esp + 0x328]
push eax
push ebx
push 0x4351e4
lea ecx, [esp + 0x53c]
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea edx, [esp + 0x32c]
push edx
lea eax, [esp + 0x128]
push eax
call esi
push 4
push 0
lea ecx, [esp + 0x330]
push ecx
mov ebx, eax
call esi
test ebx, ebx
je 0x4060cc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sHkApp.exe
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x328]
push edx
push 0
push 0x4351e4
lea eax, [esp + 0x53c]
push eax
call edi
push 1
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x128]
push edx
call esi
push 4
mov ebx, eax
push 0
lea eax, [esp + 0x330]
push eax
call esi
test ebx, ebx
je 0x4060cc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sDogDll.dll
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x328]
push edx
push 0
push 0x4351e4
lea eax, [esp + 0x53c]
push eax
call edi
push 1
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x128]
push edx
call esi
push 4
mov ebx, eax
push 0
lea eax, [esp + 0x330]
push eax
call esi
test ebx, ebx
je 0x4060cc
cmp dword [ebp + 8], 2
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x40606b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sHkSys.dll
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x328]
push edx
push 0
push 0x4351e4
lea eax, [esp + 0x53c]
push eax
call edi
push 1
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x128]
push edx
call esi
push 4
push 0
lea eax, [esp + 0x330]
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._sHkSys.dll.ole
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x328]
push eax
push 0
push 0x4351e4
lea ecx, [esp + 0x53c]
push ecx
call edi
push 1
lea edx, [esp + 0x32c]
push edx
lea eax, [esp + 0x128]
push eax
call esi
push 4
push 0
lea ecx, [esp + 0x330]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x124]
push str._sHkApiIni.ini
push eax
call fcn.004170ff
add esp, 0xc
lea ecx, [esp + 0x328]
push ecx
push 0
push 0x4351e4
lea edx, [esp + 0x53c]
push edx
call edi
push 1
lea eax, [esp + 0x32c]
push eax
lea ecx, [esp + 0x128]
push ecx
call esi
push 4
push 0
lea edx, [esp + 0x330]
push edx
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sHkApp.ini
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x120]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sHkSys.bak.ole
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x120]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sHkSys.bak
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x120]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sHkSys.cpy
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x120]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sHookProc.dll
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x328]
push edx
push 0
push 0x4351e4
lea eax, [esp + 0x53c]
push eax
call edi
push 1
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x128]
push edx
call esi
push 4
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x330]
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40610c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x13c]
lea edx, [eax + 1]
push eax
lea eax, [esp + 0x32c]
mov dword [ecx + 0x13c], edx
push eax
lea edx, [esp + 0x128]
push edx
call fcn.00405210
xor eax, eax
mov ecx, dword [esp + 0x63c]
call fcn.00417188
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._shkcore32.dll
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x328]
push edx
push 0
push 0x4351e4
lea eax, [esp + 0x53c]
push eax
call edi
push 1
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x128]
push edx
call esi
push 4
push 0
lea eax, [esp + 0x330]
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._sws2_32d.dll
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x328]
push eax
push 0
push 0x4351e4
lea ecx, [esp + 0x53c]
push ecx
call edi
push 1
lea edx, [esp + 0x32c]
push edx
lea eax, [esp + 0x128]
push eax
call esi
push 4
push 0
lea ecx, [esp + 0x330]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x124]
push str._sws2_32e.dll
push eax
call fcn.004170ff
add esp, 0xc
lea ecx, [esp + 0x328]
push ecx
push 0
push 0x4351e4
lea edx, [esp + 0x53c]
push edx
call edi
push 1
lea eax, [esp + 0x32c]
push eax
lea ecx, [esp + 0x128]
push ecx
call esi
push 4
push 0
lea edx, [esp + 0x330]
push edx
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x124]
push str._sDesInitScan.exe
push ecx
call fcn.004170ff
add esp, 0xc
lea edx, [esp + 0x328]
push edx
push 0
push 0x4351e4
lea eax, [esp + 0x53c]
push eax
call edi
push 1
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x128]
push edx
call esi
push 4
push 0
lea eax, [esp + 0x330]
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._sGDesServer.exe
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._sSocketDll.dll
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._sMessageDispose.dll
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._sPDMClient.dll
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._s_setup_client.ini
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._spskill.exe
push edx
call fcn.004170ff
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call ebx
mov ecx, dword [esp + 0x63c]
mov eax, 1
call fcn.00417188
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4