Function at 0x5791d9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x44]
xor ecx, ecx
mov dword [ebp - 0x14], eax
inc eax
mov dword [edi + 0x44], eax
mov dx, word [ebx + 2]
xor eax, eax
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 4], ecx
sete al
mov dword [ebp - 0x28], eax
mov eax, 0x800
mov esi, eax
and dx, si
cmp dx, ax
jne 0x579219
mov esi, dword [ebx + 0x10]
jmp 0x57921b
xor esi, esi
cmp dword [edi + 0x40], ecx
jne 0x579417
mov eax, esi
call fcn.005568eb
test eax, eax
je 0x579417
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
movsx eax, word [eax + 0x1c]
mov dword [ebp - 0xc], eax
call fcn.0056287c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 8]
mov ebx, dword [eax + 0x14]
mov esi, dword [ebx + 0x44]
mov dword [ebp - 0x10], ebx
call fcn.005577f7
mov esi, eax
mov eax, edi
mov dword [ebp - 0x20], esi
call fcn.005769ba
push dword [ebx]
mov ebx, dword [ebx + 0x14]
push 0
push esi
mov eax, edi
call fcn.0055df3f
add esp, 0xc
cmp dword [ebp - 0xc], 0
jge 0x5792e1
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
mov ecx, dword [ebp - 8]
push esi
push 0x1a
pop eax
call fcn.0055c33b
mov ecx, dword [ebp - 8]
push esi
push 1
mov ebx, eax
push 7
pop eax
call fcn.0055c34c
mov esi, dword [ebp - 0x10]
push 0x26
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
call fcn.00565c67
mov ecx, dword [ebp - 8]
add esp, 0x1c
mov eax, ebx
mov dword [ebp - 4], 1
call fcn.00555afc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebx + 8]
mov ecx, edi
call fcn.0056831a
mov esi, ebx
mov dword [ebp - 0x24], eax
call fcn.0055d154
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
imul ecx, ecx, 0x18
mov esi, dword [edx + 0xc]
mov dword [ebp - 0x30], ecx
cmp byte [ecx + esi + 0x16], al
je 0x57931a
cmp al, 0x62
je 0x57931a
and dword [ebp - 0x18], 0
jmp 0x579321
mov dword [ebp - 0x18], 1
mov esi, dword [edx + 0x10]
test esi, esi
je 0x579414
cmp dword [ebp - 4], 0
jne 0x5792d0
cmp dword [ebp - 0x18], 0
je 0x579414
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0xc]
cmp dword [eax], ecx
jne 0x579400
mov eax, dword [esi + 0x2c]
push 0
push dword [eax]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 0x4d]
push ecx
call fcn.00561b29
add esp, 0xc
cmp eax, dword [ebp - 0x24]
jne 0x579400
cmp dword [ebp - 0x28], 0
je 0x579386
cmp dword [esi + 4], 1
jne 0x579400
cmp byte [esi + 0x18], 0
je 0x579400
inc dword [edi + 0x48]
mov ebx, dword [edi + 0x48]
push esi
push edi
call fcn.00568fbb
mov ecx, dword [ebp - 8]
push ebx
mov dword [ebp - 4], eax
push 0x1a
pop eax
call fcn.0055c33b
mov ecx, dword [ebp - 8]
push ebx
push 1
mov dword [ebp - 0x2c], eax
push 7
pop eax
call fcn.0055c34c
push 0xfffffffffffffff0
push dword [ebp - 4]
push dword [ebp - 0x20]
push dword [esi + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 8]
push 0x26
pop eax
call fcn.00560b2c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add esp, 0x2c
mov dword [ebp - 4], 3
call fcn.00555afc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x579400
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x30]
cmp byte [edx + eax + 0x14], 0
jne 0x579400
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x57932c
cmp dword [ebp - 4], esi
jne 0x5792d0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
fld qword [edi + 0x1c0]
xor eax, eax
fstp qword [ebp - 0x34]
mov dword [ebp - 4], 2
cmp ecx, eax
je 0x57943a
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
jmp 0x57945d
fld1
fstp qword [edi + 0x1c0]
mov ecx, dword [ebx + 8]
cmp word [ecx + 0x1c], ax
jge 0x57945d
mov ecx, 0x800
test word [ebx + 2], cx
jne 0x57945d
mov dword [ebp - 4], 1
xor ecx, ecx
cmp dword [ebp - 4], 1
sete cl
push ecx
push eax
push ebx
mov eax, edi
call fcn.005683a7
fld qword [ebp - 0x34]
fstp qword [edi + 0x1c0]
add esp, 0xc
jmp 0x5792d9