Function at 0x5d733d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
push ebx
mov dword [ebp - 0x3c], ecx
setne byte [ebp - 1]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], ecx
mov byte [ebp - 2], cl
mov ecx, dword [eax]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov ecx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
call fcn.005ddf3f
test byte [edi + 0x24], 0x20
mov ebx, eax
movsx edx, word [edi + 0x2a]
mov dword [ebp - 0x44], edx
jne 0x5d738d
and dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 1
jmp 0x5d739e
mov ecx, edi
call fcn.005ce23e
mov dword [ebp - 0xc], eax
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x28], esi
test edx, edx
jle 0x5d74c9
xor edx, edx
mov dword [ebp - 0x24], edx
movsx eax, word [edi + 0x28]
cmp esi, eax
je 0x5d74b6
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x5d73cd
cmp dword [eax + esi*4], 0
jl 0x5d74b6
mov eax, dword [edi + 4]
movzx edi, byte [eax + edx + 0xc]
test edi, edi
je 0x5d74b3
mov cl, byte [ebp + 0x20]
push 2
cmp cl, 0xa
je 0x5d73ed
movzx edi, cl
pop ecx
jmp 0x5d73f4
cmp edi, 0xa
pop ecx
cmove edi, ecx
cmp edi, 5
jne 0x5d7401
cmp dword [eax + edx + 4], 0
cmove edi, ecx
mov eax, edi
dec eax
je 0x5d7460
dec eax
je 0x5d7458
dec eax
je 0x5d7460
dec eax
mov ecx, ebx
mov eax, dword [ebp + 0x14]
je 0x5d7445
inc eax
add esi, eax
push esi
push 0x4c
pop edx
call fcn.005b917e
pop ecx
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp - 0x24]
push esi
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [edx + eax + 4]
call fcn.005ca4a0
pop ecx
mov edx, edi
mov ecx, ebx
call fcn.005b9643
jmp 0x5d74ad
push dword [ebp + 0x24]
inc eax
add eax, esi
push eax
push 0x4b
pop edx
call fcn.005b9192
pop ecx
pop ecx
jmp 0x5d74b0
mov ecx, dword [ebp - 8]
call fcn.005d17a3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
push dword [eax + edx]
push dword [ecx]
push 0x4ac7a8
push dword [ebp - 0x20]
call fcn.005a39bd
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x28]
inc ecx
add eax, ecx
mov ecx, ebx
push eax
push edi
push 0x513
push 0x36
pop edx
call fcn.005b910e
add esp, 0x1c
mov edx, esi
mov ecx, ebx
push 0xfffffffffffffff9
call fcn.005b98c3
pop ecx
xor edx, edx
mov ecx, ebx
inc edx
call fcn.005b962b
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
inc esi
add edx, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
cmp esi, dword [ebp - 0x44]
jl 0x5d73b0
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x5d75b2
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x200
jne 0x5d75b2
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
cmp byte [ebp + 0x20], 0xa
push 2
mov dword [ecx + 0x38], eax
movzx eax, byte [ebp + 0x20]
pop esi
cmovne esi, eax
and dword [ebp - 0x34], 0
cmp dword [edx], 0
jle 0x5d75ab
lea eax, [edx + 0xc]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax - 4]
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x5d7530
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.005d72f0
pop ecx
test eax, eax
jne 0x5d7590
mov ecx, ebx
call fcn.005b935e
push 0x10
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
push dword [ebp - 8]
call fcn.005ca79b
add esp, 0x10
cmp esi, 4
jne 0x5d755c
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.005b91a7
jmp 0x5d7586
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
jne 0x5d7567
mov eax, dword [edi]
push 2
pop ecx
push 3
cmp esi, 5
mov edx, 0x113
push 0
cmove esi, ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.005d17b0
add esp, 0x10
mov edx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.005b93a0
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
cmp edx, dword [ecx]
jl 0x5d7514
mov eax, dword [ebp - 8]
and dword [eax + 0x38], 0
cmp byte [ebp + 0x1c], 0
je 0x5d7754
cmp dword [ebp - 0xc], 0
jne 0x5d7754
mov ecx, ebx
call fcn.005b935e
mov cl, byte [ebp + 0x20]
movzx esi, byte [edi + 0x30]
mov dword [ebp - 0x34], eax
cmp cl, 0xa
je 0x5d75e1
movzx esi, cl
jmp 0x5d75ea
push 2
cmp esi, 0xa
pop edx
cmove esi, edx
cmp byte [ebp - 1], 0
je 0x5d7613
push dword [ebp + 0x18]
mov ecx, ebx
push eax
push dword [ebp + 0x14]
push 0x4e
pop edx
call fcn.005b910e
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.005b962b
mov cl, byte [ebp + 0x20]
cmp esi, 5
jne 0x5d7645
cmp cl, 5
je 0x5d7645
mov eax, dword [edi + 8]
jmp 0x5d7632
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x5d7638
cmp cl, 3
je 0x5d7638
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x5d7622
jmp 0x5d7645
push 0xd
pop edx
mov ecx, ebx
call fcn.005b9170
mov dword [ebp - 0x38], eax
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push 0x20
pop edx
call fcn.005b910e
add esp, 0xc
test esi, esi
jle 0x5d771e
cmp esi, 3
jle 0x5d7723
cmp esi, 4
je 0x5d7712
cmp esi, 5
jne 0x5d771e
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov esi, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
test dword [eax + 0x18], 0x2000
je 0x5d76ab
push ecx
push ecx
push 0x6d
mov edx, edi
mov ecx, esi
call fcn.005e2c62
add esp, 0xc
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x5d76e0
xor ecx, ecx
push ecx
push ecx
mov edx, edi
mov ecx, esi
call fcn.005d5bca
pop ecx
pop ecx
test eax, eax
jne 0x5d76e0
cmp dword [edi + 8], eax
je 0x5d7709
mov ecx, esi
call fcn.005d1796
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
push dword [ebp + 0xc]
call fcn.005d2e9b
add esp, 0x10
jmp 0x5d7709
mov ecx, esi
call fcn.005d1796
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
mov edx, edi
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call fcn.005d2c0a
add esp, 0x24
mov dword [ebp - 0x3c], 1
jmp 0x5d772f
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.005b91a7
jmp 0x5d772f
push 2
pop eax
mov esi, eax
mov ecx, dword [ebp - 8]
mov edx, esi
push edi
call fcn.005d18df
pop ecx
mov edx, dword [ebp - 0x34]
mov ecx, ebx
call fcn.005b93a0
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x5d7754
push 0xd
pop edx
call fcn.005b9170
mov edx, esi
mov dword [ebp - 0x48], eax
mov ecx, ebx
call fcn.005b9643
mov esi, dword [edi + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x44], esi
test esi, esi
je 0x5d7ba1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0
je 0x5d7b8f
cmp byte [ebp - 2], 0
jne 0x5d7792
mov eax, dword [ebp + 0x14]
mov edx, edi
inc eax
mov ecx, ebx
push eax
call fcn.005d62ef
mov eax, dword [ebp - 0x10]
pop ecx
mov byte [ebp - 2], 1
add eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.005b935e
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x18], eax
je 0x5d77e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
mov ecx, ebx
push 0
push 0x3b
pop edx
call fcn.005b9192
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
add esp, 4
mov dword [ecx + 0x38], eax
push dword [ebp - 0x18]
mov edx, dword [esi + 0x24]
call fcn.005cac76
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x5d77e5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
xor edx, edx
inc eax
mov dword [ebp - 0x34], edx
cmp di, word [esi + 0x34]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
jae 0x5d7889
and dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
movsx edx, word [eax + edx*2]
mov dword [ebp - 0x40], edx
cmp edx, 0xfffffffe
jne 0x5d7840
push dword [ebp - 0x24]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x28]
mov eax, dword [ebp - 0x1c]
mov edx, dword [edx + eax + 8]
call fcn.005ca4e8
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x5d7873
cmp edx, 0xffffffff
je 0x5d7855
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x5d7855
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
jmp 0x5d7858
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x24]
xor edx, edx
mov ecx, ebx
cmp dword [ebp - 0x40], edx
push eax
setl dl
add edx, 0x41
call fcn.005b9192
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x1c], 0x18
inc edx
movzx eax, word [esi + 0x34]
inc dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
cmp edx, eax
jl 0x5d780c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movzx eax, word [esi + 0x34]
mov ecx, ebx
push eax
push dword [ebp - 0x28]
push 0x63
pop edx
call fcn.005b910e
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x5d78c9
cmp ecx, esi
jne 0x5d78c9
cmp byte [ebp + 0x1c], 0
jne 0x5d78c9
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.005b93a0
jmp 0x5d7b89
movzx eax, byte [esi + 0x36]
test eax, eax
je 0x5d78ba
mov dl, byte [ebp + 0x20]
cmp dl, 0xa
je 0x5d78de
movzx eax, dl
jmp 0x5d78e7
push 2
cmp eax, 0xa
pop edx
cmove eax, edx
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
jne 0x5d7943
cmp dword [esi + 0x14], 0
jne 0x5d7943
cmp ecx, esi
jne 0x5d7943
cmp eax, 5
jne 0x5d7943
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x2000
je 0x5d7925
mov ecx, dword [ebp - 8]
mov edx, edi
push 0
push 0
push 0x6d
call fcn.005e2c62
add esp, 0xc
test eax, eax
jne 0x5d7943
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x4000
je 0x5d78ba
cmp dword [edi + 0x10], 0
jne 0x5d7943
mov ecx, edi
call fcn.005d54c8
test eax, eax
je 0x5d78ba
movzx eax, word [esi + 0x32]
mov ecx, ebx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push 0x1c
pop edx
call fcn.005b930f
mov edx, dword [ebp - 0xc]
add esp, 0x10
cmp esi, edx
jne 0x5d796a
mov ecx, dword [ebp - 0x28]
jmp 0x5d797a
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.005cb45d
mov edx, dword [ebp - 0xc]
mov ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x24], ecx
jne 0x5d798f
mov eax, dword [ebp - 0x1c]
cmp eax, 5
jne 0x5d7ae6
test byte [edi + 0x24], 0x20
jne 0x5d79d8
push ecx
push dword [ebp - 0x2c]
mov edx, 0x81
mov ecx, ebx
call fcn.005b9192
cmp byte [ebp - 1], 0
pop ecx
pop ecx
je 0x5d7ae3
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push 0x4e
pop edx
call fcn.005b910e
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.005b962b
jmp 0x5d7ae3
cmp esi, edx
je 0x5d7a21
and dword [ebp - 0x40], 0
xor eax, eax
cmp ax, word [edx + 0x32]
jae 0x5d7a21
mov edi, dword [ebp - 0x40]
lea eax, [ecx + edi]
mov ecx, esi
push eax
mov eax, dword [edx + 4]
mov dx, word [eax + edi*2]
call fcn.005ce256
cwde
mov ecx, ebx
push eax
push dword [ebp - 0x2c]
push 0x60
pop edx
call fcn.005b910e
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
inc edi
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x5d79eb
mov edi, dword [ebp - 0x14]
cmp byte [ebp - 1], 0
je 0x5d7ae3
movzx edx, word [edx + 0x32]
mov ecx, ebx
call fcn.005b950e
mov ecx, dword [esi + 0x38]
add eax, edx
and cl, 3
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
cmp cl, 2
mov dword [ebp - 0x40], 0x4d
cmove eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x34], ecx
test edx, edx
jle 0x5d7ae3
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, edi
call fcn.005cec0d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ecx + 4]
movsx ecx, word [ecx + edx*2]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x5d7a9e
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], 0x4e
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffe
push eax
mov eax, dword [ebp - 0x50]
inc ecx
add eax, edx
mov edx, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x4c]
add eax, ecx
mov ecx, ebx
push esi
push eax
call fcn.005b9258
add esp, 0x14
mov edx, 0x90
mov ecx, ebx
call fcn.005b962b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x5d7a68
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x5d7b0e
cmp eax, 3
jle 0x5d7b00
cmp eax, 4
jne 0x5d7b0e
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.005b91a7
jmp 0x5d7b69
mov ecx, dword [ebp - 8]
mov edx, eax
push esi
call fcn.005d17ff
pop ecx
jmp 0x5d7b69
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.005d1796
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x2000
je 0x5d7b37
mov ecx, dword [ebp - 8]
push edx
push edx
push 0x6d
mov edx, edi
call fcn.005e2c62
add esp, 0xc
mov edx, eax
push dword [ebp - 0x2c]
cmp esi, dword [ebp - 0xc]
sete cl
movzx ecx, cl
push ecx
mov ecx, dword [ebp - 8]
push 5
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
mov edx, edi
call fcn.005d2c0a
add esp, 0x24
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.005b93a0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x5d7b89
push dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.005cb493
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14]
inc eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x5d776c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5d7bbc
lea edx, [eax + 1]
mov ecx, ebx
call fcn.005b91a7
mov edx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.005b9643
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret