Function at 0x594448
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff34
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0x6de834
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x24], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0xc], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x28]
mov dword fs:[0], eax
mov word [ebp - 0x18], 8
mov edx, dword [ebp + 8]
push edx
call fcn.005881e4
pop ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x6e6998
mov dword [eax], ecx
xor eax, eax
mov ebx, dword [ebp + 8]
mov ecx, 0x6ff36c
add ebx, 0x28
cmp ecx, 0x6ff36c
mov edx, ebx
mov dword [ebx + 8], eax
mov eax, 0x6ff378
mov dword [ebx + 8], eax
mov edx, dword [edx + 8]
mov dword [ebp - 0x84], edx
je 0x5944d6
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
xor ecx, ecx
add eax, 0x38
mov dword [eax + 4], edx
lea edx, [eax + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [edx + 8], ecx
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
cmp edx, ecx
jbe 0x59450e
lea edx, [ebp - 0x30]
jmp 0x594511
lea edx, [ebp - 0x2c]
mov ecx, dword [edx]
xor edx, edx
mov dword [eax], ecx
xor ecx, ecx
inc dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
add ebx, 0x58
lea eax, [ebx + 8]
mov dword [eax + 8], edx
xor eax, eax
mov word [ebp - 0x18], 0x2c
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
lea eax, [ebx + 8]
xor edx, edx
mov byte [ebx + 0x2c], 0
mov dword [ebx], 1
mov dword [eax + 8], edx
mov ecx, dword [eax + 8]
xor eax, eax
mov dword [ebp - 0x94], ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x594577
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x18], edx
mov esi, dword [ebp - 0x3c]
jmp 0x59459e
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
cmp eax, edx
jne 0x594594
push ebx
call fcn.0059493c
pop ecx
mov esi, dword [ebx + 0x1c]
add dword [ebx + 0x1c], 0x458
jmp 0x59459e
mov esi, dword [ebx + 0x1c]
add dword [ebx + 0x1c], 0x458
xor eax, eax
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi + 8], edx
xor ecx, ecx
mov edi, esi
mov dword [esi + 0xc], ecx
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebx + 0x24], edi
mov dword [edi + 4], eax
mov dword [edi + 8], edi
mov dword [edi + 0xc], edi
mov dword [ebx], 1
xor eax, eax
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
inc dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], eax
add esi, 0x90
mov edx, dword [ebp - 0x40]
lea ebx, [esi + 0x50]
mov dword [ebx + 8], edx
mov dword [ebp - 0x44], 0x6ff378
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], ecx
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x48]
mov ecx, 0x6ff36c
cmp ecx, 0x6ff36c
mov edx, dword [eax + 8]
mov dword [ebp - 0xa4], edx
je 0x59461d
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0xc]
lea ebx, [esi + 0x60]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebx + 8], edx
mov dword [ebp - 0x50], 0x6ff378
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 8], ecx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x54]
mov ecx, 0x6ff36c
cmp ecx, 0x6ff36c
mov edx, dword [eax + 8]
mov dword [ebp - 0xb4], edx
je 0x594661
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
lea eax, [esi + 0x70]
xor edx, edx
inc dword [ebp - 0xc]
xor ecx, ecx
mov dword [eax + 4], edx
lea edx, [eax + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [edx + 8], ecx
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x5c], 1
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
cmp edx, ecx
jbe 0x594696
lea edx, [ebp - 0x5c]
jmp 0x594699
lea edx, [ebp - 0x58]
mov ecx, dword [edx]
xor edx, edx
mov dword [eax], ecx
xor ecx, ecx
inc dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 0x120
mov dword [eax + 4], edx
lea edx, [eax + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [edx + 8], ecx
mov dword [ebp - 0x60], 0x100
mov dword [ebp - 0x64], 1
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
cmp edx, ecx
jbe 0x5946da
lea edx, [ebp - 0x64]
jmp 0x5946dd
lea edx, [ebp - 0x60]
mov ecx, dword [edx]
xor edx, edx
mov dword [eax], ecx
xor ecx, ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 0x140
mov dword [eax + 4], edx
lea edx, [eax + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [edx + 8], ecx
mov dword [ebp - 0x68], 0x15
mov dword [ebp - 0x6c], 1
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
cmp edx, ecx
jbe 0x59471b
lea edx, [ebp - 0x6c]
jmp 0x59471e
lea edx, [ebp - 0x68]
mov ecx, dword [edx]
mov dword [eax], ecx
inc dword [ebp - 0xc]
push 0x4a8604
push 1
push 0x594ac0
push 1
push 0x400
push 0x18
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.006998b4
add dword [ebp - 0xc], 0x800
mov eax, dword [ebp + 8]
xor edx, edx
add eax, 0x6168
xor ecx, ecx
add esp, 0x1c
mov byte [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 5
mov dword [eax + 0xc], 2
mov byte [eax + 0x10], 0
mov byte [eax + 0x11], 0
mov byte [eax + 0x12], 0
mov byte [eax + 0x13], 0
mov byte [eax + 0x14], 0
mov byte [eax + 0x15], 0
mov ebx, dword [ebp + 8]
add ebx, 0x6188
lea eax, [ebx + 8]
mov dword [eax + 8], edx
xor eax, eax
mov word [ebp - 0x18], 0x80
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
lea eax, [ebx + 8]
xor edx, edx
mov byte [ebx + 0x2c], 0
mov dword [ebx], 1
mov dword [eax + 8], edx
mov ecx, dword [eax + 8]
xor eax, eax
mov dword [ebp - 0xc4], ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x78], edx
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5947ec
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x18], edx
mov esi, dword [ebp - 0x78]
jmp 0x59480d
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
cmp eax, edx
jne 0x594806
push ebx
call fcn.00594b40
pop ecx
mov esi, dword [ebx + 0x1c]
add dword [ebx + 0x1c], 0x30
jmp 0x59480d
mov esi, dword [ebx + 0x1c]
add dword [ebx + 0x1c], 0x30
xor eax, eax
mov dword [esi + 4], eax
xor edx, edx
mov dword [esi + 8], edx
xor ecx, ecx
mov dword [esi + 0xc], ecx
xor eax, eax
mov dword [esi], eax
mov edi, esi
mov dword [ebx + 0x24], edi
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], edi
mov dword [edi + 0xc], edi
mov dword [ebx], 0x20
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
inc dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x28
push ecx
call fcn.0069a464
add esp, 8
push 0
push 0x7d0
mov eax, dword [ebp + 8]
push eax
call fcn.005882dc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [0x6de808], edx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x20], eax
add esp, 0xc
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x6164], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x6160], ecx
push 0x28
call fcn.0067ac68
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x5948be
mov word [ebp - 0x18], 0xa4
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.006669a8
add esp, 8
mov word [ebp - 0x18], 0x98
mov eax, dword [ebp - 4]
jmp 0x5948c1
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6180], eax
push 0x6fce60
call sub.KERNEL32.DLL_InitializeCriticalSection
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x6de80c], eax
mov ecx, dword [0x6de80c]
test ecx, ecx
je 0x594928
push 0
push 0x1000
push 0x5f95d4
call fcn.006a8f0c
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x18], 8
mov eax, dword [ebp - 0x7c]
test eax, eax
jg 0x594928
mov edx, dword [0x6de80c]
push edx
call sub.KERNEL32.DLL_CloseHandle
xor ecx, ecx
mov dword [0x6de80c], ecx
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret