Function at 0x5d6607
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
or dword [ebp - 0x34], 0xffffffff
push ebx
mov ebx, ecx
mov dword [ebp - 0x70], edx
xor edx, edx
mov dword [ebp - 0x58], ebx
push esi
push edi
mov esi, dword [ebx]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], edx
mov byte [ebp - 5], dl
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x44], esi
cmp dword [ebx + 0x24], edx
jne 0x5d727a
cmp byte [esi + 0x45], dl
jne 0x5d727a
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x5d6691
test dword [eax + 8], 0x200
je 0x5d6691
cmp dword [eax + 0x30], edx
jne 0x5d6691
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov ecx, esi
mov dword [eax], edx
mov edx, eax
call fcn.005dc436
and dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x10], 0
je 0x5d7280
mov ecx, ebx
call fcn.005d22ff
mov edi, eax
mov dword [ebp - 0x64], edi
test edi, edi
je 0x5d7280
mov edx, dword [edi + 0x48]
mov ecx, esi
call fcn.005dbc8a
mov ecx, eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x10]
add ecx, ecx
xor esi, esi
push dword [eax + ecx*8]
mov ecx, ebx
push esi
push dword [edi]
push 0x12
pop edx
call fcn.005cd74f
add esp, 0xc
test eax, eax
jne 0x5d7280
mov eax, dword [edi + 0x24]
mov edx, edi
shr eax, 5
mov ecx, ebx
and eax, 0xffffff01
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
push esi
push 0x6c
call fcn.005e2c62
mov dword [ebp - 0x68], eax
add esp, 0xc
xor eax, eax
mov edx, edi
cmp dword [edi + 0xc], esi
mov ecx, ebx
setne al
mov dword [ebp - 0x4c], eax
call fcn.005cf7c3
test eax, eax
jne 0x5d7280
push dword [ebp - 0x88]
mov edx, edi
mov ecx, ebx
call fcn.005d233c
pop ecx
test eax, eax
jne 0x5d7280
mov ecx, ebx
call fcn.005ddf3f
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x5d7280
cmp byte [ebx + 0x12], 0
jne 0x5d6762
mov ecx, esi
call fcn.005bc189
cmp dword [ebp - 0x24], 0
jne 0x5d6772
cmp dword [ebp - 0x68], 0
jne 0x5d6772
xor edx, edx
jmp 0x5d6775
xor edx, edx
inc edx
push dword [ebp - 0x38]
mov ecx, ebx
call fcn.005d1769
cmp dword [ebp + 0xc], 0
pop ecx
jne 0x5d67a3
push dword [ebp - 0x38]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call fcn.005d7f31
add esp, 0xc
test eax, eax
jne 0x5d721f
mov edx, dword [ebp - 0x38]
mov ecx, ebx
push edi
call fcn.005d642c
pop ecx
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ecx + 1]
mov edx, eax
mov dword [ebp - 0x5c], eax
movsx eax, word [edi + 0x2a]
inc eax
mov dword [ebp - 0xc], edx
add eax, ecx
mov dword [ebx + 0x2c], eax
cmp dword [edi + 0x38], 0
je 0x5d67da
lea edx, [ecx + 2]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebx + 0x2c], eax
mov ecx, dword [edi + 0x24]
lea eax, [edx + 1]
mov edx, dword [ebp + 0xc]
shr ecx, 7
not cl
mov dword [ebp - 0x74], eax
and ecx, 0xffffff01
mov dword [ebp - 0x28], ecx
test edx, edx
je 0x5d68e8
xor ecx, ecx
cmp dword [edx + 4], ecx
jle 0x5d6810
mov eax, dword [edx]
or dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
cmp ecx, dword [edx + 4]
jl 0x5d6803
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [eax + 4], edx
jle 0x5d68e8
movsx eax, word [edi + 0x2a]
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
test eax, eax
jle 0x5d68a4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [eax + edx*8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], eax
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.005a45fe
test eax, eax
je 0x5d686d
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
inc ecx
movsx edx, word [edi + 0x2a]
add eax, 0x10
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
cmp ecx, edx
jl 0x5d6842
mov edx, dword [ebp - 0x18]
jmp 0x5d68a4
mov edx, dword [ebp - 0x18]
xor esi, esi
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [ebp - 0x28]
movzx eax, cl
mov ecx, dword [ebp - 0x2c]
cmp edx, ecx
cmovne eax, esi
mov esi, dword [ebp - 0x34]
mov byte [ebp - 0x28], al
movsx eax, word [edi + 0x28]
cmp ecx, eax
mov dword [ebp - 0x34], esi
mov eax, esi
mov esi, dword [ebp - 0x14]
cmove eax, edx
mov dword [ebp - 0x34], eax
movsx eax, word [edi + 0x2a]
cmp ecx, eax
jl 0x5d68d8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx + edx*8]
call fcn.005c8201
test eax, eax
je 0x5d6a61
cmp byte [ebp - 0x8c], 0
jne 0x5d6a61
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [eax + 4]
jl 0x5d6821
cmp dword [ebp - 0x24], 0
je 0x5d6a88
inc dword [ebx + 0x2c]
mov ecx, esi
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x20], edx
call fcn.005b950e
inc eax
push eax
push 0
push edx
push 0xf
pop edx
mov dword [ebp - 0x50], eax
call fcn.005b910e
add esp, 0xc
lea ecx, [ebp - 0xa4]
push dword [ebp - 0x20]
push 0xd
pop edx
call fcn.005dc33f
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov edx, dword [ebp - 0x24]
add esp, 4
test cl, cl
mov ecx, ebx
cmovne eax, dword [ebp - 0x74]
mov dword [ebp - 0x9c], eax
movsx eax, word [edi + 0x2a]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.005e0d7b
pop ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x60], ecx
test eax, eax
jne 0x5d7280
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x45], 0
jne 0x5d7280
cmp dword [ebx + 0x24], 0
jne 0x5d7280
mov edx, dword [ebp - 0x20]
mov ecx, esi
call fcn.005b9341
mov edx, dword [ebp - 0x50]
mov ecx, esi
lea edx, [edx - 1]
call fcn.005b9643
cmp dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jne 0x5d69b9
mov edx, dword [ebp - 0x38]
mov ecx, ebx
push edi
call fcn.005d6396
pop ecx
test eax, eax
je 0x5d6ac6
mov edx, dword [ebx + 0x28]
mov ecx, ebx
mov byte [ebp - 5], 1
mov dword [ebp - 0x30], edx
lea eax, [edx + 1]
mov dword [ebx + 0x28], eax
call fcn.005cb3fb
mov edi, eax
call fcn.005cb3fb
push dword [ebp - 0x1c]
mov ecx, esi
mov ebx, eax
push edx
push 0x6c
pop edx
call fcn.005b9192
push dword [ebp - 0xa0]
mov ecx, esi
push 0x10
pop edx
call fcn.005b917e
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov esi, eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x60]
push 0x63
pop edx
call fcn.005b910e
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ebx
push dword [ebp - 0x30]
push 0x73
pop edx
call fcn.005b9192
mov ecx, dword [ebp - 0x14]
push ebx
push edi
push dword [ebp - 0x30]
push 0x74
pop edx
call fcn.005b910e
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov edx, esi
call fcn.005b91a7
mov edx, esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.005b9643
mov ecx, dword [ebp - 0x58]
mov edx, edi
call fcn.005cb41a
mov edx, ebx
mov ebx, ecx
call fcn.005cb41a
mov edi, dword [ebp - 0x64]
jmp 0x5d6ac6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
push dword [eax + ecx*8]
push 0
push dword [ebp - 0x70]
push 0x4acad4
push ebx
call fcn.005a4527
add esp, 0x14
mov byte [ebx + 0x11], 1
jmp 0x5d7280
push 0x20
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.005fab50
or dword [ebp - 0x30], 0xffffffff
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc4], ebx
test ecx, ecx
je 0x5d6acb
mov eax, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x1c], eax
call fcn.005c676d
test eax, eax
jne 0x5d7280
mov ecx, dword [ebp - 0x1c]
jmp 0x5d6ad0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5d6ae2
test ecx, ecx
jle 0x5d6ae2
movsx ecx, word [edi + 0x28]
mov dword [ebp - 0x34], ecx
movsx ecx, word [edi + 0x2a]
test ecx, ecx
jle 0x5d6b09
mov edx, dword [edi + 4]
mov esi, ecx
add edx, 0xf
movzx eax, byte [edx]
lea edx, [edx + 0x10]
shr eax, 1
and eax, 1
add dword [ebp - 0x48], eax
dec esi
jne 0x5d6af2
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
test eax, eax
jne 0x5d6b34
test edx, edx
je 0x5d6b50
sub ecx, dword [ebp - 0x48]
cmp edx, ecx
je 0x5d6b50
push edx
push ecx
push eax
push dword [ebp - 0x70]
push 0x4acaf4
push ebx
call fcn.005a4527
add esp, 0x18
jmp 0x5d7280
cmp edx, dword [eax + 4]
je 0x5d6b50
push dword [eax + 4]
push edx
push 0x4acb28
push ebx
call fcn.005a4527
add esp, 0x10
jmp 0x5d7280
mov eax, dword [ebp - 0x44]
test byte [eax + 0x18], 0x80
je 0x5d6b74
inc dword [ebx + 0x2c]
mov ecx, esi
mov eax, dword [ebx + 0x2c]
push eax
push 0
push 0x38
pop edx
mov dword [ebp - 0x84], eax
call fcn.005b9192
pop ecx
pop ecx
cmp dword [ebp - 0x4c], 0
jne 0x5d6be3
lea eax, [ebp - 0x80]
mov edx, edi
push eax
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x69
call fcn.005d7d5c
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
push 0
lea eax, [eax*4 + 4]
push eax
call fcn.005a2627
add esp, 0x20
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x5d7280
mov edx, dword [edi + 8]
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
jle 0x5d6be3
mov edi, dword [ebp - 0x20]
mov esi, eax
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esi + ecx*4], eax
movzx eax, word [edx + 0x34]
add dword [ebx + 0x2c], eax
inc ecx
mov edx, dword [edx + 0x14]
cmp ecx, edi
jl 0x5d6bc5
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x14]
cmp byte [ebp - 5], 0
je 0x5d6c03
push dword [ebp - 0x30]
mov ecx, esi
push 0x25
pop edx
call fcn.005b917e
pop ecx
mov ecx, esi
mov dword [ebp - 0x78], eax
call fcn.005b950e
jmp 0x5d6c1d
cmp dword [ebp - 0x24], 0
je 0x5d6c20
push dword [ebp - 0xa0]
mov ecx, esi
push 0x10
pop edx
call fcn.005b917e
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
mov ecx, esi
call fcn.005b935e
test byte [ebp - 0x88], 1
mov dword [ebp - 0x48], eax
je 0x5d6df5
movsx edx, word [edi + 0x2a]
mov ecx, ebx
inc edx
call fcn.005cb45d
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
push eax
test ecx, ecx
jns 0x5d6c5e
push 0xffffffffffffffff
push 0x38
pop edx
mov ecx, esi
call fcn.005b9192
pop ecx
pop ecx
jmp 0x5d6cc5
cmp byte [ebp - 5], 0
je 0x5d6c77
push ecx
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.005b910e
add esp, 0xc
jmp 0x5d6c89
mov eax, dword [ebp - 0x40]
imul edx, ecx, 0x18
mov ecx, ebx
mov edx, dword [edx + eax + 8]
call fcn.005ca4a0
pop ecx
push dword [ebp - 0x18]
mov ecx, esi
push 0x4c
pop edx
call fcn.005b917e
pop ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov esi, eax
push 0xffffffffffffffff
push 0x38
pop edx
call fcn.005b9192
mov edx, esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.005b9643
push dword [ebp - 0x18]
mov ecx, esi
push 0x11
pop edx
call fcn.005b917e
add esp, 0xc
xor edx, edx
xor eax, eax
mov dword [ebp - 0x28], edx
cmp ax, word [edi + 0x2a]
jge 0x5d6daa
mov eax, dword [ebp - 0x18]
or dword [ebp - 0x38], 0xffffffff
and dword [ebp - 0x20], edx
sub dword [ebp - 0x38], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5d6d29
xor edx, edx
mov dword [ebp - 0x28], edx
cmp dword [eax + 4], edx
jle 0x5d6d29
mov ebx, dword [ebp - 0x2c]
mov esi, eax
mov edi, dword [ebp - 0x38]
mov ecx, dword [esi]
add ecx, 4
lea eax, [edi + ebx]
cmp dword [ecx], eax
je 0x5d6d17
inc edx
add ecx, 8
cmp edx, dword [esi + 4]
jl 0x5d6d07
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
cmp byte [ebp - 5], 0
jne 0x5d6d35
cmp dword [ebp - 0x40], 0
je 0x5d6d3e
test eax, eax
je 0x5d6d52
cmp edx, dword [eax + 4]
jl 0x5d6d52
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, ebx
mov edx, dword [edx + eax + 4]
call fcn.005ca4a0
jmp 0x5d6d7d
cmp byte [ebp - 5], 0
push ecx
je 0x5d6d6c
push edx
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.005b910e
add esp, 0xc
jmp 0x5d6d7e
mov eax, dword [ebp - 0x40]
mov ecx, ebx
imul edx, edx, 0x18
mov edx, dword [edx + eax + 8]
call fcn.005ca559
pop ecx
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp - 0x28]
jne 0x5d6d8b
inc edx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], 0x10
inc eax
mov ecx, dword [ebp - 0x38]
add ecx, eax
mov dword [ebp - 0x2c], eax
movsx eax, word [edi + 0x2a]
cmp ecx, eax
mov ecx, dword [ebp - 0x2c]
jl 0x5d6ce9
cmp dword [ebp - 0x4c], 0
jne 0x5d6dbf
mov eax, dword [ebp - 0x18]
mov edx, edi
inc eax
mov ecx, esi
push eax
call fcn.005d62ef
pop ecx
push dword [ebp - 0x48]
movsx eax, word [edi + 0x2a]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x68]
sub ecx, eax
dec ecx
push ecx
push edi
push 1
push 0
push 0x6c
mov ecx, ebx
call fcn.005e3133
movsx eax, word [edi + 0x2a]
add esp, 0x1c
mov edx, dword [ebp - 0x18]
inc eax
mov ecx, ebx
push eax
call fcn.005cb493
pop ecx
cmp dword [ebp - 0x4c], 0
jne 0x5d7183
cmp dword [edi + 0x38], 0
je 0x5d6e16
push dword [ebp - 0x5c]
mov ecx, esi
push 0
push 0x3b
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov eax, dword [ebp - 0x34]
test eax, eax
js 0x5d6f14
cmp byte [ebp - 5], 0
je 0x5d6e80
mov ecx, dword [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.005b910e
add esp, 0xc
cmp dword [edi + 0x38], 0
jne 0x5d6eed
push dword [ebp - 0xc]
mov ecx, esi
push 0x4c
pop edx
call fcn.005b917e
pop ecx
mov ecx, dword [ebp - 0x3c]
mov esi, eax
push ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x14]
push 0x73
pop edx
call fcn.005b910e
add esp, 0xc
mov edx, esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.005b9643
jmp 0x5d6f05
cmp dword [ebp - 0x24], 0
je 0x5d6e9c
mov ecx, dword [ebp - 0xc]
add eax, dword [ebp - 0x60]
push ecx
push eax
push 0x40
pop edx
mov ecx, esi
call fcn.005b9192
pop ecx
pop ecx
jmp 0x5d6e3c
push dword [ebp - 0xc]
imul edx, eax, 0x18
mov ecx, ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [edx + eax + 8]
call fcn.005ca4a0
pop ecx
or edx, 0xffffffff
mov ecx, esi
call fcn.005b9912
test eax, eax
je 0x5d6e3c
cmp byte [eax], 0x3b
jne 0x5d6e3c
cmp dword [edi + 0x38], 0
jne 0x5d6eed
mov ecx, dword [ebp - 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 0xd], 1
mov byte [eax], 0x73
mov dword [eax + 0xc], ecx
jmp 0x5d6f52
mov ecx, esi
call fcn.005b950e
add eax, 2
push eax
push dword [ebp - 0xc]
push 0x4b
pop edx
call fcn.005b9192
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, esi
push 0x11
pop edx
call fcn.005b917e
jmp 0x5d6f51
cmp dword [edi + 0x38], 0
jne 0x5d6f41
cmp byte [ebp - 0x8c], 0
jne 0x5d6f41
mov ecx, dword [ebp - 0x3c]
push ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x54]
push ecx
push 0x73
pop edx
mov ecx, esi
call fcn.005b910e
add esp, 0xc
mov byte [ebp - 0xd], 1
jmp 0x5d6f52
push dword [ebp - 0xc]
mov ecx, esi
push 0
push 0x3b
pop edx
call fcn.005b9192
pop ecx
pop ecx
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov ecx, ebx
call fcn.005d6543
xor edx, edx
xor eax, eax
pop ecx
mov ecx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0xc], ecx
cmp ax, word [edi + 0x2a]
jge 0x5d6fdb
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x74]
movsx eax, word [edi + 0x28]
add edx, ecx
mov dword [ebp - 0x50], edx
cmp ecx, eax
jne 0x5d6f92
push edx
push 0x3c
pop edx
mov ecx, esi
call fcn.005b917e
jmp 0x5d6fc5
cmp dword [ebp + 0xc], 0
jne 0x5d7040
mov ebx, dword [ebp - 0x3c]
mov eax, dword [edi + 4]
test byte [eax + ebx + 0xf], 2
mov ebx, dword [ebp - 0x58]
je 0x5d7039
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
mov ecx, ebx
push edx
mov edx, dword [edi + 4]
mov edx, dword [edx + eax + 4]
call fcn.005ca51e
pop ecx
mov ecx, dword [ebp - 0xc]
movsx eax, word [edi + 0x2a]
inc ecx
add dword [ebp - 0x3c], 0x10
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jl 0x5d6f75
xor edx, edx
cmp dword [edi + 0x38], edx
je 0x5d70f9
mov ecx, dword [ebp - 0x44]
mov edx, edi
call fcn.005e487f
mov ecx, ebx
mov esi, eax
call fcn.005e5608
movsx eax, word [edi + 0x2a]
push 0xfffffffffffffff4
push esi
push dword [ebp - 0x5c]
mov esi, dword [ebp - 0x14]
add eax, 2
push eax
push 1
push 0xc
pop edx
mov ecx, esi
call fcn.005b9258
mov eax, dword [ebp + 0x10]
add esp, 0x14
movzx edx, ax
cmp eax, 0xa
mov ecx, esi
push 2
pop eax
cmove edx, eax
call fcn.005b962b
mov ecx, ebx
call fcn.005d17a3
jmp 0x5d7183
mov eax, ecx
sub eax, dword [ebp - 0x4c]
jmp 0x5d7071
mov edi, dword [ebp + 0xc]
xor eax, eax
cmp dword [edi + 4], eax
mov edi, dword [ebp - 0x64]
jle 0x5d7079
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, 4
cmp dword [ecx], edx
je 0x5d7068
inc eax
add ecx, 8
cmp eax, dword [ebx + 4]
jl 0x5d705b
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x50]
test eax, eax
js 0x5d6fb3
cmp dword [ebp - 0x1c], 0
je 0x5d6fb3
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp - 0x64]
je 0x5d709b
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
mov esi, dword [ebp - 0x14]
jge 0x5d6fb3
cmp byte [ebp - 5], 0
je 0x5d70b8
push edx
push eax
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.005b910e
add esp, 0xc
jmp 0x5d6fc6
cmp dword [ebp - 0x24], 0
je 0x5d70e2
mov ebx, dword [ebp - 0x60]
cmp ebx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x58]
je 0x5d6fc9
add eax, dword [ebp - 0x60]
mov ecx, esi
push edx
push eax
push 0x41
pop edx
call fcn.005b9192
pop ecx
jmp 0x5d6fc5
push edx
imul edx, eax, 0x18
mov ecx, ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [edx + eax + 8]
call fcn.005ca4a0
jmp 0x5d6fc5
cmp dword [ebp - 0x34], 0
lea eax, [ebp - 0x50]
push edx
push eax
push dword [ebp - 0x48]
setge al
mov ecx, ebx
push dword [ebp + 0x10]
movzx eax, al
push eax
push edx
push dword [ebp - 0x5c]
mov edx, edi
push dword [ebp - 0x80]
push dword [ebp - 0x54]
push dword [ebp - 0x6c]
call fcn.005d733d
xor eax, eax
mov edx, edi
push eax
push eax
push dword [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.005d5732
add esp, 0x38
cmp dword [ebp - 0x50], 0
je 0x5d7160
cmp dword [ebp - 0x68], 0
jne 0x5d715c
mov eax, dword [ebp - 0x44]
test dword [eax + 0x18], 0x4000
je 0x5d7160
mov ecx, edi
call fcn.005d54c8
test eax, eax
je 0x5d7160
xor eax, eax
jmp 0x5d7163
xor eax, eax
inc eax
push eax
movzx eax, byte [ebp - 0xd]
mov edx, edi
push eax
push 0
push dword [ebp - 0x6c]
mov ecx, ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x80]
push dword [ebp - 0x54]
call fcn.005d7bcb
add esp, 0x1c
mov eax, dword [ebp - 0x44]
test byte [eax + 0x18], 0x80
je 0x5d71a0
push 1
push dword [ebp - 0x84]
mov ecx, esi
push 0x45
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x5d71cc
push dword [ebp - 0x48]
movsx eax, word [edi + 0x2a]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x74]
push 2
sub ecx, eax
pop eax
sub ecx, eax
push ecx
push edi
push eax
push 0
push 0x6c
mov ecx, ebx
call fcn.005e3133
add esp, 0x1c
mov edx, dword [ebp - 0x48]
mov ecx, esi
call fcn.005b93a0
cmp byte [ebp - 5], 0
je 0x5d7205
push dword [ebp - 0x7c]
mov edi, dword [ebp - 0x30]
push edi
push 7
pop edx
call fcn.005b9192
mov edx, dword [ebp - 0x78]
mov ecx, esi
call fcn.005b9643
push edi
push 0x70
pop edx
mov ecx, esi
call fcn.005b917e
add esp, 0xc
jmp 0x5d721f
cmp dword [ebp - 0x24], 0
je 0x5d721f
mov edx, dword [ebp - 0x7c]
mov ecx, esi
call fcn.005b91a7
mov edx, dword [ebp - 0x78]
mov ecx, esi
call fcn.005b9643
cmp byte [ebx + 0x12], 0
jne 0x5d7232
cmp dword [ebx + 0x7c], 0
jne 0x5d7232
mov ecx, ebx
call fcn.005d65f9
mov eax, dword [ebp - 0x44]
test byte [eax + 0x18], 0x80
je 0x5d7280
cmp byte [ebx + 0x12], 0
jne 0x5d7280
cmp dword [ebx + 0x7c], 0
jne 0x5d7280
push 1
push dword [ebp - 0x84]
mov ecx, esi
push 0x43
pop edx
call fcn.005b9192
xor edx, edx
mov ecx, esi
inc edx
call fcn.005ba444
push 0
push 0x4acb44
push 0
xor edx, edx
mov ecx, esi
call fcn.005ba4ac
add esp, 0x14
jmp 0x5d7280
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x44]
mov ecx, ebx
mov edx, dword [ebp - 0x70]
call fcn.005d1345
mov edx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.005c7f14
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.005dc436
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.005d10ed
mov edx, dword [ebp - 0x6c]
mov ecx, ebx
call fcn.005a2404
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret