Function at 0x100318e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x1003191b
xor al, al
jmp 0x10031ca7
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1002ff80
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.10031f00
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
xor al, al
xor edx, edx
mov byte [ebp - 0x36], al
mov eax, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x48], edx
sar eax, 5
test eax, eax
je 0x10031b1a
xor ecx, ecx
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x28]
jne 0x100319d9
cmp dword [eax + ecx + 0x18], edi
jne 0x10031ab3
cmp esi, ebx
je 0x10031ad2
mov dword [ebx], edi
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x10031ae8
mov esi, dword [eax + ecx + 0x1c]
test esi, esi
je 0x10031ab0
lea edi, [eax + 0x18]
add edi, ecx
cmp dword [edi], 0
je 0x10031aad
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov ecx, eax
mov dl, byte [ecx + 0xd]
mov byte [ebp - 0x35], dl
test dl, dl
jne 0x10031aad
mov edx, dword [ebp - 0x1c]
nop dword [eax]
cmp dword [ecx + 0x10], esi
jae 0x10031a1a
mov ecx, dword [ecx + 8]
jmp 0x10031a1e
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10031a10
mov esi, dword [ebp - 0x1c]
cmp edx, esi
je 0x10031aad
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + ebx + 0x1c]
mov ebx, dword [ebp - 0x30]
cmp ecx, dword [edx + 0x10]
jb 0x10031aad
cmp byte [ebp - 0x35], 0
jne 0x10031a6d
mov edx, dword [edi]
mov ecx, esi
nop dword [eax + eax]
cmp dword [eax + 0x10], edx
jae 0x10031a5a
mov eax, dword [eax + 8]
jmp 0x10031a5e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10031a50
cmp ecx, esi
je 0x10031a6d
cmp edx, dword [ecx + 0x10]
jae 0x10031aad
mov esi, dword [ebp - 0x3c]
cmp esi, ebx
je 0x10031a80
mov eax, dword [edi]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x10031a93
push edi
push ebx
lea ecx, [ebp - 0x34]
call fcn.10031500
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], esi
push dword [ebp - 0x44]
lea eax, [ebp - 0x50]
push edi
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.10031fe0
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0x36], 1
jmp 0x10031ab3
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
inc dword [ebp - 0x48]
add dword [ebp - 0x40], 0x20
sar eax, 5
cmp dword [ebp - 0x48], eax
jae 0x10031b01
mov ecx, dword [ebp - 0x40]
jmp 0x100319b1
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.10031500
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], esi
push dword [ebp - 0x44]
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10031fe0
mov ecx, dword [ebp - 0x28]
jmp 0x10031b07
cmp byte [ebp - 0x36], 0
je 0x10031b1a
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x44], eax
cmp eax, 0x32
jb 0x10031992
mov esi, ebx
xor edi, edi
mov ebx, dword [ebp - 0x34]
sub esi, ebx
sar esi, 2
mov dword [ebp - 0x40], esi
test esi, esi
je 0x10031b87
mov eax, esi
nop
mov esi, dword [ebx + edi*4]
test esi, esi
je 0x10031b82
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x10031b7f
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10031b7f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
je 0x10031b78
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10031b78
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
inc edi
cmp edi, eax
jb 0x10031b30
cmp ebx, dword [ebp - 0x30]
setne byte [ebp - 0x35]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dword [ebp - 0x44], ecx
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x10031bcb
push dword [esi + 8]
lea ecx, [ebp - 0x1c]
call fcn.10031f80
mov esi, dword [esi]
push 0x14
push edi
call fcn.1003ee00
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x10031ba5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
push 0x14
push dword [ebp - 0x1c]
call fcn.1003ee00
add esp, 8
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10031c40
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10031c21
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031c21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.1003ee00
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10031ca4
mov edx, dword [ebp - 0x24]
push ecx
call fcn.100316b0
mov ecx, dword [ebp - 0x20]
add esp, 4
mov edx, dword [ebp - 0x28]
sub ecx, edx
and ecx, 0xffffffe0
mov eax, edx
cmp ecx, 0x1000
jb 0x10031c85
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031c85
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003ee00
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
ret