Function at 0x10004f00
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x30
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 4], edi
test edi, edi
jne 0x10004f27
mov eax, 0x80004005
pop edi
add esp, 0x30
ret
push esi
push 0xf01ff
push str.KuaiZipDrive
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10004f51
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 0x80004005
pop edi
add esp, 0x30
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call ebx
test eax, eax
jne 0x10004f85
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
mov eax, 0x80004005
pop edi
add esp, 0x30
ret
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 1
je 0x10005029
cmp eax, 3
je 0x10004fb4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x30
ret
call ebp
mov ebx, dword [esp + 0x30]
mov edi, eax
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x10004fd7
mov edx, 0x3e8
jmp 0x10004fe4
cmp edx, 0x2710
jbe 0x10004fe4
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10005066
cmp dword [esp + 0x30], ebx
jbe 0x1000500e
call ebp
jmp 0x10005018
call ebp
sub eax, edi
cmp eax, dword [esp + 0x34]
ja 0x10005083
cmp dword [esp + 0x20], 3
je 0x10004fb4
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov edi, dword [esp + 0x10]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1000504d
lea eax, [esp + 0x14]
push eax
push 0x24
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
call ebx
test eax, eax
jne 0x100050a0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebp
pop ebx
pop esi
mov eax, 0x80004005
pop edi
add esp, 0x30
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop ebx
pop esi
mov eax, 0x80004005
pop edi
add esp, 0x30
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop ebp
pop ebx
pop esi
mov eax, 0x80004005
pop edi
add esp, 0x30
ret
call ebp
mov edx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edx
cmp eax, 2
jne 0x10005135
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x100050db
mov edx, 0x3e8
jmp 0x100050e8
cmp edx, 0x2710
jbe 0x100050e8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push 0x24
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
call ebx
test eax, eax
je 0x10005131
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x30], edx
jbe 0x1000511c
call ebp
mov edi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jmp 0x10005126
call ebp
sub eax, edi
cmp eax, dword [esp + 0x34]
ja 0x10005131
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x100050c0
jmp 0x10005135
mov eax, dword [esp + 0x20]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0x80004005
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop ebx
pop esi
mov eax, edi
pop edi
add esp, 0x30
ret