Function at 0x5d2c0a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax + 8]
mov esi, edx
mov dword [esp + 0xc], eax
mov ecx, edi
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], eax
call fcn.005b935e
mov ebx, dword [esi + 0x24]
mov ecx, eax
and bl, 0x20
mov dword [esp + 0x18], ecx
neg bl
sbb bl, bl
and bl, 0xfd
add bl, 0x20
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x28], ebx
jne 0x5d2c6c
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
movzx edx, bl
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.005b930f
add esp, 0x10
mov ecx, dword [esp + 0xc]
xor eax, eax
push eax
push eax
mov edx, esi
call fcn.005d5bca
pop ecx
pop ecx
test eax, eax
jne 0x5d2c96
cmp dword [ebp + 8], eax
jne 0x5d2c96
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x5d2dca
movzx eax, byte [ebp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push eax
push esi
mov dword [esp + 0x34], eax
xor eax, eax
push 3
push eax
push eax
call fcn.005e3187
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov edx, esi
mov dword [esp + 0x1c], eax
call fcn.005d5aff
mov edx, dword [esp + 0xc]
or dword [esp + 0x1c], eax
mov ecx, dword [edx + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
movsx eax, word [esi + 0x2a]
inc eax
add eax, ecx
mov dword [edx + 0x2c], eax
lea eax, [ecx + 1]
push eax
push dword [ebp + 0x14]
mov ecx, edi
push 0x40
pop edx
call fcn.005b9192
pop ecx
pop ecx
xor ecx, ecx
xor edx, edx
or eax, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
cmp dx, word [esi + 0x2a]
jge 0x5d2d4c
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
je 0x5d2d1f
cmp ecx, 0x1f
jg 0x5d2d3b
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
je 0x5d2d3b
mov eax, dword [esp + 0x10]
mov edx, esi
inc eax
add eax, ecx
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.005c954c
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [esi + 0x2a]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x5d2d0c
mov ebx, dword [esp + 0x28]
mov ecx, edi
call fcn.005b950e
push dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov esi, eax
push dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x18]
push dword [esp + 0x30]
push 1
push 0
push 0x6d
call fcn.005e3133
add esp, 0x1c
mov ecx, edi
call fcn.005b950e
cmp esi, eax
jge 0x5d2da2
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
movzx edx, bl
push dword [esp + 0x20]
push dword [ebp + 0xc]
call fcn.005b930f
add esp, 0x10
jmp 0x5d2da9
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [esp + 0xc]
mov edx, esi
push eax
push eax
push eax
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.005d5732
mov eax, dword [esp + 0x24]
add esp, 0x10
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x5d2e55
push eax
push ecx
push dword [ebp + 0x10]
mov edx, esi
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.005d2e9b
xor eax, eax
mov ecx, edi
cmp byte [ebp + 0x1c], al
setne al
push eax
push dword [ebp + 0xc]
push 0x76
pop edx
call fcn.005b9192
add esp, 0x18
cmp byte [ebx + 0x12], 0
jne 0x5d2e11
push 0xfffffffffffffffa
mov edx, esi
mov ecx, edi
call fcn.005b98c3
pop ecx
cmp byte [ebp + 0x24], 0
je 0x5d2e21
push 4
pop edx
mov ecx, edi
call fcn.005b962b
mov eax, dword [esp + 0x14]
test eax, eax
js 0x5d2e3a
cmp eax, dword [ebp + 0xc]
je 0x5d2e3a
push eax
push 0x76
pop edx
mov ecx, edi
call fcn.005b917e
pop ecx
xor eax, eax
cmp byte [ebp + 0x24], 2
push 2
pop ecx
movzx eax, al
cmove eax, ecx
mov ecx, edi
movzx edx, al
call fcn.005b962b
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
mov edx, esi
push ecx
mov ecx, ebx
call fcn.005d60be
push dword [esp + 0x28]
movzx eax, byte [ebp + 0x20]
mov ecx, ebx
mov edx, dword [ebp + 8]
push eax
push dword [esp + 0x28]
push esi
push 2
pop eax
push eax
xor eax, eax
push eax
push 0x6d
call fcn.005e3133
mov edx, dword [esp + 0x44]
add esp, 0x2c
mov ecx, edi
call fcn.005b93a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret