Function at 0x402220
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41dff0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4252f0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
push str.Searching_for_WorldVDS...
push 0x426790
call fcn.00404fa0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov ecx, dword [eax + 8]
xor ebx, ebx
xor edi, edi
test cl, 6
jne 0x40228e
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40228e
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4022ad
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x4022a6
or eax, 4
push ebx
push eax
call fcn.004067b0
xor edx, edx
mov edi, 7
push 9
mov eax, str.jcore.exe
lea esi, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
call fcn.004037f0
mov eax, esi
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], ebx
call fcn.00406fd0
add esp, 4
mov byte [esp + 0x68], 2
cmp dword [esp + 0x5c], 8
jb 0x4022fd
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00409e67
add esp, 4
xor edx, edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
cmp dword [esp + 0x40], ebx
jne 0x4023e0
push str.WARNING:_jcore.exe_is_not_running...
push 0x426790
call fcn.00404fa0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x402359
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x402359
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x402378
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x402371
or eax, 4
push ebx
push eax
call fcn.004067b0
call fcn.004020a0
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
cmp eax, ecx
je 0x4023ad
mov esi, dword [eax]
push eax
call fcn.00409e67
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x402398
push ecx
call fcn.00409e67
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
mov dword [esp + 0x40], ebx
call fcn.00409e67
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov edi, dword [esp + 0x28]
mov byte [esp + 0x1b], 1
mov dword [esp + 0x20], edi
mov ebp, eax
mov esi, dword [esp + 0x3c]
cmp edi, ebx
je 0x402403
cmp edi, dword [esp + 0x28]
je 0x402408
call fcn.0040a384
cmp ebp, esi
je 0x402822
cmp edi, ebx
jne 0x402575
call fcn.0040a384
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x402429
call fcn.0040a384
mov eax, dword [ebp + 8]
push eax
push 1
push 0x100611
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x100
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp edi, ebx
jne 0x40257c
call fcn.0040a384
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x402463
call fcn.0040a384
mov ecx, dword [ebp + 8]
push ecx
push ecx
push str.Found:_jcore.exe_with_PID
push 0x426790
call fcn.00404fa0
add esp, 0xc
push eax
call fcn.00402a50
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], 6
jne 0x4024b0
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4024b0
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4024cf
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x4024c8
or eax, 4
push ebx
push eax
call fcn.004067b0
push str.Sending_EXIT_command_to_jcore...
push 0x426790
call fcn.00404fa0
mov esi, dword [esp + 0x28]
add esp, 8
cmp esi, ebx
jne 0x402583
call fcn.0040a384
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4024fe
call fcn.0040a384
mov edx, dword [ebp + 8]
push edx
call fcn.004019d0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
and byte [esp + 0x1f], al
add esp, 4
push 0xfa
call edi
cmp esi, ebx
jne 0x40258a
call fcn.0040a384
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x402530
call fcn.0040a384
mov eax, dword [ebp + 8]
push eax
call fcn.00401ca0
and byte [esp + 0x1f], al
add esp, 4
push 0xfa
call edi
cmp esi, ebx
jne 0x40258e
call fcn.0040a384
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40255c
call fcn.0040a384
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401e80
add esp, 4
and byte [esp + 0x1b], al
je 0x402592
push 0x4218cc
jmp 0x402597
mov eax, dword [edi]
jmp 0x40241f
mov eax, dword [edi]
jmp 0x402459
mov eax, dword [esi]
jmp 0x4024f4
mov eax, dword [esi]
jmp 0x402526
mov eax, dword [esi]
jmp 0x402552
push str._ERROR
push 0x426790
call fcn.00404fa0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], 6
jne 0x4025d4
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4025d4
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4025f3
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x4025ec
or eax, 4
push ebx
push eax
call fcn.004067b0
push str.Waiting_for_WorldVDS_to_terminate...
push 0x426790
call fcn.00404fa0
mov edx, dword [esp + 0x24]
add esp, 8
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402797
push str._ERROR:_Timeout
push 0x426790
call fcn.00404fa0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x402660
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x402660
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x40267f
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x402678
or eax, 4
push ebx
push eax
call fcn.004067b0
push str.WARNING:_WorldVDS_didnt_terminate_properly.
push 0x426790
call fcn.00404fa0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], 6
jne 0x4026c1
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4026c1
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4026e0
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x4026d9
or eax, 4
push ebx
push eax
call fcn.004067b0
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x402790
call fcn.0040a384
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4026fd
call fcn.0040a384
mov edx, dword [ebp + 8]
push 0x4219b4
push ecx
push edx
push ecx
push str.Terminating_jcore__
push 0x426790
call fcn.00404fa0
add esp, 0xc
push eax
call fcn.00402a50
add esp, 4
push eax
call fcn.00404fa0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x40275d
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40275d
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x40277c
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x402775
or eax, 4
push ebx
push eax
call fcn.004067b0
cmp dword [esp + 0x1c], ebx
je 0x4027f9
mov edx, dword [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4027f9
mov eax, dword [eax]
jmp 0x4026f3
push 0x4219e4
push 0x426790
call fcn.00404fa0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004064e0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x4027da
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4027da
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4027f9
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x4027f2
or eax, 4
push ebx
push eax
call fcn.004067b0
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x40281e
call fcn.0040a384
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x402812
call fcn.0040a384
mov ebp, dword [ebp]
mov edi, dword [esp + 0x20]
jmp 0x4023f5
mov eax, dword [eax]
jmp 0x402808
call fcn.004020a0
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebx
cmp eax, ecx
je 0x402857
mov esi, dword [eax]
push eax
call fcn.00409e67
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x402842
push ecx
call fcn.00409e67
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
mov dword [esp + 0x40], ebx
call fcn.00409e67
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret