Function at 0x5e5d87
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, edx
mov dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0x40], eax
push esi
mov ebx, dword [eax]
mov esi, dword [ecx + 8]
push edi
mov dword [ebp - 0x10], esi
mov al, byte [ebx]
cmp al, 0x4e
je 0x5e6180
cmp al, 0x48
je 0x5e6180
cmp al, 0x4b
jne 0x5e5dcc
mov ebx, dword [ebp + 0x14]
mov ecx, esi
push ebx
push 0
push 0x3b
pop edx
call fcn.005b9192
pop ecx
jmp 0x5e618d
mov esi, dword [ebp + 8]
and dword [ebp - 0x28], 0
and dword [ebp - 0x18], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [esi + 0x40]
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0xc], esi
test dword [esi + 0x24], 0x400
jne 0x5e5e0d
mov eax, dword [esi + 0x20]
test eax, eax
je 0x5e5e0d
mov eax, dword [eax + 0x1c]
cmp byte [edi + eax], 0
je 0x5e5e0d
xor edx, edx
cmp dword [ebp + 0x10], edx
sete dl
mov dword [ebp - 0x14], edx
jmp 0x5e5e13
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
test edi, edi
jle 0x5e5e30
mov edx, dword [esi + 0x30]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x5e5e2b
cmp dword [edx], ebx
je 0x5e617b
inc eax
cmp eax, edi
jl 0x5e5e19
movzx edx, word [esi + 0x28]
mov eax, edi
cmp edi, edx
jge 0x5e5e5d
mov edi, dword [esi + 0x30]
mov ecx, dword [ebp - 0x28]
mov esi, dword [edi + eax*4]
test esi, esi
je 0x5e5e4c
cmp dword [esi], ebx
jne 0x5e5e4c
inc ecx
inc eax
cmp eax, edx
jl 0x5e5e40
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 4]
test dword [ebx + 4], 0x800
je 0x5e5fed
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
cmp dword [eax], 1
je 0x5e5fed
mov eax, dword [ecx]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 8], eax
movzx esi, word [eax + 0x40]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x30], edi
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x38], eax
cmp edi, edx
jge 0x5e5f1d
mov ecx, edi
mov eax, dword [esi + 0x30]
mov eax, dword [eax + ecx*4]
cmp dword [eax], ebx
jne 0x5e5f0b
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 8]
dec eax
imul edi, eax, 0x18
mov eax, dword [ebp - 0x34]
push 0
mov edx, dword [edi + eax + 8]
call fcn.005c7837
mov esi, eax
mov eax, dword [ebp - 0x38]
pop ecx
mov ecx, dword [ebp - 8]
push 0
mov edx, dword [edi + eax + 8]
call fcn.005c7837
mov edx, dword [ebp - 0x24]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 4]
push esi
call fcn.005c7c93
mov edx, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 4]
push edi
mov dword [ebp - 0x24], eax
call fcn.005c7c93
mov esi, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
movzx eax, word [esi + 0x28]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jl 0x5e5eac
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp byte [eax + 0x45], 0
jne 0x5e5fce
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x5e5f5f
and dword [ebp - 0x2c], 0
cmp dword [eax], 0
jle 0x5e5f5f
mov edi, dword [ebp - 0x2c]
lea edx, [eax + 0x1c]
xor esi, esi
inc edi
mov word [edx], si
lea edx, [edx + 0x18]
cmp edi, dword [eax]
jl 0x5e5f49
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmp dword [eax], 1
jne 0x5e5f6f
mov eax, dword [eax + 8]
mov dword [ebx + 0xc], eax
jmp 0x5e5f87
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ecx]
shl eax, 2
push 0
push eax
call fcn.005a25bb
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edx, ebx
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x18]
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [ebp - 8]
inc ecx
push 0
push 4
or word [eax + 0x40], cx
mov ecx, dword [ebp - 4]
call fcn.005c8305
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov word [eax + 0x40], cx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x14], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call fcn.005c7f14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call fcn.005c7f14
mov eax, dword [ebp - 0x2c]
jmp 0x5e6000
push 0
push 0
push 4
mov edx, ebx
call fcn.005c8305
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp eax, 4
jne 0x5e6012
xor eax, eax
cmp dword [ebp - 0x14], eax
sete al
mov dword [ebp - 0x14], eax
jmp 0x5e6015
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x1c]
test eax, eax
push 0
push ecx
push 0x25
pop edx
mov dword [ebp - 0x30], ecx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, dword [ebp - 0x10]
call fcn.005b9192
or dword [esi + 0x24], 0x800
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x5e6051
mov ecx, dword [ebp - 0x10]
call fcn.005b935e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x3c], eax
add eax, dword [ebp - 0x28]
mov dword [ecx + 0x38], eax
imul eax, eax, 0xc
push 0
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call fcn.005a275a
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], ecx
test ecx, ecx
je 0x5e616a
imul eax, dword [ebp - 0x3c], 0xc
add ecx, eax
movzx eax, word [esi + 0x28]
cmp edi, eax
jge 0x5e616e
lea eax, [ecx + 8]
mov edx, edi
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, edi
shl eax, 2
sub edx, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edx
mov eax, dword [esi + 0x30]
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + eax]
mov esi, dword [ebp - 0xc]
cmp dword [eax], ebx
jne 0x5e614f
xor eax, eax
inc eax
cmp dword [ebp - 0x2c], eax
jne 0x5e60e4
push ecx
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
push 0x7b
pop edx
call fcn.005b9192
pop ecx
pop ecx
jmp 0x5e610c
cmp dword [ebp - 0x18], 0
je 0x5e60f7
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
add edx, 4
mov dword [ebp - 0x38], edx
jmp 0x5e60f9
xor eax, eax
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x30]
push 0x60
pop edx
call fcn.005b910e
add esp, 0xc
mov ecx, dword [ebp - 8]
push dword [ebp - 0x28]
push 0x4b
mov dword [ecx - 4], eax
mov ecx, dword [ebp - 0x10]
pop edx
call fcn.005b917e
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp eax, edi
jne 0x5e6143
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x30]
mov dword [edx - 8], eax
sete al
add al, 4
mov byte [edx], al
jmp 0x5e6146
mov byte [edx], 0xa6
add edx, 0xc
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x24], 4
inc ecx
movzx eax, word [esi + 0x28]
mov dword [ebp - 0x28], ecx
add ecx, edx
cmp ecx, eax
mov ecx, dword [ebp - 0x28]
jl 0x5e60b5
jmp 0x5e616e
and dword [eax + 0x38], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call fcn.005a2404
mov ebx, dword [ebp + 0x14]
jmp 0x5e618e
push dword [ebp + 0x14]
mov edx, dword [ebx + 0x10]
call fcn.005c97d4
mov ebx, eax
pop ecx
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
call fcn.005e5c70
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret