Function at 0x40f610
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b91b
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push ebx
push esi
push edi
mov eax, dword [0x7bf004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [edi + 0x774]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp esi, eax
jne 0x40f672
push dword [edi + 0xa20]
call dword [0x7c8bfc]
mov ecx, dword [edi + 0xa20]
cmp eax, 1
jne 0x40f669
push ebx
jmp 0x40f66b
push 1
push ecx
call dword [0x7c8bf8]
lea eax, [edi + 0x624]
cmp esi, eax
jne 0x40f700
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004097a0
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0x10
mov esi, eax
call fcn.00419e50
push 0x5d21c8
mov edx, esi
lea ecx, [ebp - 0x68]
call fcn.0041e910
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x40f6ca
cmp dword [eax + 0x24], ecx
mov ecx, 0x5d007c
je 0x40f6ca
mov ecx, dword [eax + 0x1c]
push 1
call fcn.0041a030
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00408e20
mov ebx, 0x10
mov dword [ebp - 0x10], ebx
and ebx, 0xffffffef
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408e20
mov esi, dword [ebp + 8]
lea eax, [edi + 0x10b4]
cmp esi, eax
jne 0x40f9b0
lea ecx, [ebp - 0x3c]
call fcn.004152b0
mov dword [ebp - 4], 2
mov edx, eax
push str.CSNZ_Server.exe
lea ecx, [ebp - 0x68]
call fcn.0041e910
add esp, 4
mov byte [ebp - 4], 3
mov ecx, eax
push 2
call fcn.00410220
mov ecx, eax
call fcn.0041a030
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00408e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408e20
push 0xdac
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
add edi, 0xf54
push eax
mov ecx, edi
call fcn.004064a0
mov dword [ebp - 4], 4
or ebx, 1
mov edx, str.127.0.0.1
mov dword [ebp - 0x10], ebx
mov ecx, eax
call fcn.0040fc50
test eax, eax
jne 0x40f7c6
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.004064a0
mov dword [ebp - 4], 5
or ebx, 2
mov edx, 0x5d007c
mov dword [ebp - 0x10], ebx
mov ecx, eax
call fcn.0040fc50
mov byte [ebp + 0xb], 0
test eax, eax
je 0x40f7ca
mov byte [ebp + 0xb], 1
mov dword [ebp - 4], 4
test bl, 2
je 0x40f7e4
and ebx, 0xfffffffd
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], ebx
call fcn.00408e20
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40f7fe
and ebx, 0xfffffffe
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], ebx
call fcn.00408e20
cmp byte [ebp + 0xb], 0
je 0x40f85c
lea ecx, [ebp - 0x3c]
call fcn.004152b0
mov dword [ebp - 4], 6
mov edx, eax
push str.CSOLauncher.exe__loadzbskillfromfile
lea ecx, [ebp - 0x68]
call fcn.0041e910
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
push 1
call fcn.00410220
mov ecx, eax
call fcn.0041a030
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
call fcn.00408e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408e20
jmp 0x40f9ba
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.004064a0
mov dword [ebp - 4], 8
or ebx, 4
mov edx, str.127.0.0.1
mov dword [ebp - 0x10], ebx
mov ecx, eax
call fcn.0040fc00
test eax, eax
je 0x40f8b0
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.004064a0
mov dword [ebp - 4], 9
or ebx, 8
mov edx, 0x5d007c
mov dword [ebp - 0x10], ebx
mov ecx, eax
call fcn.0040fc00
mov byte [ebp + 0xb], 1
test eax, eax
jne 0x40f8b4
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 8
test bl, 8
je 0x40f8ce
and ebx, 0xfffffff7
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], ebx
call fcn.00408e20
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x40f8e8
and ebx, 0xfffffffb
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], ebx
call fcn.00408e20
cmp byte [ebp + 0xb], 0
je 0x40f9ba
lea eax, [ebp - 0xec]
mov ecx, edi
push eax
call fcn.004064a0
mov esi, eax
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0xc0]
call fcn.004152b0
mov byte [ebp - 4], 0xb
mov edx, eax
push str.CSOLauncher.exe__ip
lea ecx, [ebp - 0x94]
call fcn.0041e910
mov byte [ebp - 4], 0xc
mov edx, eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.0041e790
mov byte [ebp - 4], 0xd
mov edx, eax
push str.__port_30002__loadzbskillfromfile
lea ecx, [ebp - 0x68]
call fcn.0041e910
add esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, eax
push 1
call fcn.00410220
mov ecx, eax
call fcn.0041a030
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x68]
call fcn.00408e20
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3c]
call fcn.00408e20
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x94]
call fcn.00408e20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc0]
call fcn.00408e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.00408e20
jmp 0x40f9ba
lea eax, [edi + 0x4d4]
cmp esi, eax
jne 0x40f9c2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20