Function at 0x5e65c4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
xor eax, eax
mov dword [ebp - 0x38], ecx
push ebx
mov dword [ebp - 0x80], eax
lea ebx, [ecx + 0x2f0]
mov dword [ebp - 0x5c], eax
lea eax, [ecx + 0x50]
push esi
mov dword [ebp - 0x6c], eax
push edi
mov edi, dword [ecx]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x78], edi
mov eax, dword [edi]
mov dword [ebp - 0x64], eax
mov esi, dword [edi + 8]
imul eax, edx, 0x50
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], esi
add ebx, eax
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebx + 0x2c]
imul ecx, eax, 0x50
mov eax, dword [edx + 4]
add eax, 8
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x30]
mov edx, eax
mov dword [ebp - 0x28], eax
call fcn.005e93b0
mov ecx, dword [ebp - 0x38]
not eax
and eax, dword [ebp + 8]
not edx
and edx, dword [ebp + 0xc]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp - 0x4c]
call fcn.00614b50
mov ecx, dword [ebp - 0x2c]
xor edx, edx
inc edx
and eax, edx
mov dword [ebp - 0x30], eax
test byte [ecx + 0x24], 0x40
je 0x5e6672
mov eax, dword [ebp - 0x38]
push 0x20
pop ecx
test byte [eax + 0x2c], cl
jne 0x5e6672
mov dword [ebp - 4], edx
jmp 0x5e6676
and dword [ebp - 4], 0
mov ecx, esi
call fcn.005b935e
mov ecx, esi
mov dword [ebp - 0x58], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
call fcn.005b935e
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x7c], eax
mov dword [ebx + 0x18], eax
jbe 0x5e66ba
mov ecx, dword [ebp - 0x10]
test byte [ecx + 0x24], 8
je 0x5e66ba
mov eax, dword [edi + 0x2c]
mov ecx, esi
inc eax
push eax
push 0
push 0x38
mov dword [edi + 0x2c], eax
pop edx
mov dword [ebx], eax
call fcn.005b9192
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
test ecx, ecx
jle 0x5e66d5
mov edx, ebx
xor ecx, ecx
cmp dword [edx], ecx
jne 0x5e66d7
dec eax
sub edx, 0x50
test eax, eax
jg 0x5e66c7
jmp 0x5e66d7
xor ecx, ecx
mov edx, dword [ebp - 0x38]
imul eax, eax, 0x50
mov eax, dword [eax + edx + 0x2fc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x70], edx
test dl, 0x10
je 0x5e6726
push dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
push 0xf
pop edx
call fcn.005b910e
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push dword [ebp - 0x58]
push esi
push 0x10
pop edx
call fcn.005b9192
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x2d], 0xd
jmp 0x5e771d
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x24]
test edx, 0x400
je 0x5e692c
movzx eax, word [eax + 0x28]
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.005c949e
lea edx, [eax + 2]
call fcn.005cb45d
mov ecx, eax
xor esi, esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 0x20], esi
jle 0x5e67b0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x5e67aa
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x5e6792
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
push eax
push dword [ebp - 0x30]
push esi
push ebx
call fcn.005e5d87
mov eax, dword [ebx + 0x10]
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x5e67a7
mov edx, dword [edx]
push eax
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
mov edx, dword [edx + 0x10]
push eax
call fcn.005e6475
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x5e6760
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, esi
push dword [eax + 0x18]
push 0x38
pop edx
call fcn.005b9192
mov eax, dword [ebp - 8]
mov ecx, esi
inc eax
push eax
push dword [ebp - 0x20]
push 0x38
pop edx
call fcn.005b9192
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
push 0xfffffffffffffff9
pop edx
cmp byte [ecx + 0x1c], 0
cmovne eax, edx
push eax
push dword [ecx + 0x20]
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x28]
push 0xb
pop edx
call fcn.005b9258
mov edx, dword [ebp - 0x2c]
add esp, 0x24
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
mov byte [edx + 0x1c], 0
mov dword [ebx + 0x30], eax
cmp byte [ecx + 0x31], 0
push 0x32
pop eax
lea ecx, [eax + 0x74]
cmovne eax, ecx
mov ecx, esi
mov byte [ebx + 0x2d], al
call fcn.005b950e
mov ecx, dword [ebp - 0x20]
dec ecx
mov dword [ebx + 0x34], eax
mov dword [ebp - 0x18], ecx
js 0x5e6920
imul eax, dword [ebx + 0x38], 0xc
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x30]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xc], edx
cmp ecx, 0x10
jge 0x5e686c
mov eax, dword [ebp - 0x2c]
mov ax, word [eax + 0x1e]
shr ax, cl
xor ecx, ecx
inc ecx
test cl, al
je 0x5e6869
mov ecx, ebx
call fcn.005e5c70
jmp 0x5e6910
mov ecx, dword [ebp - 0x18]
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x5e6913
mov eax, dword [ebp - 0x64]
cmp byte [eax + 0x45], 0
jne 0x5e68ac
mov eax, dword [ebp - 4]
mov ecx, esi
mov edx, dword [ebx + 0x3c]
sub eax, 0xc
mov dword [ebp - 4], eax
mov edx, dword [edx + eax + 4]
call fcn.005b9912
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.005b910e
add esp, 0xc
xor eax, eax
mov ecx, edi
push eax
push eax
push 0x4e
pop edx
call fcn.005c7154
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5e690d
mov ecx, dword [ebp - 0xc]
mov edx, 0x9d
push 0
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x64]
call fcn.005c70c9
mov dword [esi + 0x10], eax
pop ecx
test eax, eax
je 0x5e68ff
mov ecx, dword [ebp - 0x18]
add ecx, 2
add ecx, dword [ebp - 8]
push 0
mov dword [eax + 0x1c], ecx
push dword [ebx + 0x18]
push esi
push edi
call fcn.005ca9f2
add esp, 0x10
mov ecx, dword [ebp - 0x64]
mov edx, esi
and dword [esi + 0xc], 0
call fcn.005c74e2
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
dec ecx
mov dword [ebp - 0x18], ecx
jns 0x5e683e
mov ecx, edi
call fcn.005c94a2
jmp 0x5e771f
mov eax, edx
and eax, 0x100
je 0x5e69a9
test dl, 5
je 0x5e69a9
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
push ecx
push ebx
mov ecx, edi
call fcn.005e5d87
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, edx
je 0x5e696f
mov ecx, edi
call fcn.005cb41a
mov eax, dword [ebp - 4]
push eax
push dword [ebx + 0x10]
mov ecx, esi
push dword [ebp - 0x28]
push 0x1f
pop edx
call fcn.005b910e
mov esi, dword [ebp - 4]
add esp, 0xc
xor eax, eax
mov edx, esi
inc eax
mov ecx, edi
push eax
call fcn.005c96ff
mov edx, dword [ebp - 0x28]
pop ecx
push esi
push 0xffffffffffffffff
mov ecx, edi
call fcn.005c93d8
add esp, 8
jmp 0x5e76e9
test eax, eax
je 0x5e6bbd
test dl, 2
je 0x5e6bbd
push 0x20
pop eax
mov dword [ebp - 0x20], 0xa6
mov esi, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
test al, dl
je 0x5e69e2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
xor eax, eax
lea ecx, [eax + 1]
jmp 0x5e69e5
mov ecx, dword [ebp - 4]
test dl, 0x10
je 0x5e69f8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x18], ecx
jmp 0x5e69fb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x5e6a07
mov dword [ebp - 0x18], esi
mov esi, ecx
test esi, esi
je 0x5e6ab5
mov edx, dword [esi]
mov dword [ebp - 8], 0x1a18191b
mov dword [ebp - 4], edx
mov ecx, dword [edx + 0x10]
call fcn.005c6c26
mov ecx, edi
test eax, eax
je 0x5e6a5a
call fcn.005cb3fb
mov edx, dword [edx + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], eax
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x3c], eax
call fcn.005e6475
mov edx, dword [ebp - 4]
xor eax, eax
pop ecx
pop ecx
inc eax
movzx ecx, byte [edx]
sub ecx, 0x4f
or ecx, eax
movzx edx, byte [ebp + ecx - 8]
jmp 0x5e6a84
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x4c]
push eax
call fcn.005ca42e
pop ecx
mov edx, esi
mov dword [ebp - 0x3c], eax
mov ecx, ebx
call fcn.005e5c70
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
movzx ecx, byte [edx]
movzx edx, byte [ebp + ecx - 0x57]
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x58]
push dword [ebp - 0x28]
call fcn.005b910e
mov edx, dword [ebp - 0x3c]
add esp, 0xc
xor eax, eax
mov ecx, edi
inc eax
push eax
call fcn.005c96ff
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, edi
call fcn.005cb41a
jmp 0x5e6ad2
push dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
test eax, eax
push dword [ebp - 0x28]
push 0x25
pop edx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, esi
call fcn.005b9192
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e6b4e
mov eax, dword [eax]
xor edx, edx
inc dword [edi + 0x2c]
inc edx
mov ecx, dword [edi + 0x2c]
push edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
push ecx
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.005e6475
mov edx, dword [ebp - 4]
pop ecx
pop ecx
mov eax, dword [edx + 0x10]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.005c6c26
test eax, eax
jne 0x5e6b28
mov al, byte [edx]
cmp al, 0x51
je 0x5e6b16
cmp al, 0x4f
jne 0x5e6b28
cmp dword [ebp - 0x30], 0
push 0x52
pop edx
push 0x50
pop eax
cmovne edx, eax
mov dword [ebp - 0x20], edx
jmp 0x5e6b38
cmp dword [ebp - 0x30], 0
push 0x4f
pop eax
push 0x51
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
call fcn.005c6c26
test eax, eax
jne 0x5e6b4e
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.005e5c70
mov ecx, esi
call fcn.005b950e
cmp dword [ebp - 0x30], 0
mov dword [ebx + 0x34], eax
sete cl
add cl, 6
cmp dword [ebp - 0x20], 0xa6
mov byte [ebx + 0x2d], cl
mov ecx, dword [ebp - 0x28]
mov dword [ebx + 0x30], ecx
je 0x5e771f
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
push esi
push ecx
mov ecx, dword [ebp - 0x1c]
push 0x7b
pop edx
call fcn.005b9192
mov edx, dword [ebp - 0x28]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.005c93d8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x10]
call fcn.005b910e
mov ecx, dword [ebp - 0x1c]
add esp, 0x1c
push 0x53
pop edx
call fcn.005b962b
jmp 0x5e771f
test edx, 0x200
je 0x5e71bc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x24], ecx
movzx esi, word [eax + 0x18]
mov dword [ebp - 8], esi
movzx esi, word [eax + 0x1a]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x58], ecx
mov byte [ebp - 0x11], cl
mov byte [ebp - 0x5d], cl
mov ecx, dword [eax + 0x20]
movzx esi, si
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], esi
movzx esi, word [eax + 0x1c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x4c], esi
movzx esi, si
mov dword [ebp - 0x54], esi
test byte [ecx + 0x2c], 1
mov esi, dword [ebp - 0x1c]
je 0x5e6c39
cmp byte [ecx + 0x2f], 0
mov ecx, dword [ebp - 8]
jle 0x5e6c3c
mov esi, dword [ebp - 0x5c]
cmp word [esi + 0x32], cx
mov esi, dword [ebp - 0x1c]
jbe 0x5e6c3c
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x24], 1
jmp 0x5e6c3c
mov ecx, dword [ebp - 8]
movzx ecx, cx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], ecx
test dl, 0x20
je 0x5e6c75
mov eax, dword [eax + 0x30]
mov edi, ecx
mov eax, dword [eax + edi*4]
inc edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
movzx eax, ax
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x24]
cmp edi, eax
cmovle edi, eax
mov eax, edi
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
test dl, 0x10
je 0x5e6d1e
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
movzx eax, ax
cmp edx, eax
cmovle edx, eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], edx
mov edx, 0x100
test word [eax + 0xa], dx
je 0x5e6ceb
mov eax, dword [edi + 0x2c]
mov ecx, esi
inc eax
push eax
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x24], eax
xor eax, eax
inc eax
push eax
push 0x38
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov ecx, esi
call fcn.005b950e
shl dword [ebx + 0x24], 1
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
sete cl
xor ecx, dword [ebp - 0x30]
or dword [ebx + 0x24], ecx
mov ecx, edx
cmp dword [ebp - 0x48], 0
jne 0x5e6d1e
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
test edx, edx
js 0x5e6d13
mov eax, dword [ebp - 0x5c]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
je 0x5e6d18
cmp edx, 0xfffffffe
jne 0x5e6d1e
xor eax, eax
inc eax
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 8]
movzx eax, word [edx + 0x32]
mov dword [ebp - 0xc], eax
cmp cx, ax
jae 0x5e6d4d
mov eax, dword [edx + 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x34]
cmp byte [edx + eax], cl
mov edx, dword [ebp - 0x30]
sete cl
cmp edx, ecx
je 0x5e6d59
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
jmp 0x5e6d50
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x5e6d84
cmp ax, cx
jne 0x5e6d84
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x5d], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], ecx
movzx ecx, si
mov esi, dword [ebp - 0x1c]
movzx eax, al
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
push dword [ebp - 0x24]
push edx
mov edx, ebx
call fcn.005e61a2
mov ecx, dword [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5e6dba
cmp word [ebp - 0x54], 0
je 0x5e6dba
mov edx, dword [ebp - 0x34]
lea edx, [edx + ecx]
mov ecx, dword [ebp - 0x64]
call fcn.005a2789
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5e6dd4
test byte [eax + 0xc], 0x28
jne 0x5e6dd4
xor ecx, ecx
mov dword [ebp - 0x44], ecx
jmp 0x5e6ddc
xor ecx, ecx
inc ecx
mov dword [ebp - 0x44], ecx
xor ecx, ecx
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x5e6df1
test byte [edx + 0xc], 0x28
jne 0x5e6df1
xor edx, edx
mov dword [ebp - 0x10], ecx
inc edx
jmp 0x5e6df7
xor edx, edx
inc edx
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x5e6e04
mov dword [ebp - 0xc], ecx
cmp word [ebp - 8], ax
jbe 0x5e6e07
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
test eax, eax
je 0x5e6eab
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
add edx, dword [ebp - 0x18]
movzx ecx, cx
mov eax, dword [eax + 0x10]
push ecx
mov dword [ebp - 0x74], edx
mov ecx, edi
push edx
mov edx, eax
mov dword [ebp - 8], eax
call fcn.005e6475
push dword [ebp - 0x48]
mov esi, dword [ebp - 0x1c]
mov edx, ebx
mov ecx, esi
call fcn.005e6393
mov ecx, dword [ebp - 8]
add esp, 0xc
call fcn.005c813b
test eax, eax
je 0x5e6e64
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x74]
push 0x4b
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x5e6e80
mov eax, dword [ebp - 0x34]
add eax, ecx
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
movzx edx, ax
call fcn.005e5d33
pop ecx
mov ecx, dword [ebp - 0x20]
movzx eax, cx
mov ecx, dword [ebp - 8]
add dword [ebp - 0x24], eax
call fcn.005c6c26
test eax, eax
jne 0x5e6ea1
mov edx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.005e5c70
jmp 0x5e6ea7
xor eax, eax
inc eax
mov dword [ebp - 0x44], eax
xor al, al
jmp 0x5e6ed5
mov al, byte [ebp - 0x11]
test al, al
je 0x5e6ed5
mov eax, dword [ebp - 0x18]
add eax, edx
push eax
push ecx
push 0x3b
pop edx
mov ecx, esi
call fcn.005b9192
inc dword [ebp - 0x24]
xor eax, eax
and dword [ebp - 0x44], 0
inc eax
pop ecx
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x11]
pop ecx
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x68]
mov edx, dword [ebp - 0x18]
movzx eax, al
sub ecx, eax
push ecx
mov ecx, edi
call fcn.005e5cd8
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
movzx eax, word [eax + 0x2a]
test ax, ax
je 0x5e6efe
cmp dword [ebp - 0x24], eax
je 0x5e6f28
mov ecx, dword [ebp - 0x44]
push dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x4c]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x40]
movzx edx, byte [ecx + eax*2 + 0x4a68f8]
mov ecx, esi
call fcn.005b930f
add esp, 0x10
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x5e6fe9
mov eax, dword [eax]
xor ecx, ecx
inc ecx
push ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.005c9460
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
pop ecx
movzx eax, ax
mov ecx, edi
push eax
push dword [ebp - 0xc]
call fcn.005e6475
push dword [ebp - 0x50]
mov edx, ebx
mov ecx, esi
call fcn.005e6393
mov ecx, dword [ebp - 0x44]
add esp, 0xc
call fcn.005c813b
test eax, eax
je 0x5e6f93
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0xc]
push 0x4b
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x5e6fc0
mov ecx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x54]
movzx edx, ax
call fcn.005e5d33
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 0x54]
push dword [ebp - 0x58]
movzx eax, cx
mov ecx, edi
push eax
call fcn.005e5cd8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
movzx eax, cx
mov ecx, dword [ebp - 0x44]
add dword [ebp - 0x34], eax
call fcn.005c6c26
test eax, eax
jne 0x5e6fe1
mov edx, dword [ebp - 0x50]
mov ecx, ebx
call fcn.005e5c70
jmp 0x5e700b
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
jmp 0x5e700b
cmp byte [ebp - 0x5d], 0
je 0x5e700b
mov eax, dword [ebp - 0x34]
mov ecx, esi
add eax, dword [ebp - 0x18]
push eax
push 0
push 0x3b
pop edx
call fcn.005b9192
and dword [ebp - 0x10], 0
inc dword [ebp - 0x34]
pop ecx
pop ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
call fcn.005a2404
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x64]
call fcn.005a2404
mov ecx, esi
call fcn.005b950e
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5e7054
mov ecx, dword [ebp - 0x30]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
movzx edx, byte [eax + ecx*2 + 0x4a8f0c]
mov ecx, esi
call fcn.005b930f
add esp, 0x10
cmp dword [ebp - 4], 0
jne 0x5e715e
mov edx, dword [ebp - 0x5c]
push 0x20
pop eax
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], al
jne 0x5e70dc
mov ecx, dword [ebp - 0x38]
mov esi, 0x400
movzx eax, word [ecx + 0x2c]
test esi, eax
jne 0x5e709d
test eax, 0x1000
je 0x5e708b
xor eax, eax
inc eax
cmp byte [ecx + 0x31], al
je 0x5e709d
push dword [ebp - 0x40]
push dword [ebp - 0x28]
call fcn.005e63c7
pop ecx
pop ecx
jmp 0x5e715e
inc dword [edi + 0x2c]
mov edx, 0x81
mov esi, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x40]
call fcn.005b9192
mov edx, dword [ebp - 0x28]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.005c93d8
mov ecx, dword [ebp - 0x1c]
push esi
push 0
push dword [ebp - 0x28]
push 0x20
pop eax
mov edx, eax
call fcn.005b910e
add esp, 0x1c
jmp 0x5e715e
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x40]
je 0x5e715e
call fcn.005ce23e
mov ecx, edi
mov dword [ebp - 0xc], eax
movzx edx, word [eax + 0x32]
call fcn.005cb45d
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dx, word [eax + 0x32]
jae 0x5e7145
mov ebx, eax
xor edi, edi
lea eax, [edi + ecx]
mov ecx, dword [ebp - 0x5c]
push eax
mov eax, dword [ebx + 4]
mov dx, word [eax + edi*2]
call fcn.005ce256
cwde
mov ecx, esi
push eax
push dword [ebp - 0x40]
push 0x60
pop edx
call fcn.005b910e
movzx eax, word [ebx + 0x32]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
inc edi
cmp edi, eax
jl 0x5e710b
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x32]
push eax
push ecx
push dword [ebp - 0x7c]
mov ecx, esi
push dword [ebp - 0x28]
push 0x1d
pop edx
call fcn.005b930f
add esp, 0x10
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x5c]
call fcn.005e6531
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
test dword [ecx + 0x24], 0x1000
je 0x5e7183
mov byte [ebx + 0x2d], 0xa6
jmp 0x5e718f
cmp dword [ebp - 0x30], 0
sete al
add al, 6
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x40]
xor edx, edx
mov dword [ebx + 0x30], eax
inc edx
mov al, byte [ecx + 0x26]
and al, dl
mov byte [ebx + 0x2e], al
test byte [ecx + 0x24], 0xf
jne 0x5e71a9
mov byte [ebx + 0x2f], dl
cmp dword [ebp - 4], 0
je 0x5e771f
and dword [ebp - 0x5c], 0
jmp 0x5e771f
test edx, 0x2000
je 0x5e76e1
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x34], eax
inc eax
inc dword [edi + 0x2c]
mov dword [ebp - 0x50], ecx
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x58], ecx
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.005b935e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], eax
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edx
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebp - 0x38]
mov byte [ebx + 0x2d], 0x34
mov cl, byte [ecx + 0x2e]
cmp cl, 1
jbe 0x5e72f4
movzx ecx, cl
sub ecx, dword [ebp - 0x4c]
dec ecx
mov dword [ebp - 4], ecx
imul ecx, ecx, 0x50
push eax
add ecx, 0x58
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.005a260a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x5e7259
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
jmp 0x5e7966
mov al, byte [ebp - 4]
inc al
movzx eax, al
push 0x50
mov dword [ecx + 4], eax
mov dword [ecx], eax
pop eax
push eax
push dword [ebp - 0x10]
lea eax, [ecx + 8]
push eax
call fcn.005fac70
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 8
inc eax
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 4], eax
jl 0x5e72c5
mov esi, dword [ebp - 0x40]
lea edi, [ebx + 0x7c]
mov ebx, dword [ebp - 4]
add esi, 0x58
push 0x50
pop eax
push eax
movzx eax, byte [edi]
imul eax, eax, 0x50
add eax, ecx
push eax
push esi
call fcn.005fac70
mov ecx, dword [ebp - 0x74]
add esp, 0xc
push 0x50
pop eax
add edi, eax
add esi, eax
dec ebx
jne 0x5e729c
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x54]
xor eax, eax
mov ecx, dword [ebp - 0x38]
test byte [ecx + 0x2c], 0x10
jne 0x5e733c
push 0x20
pop ecx
test byte [edx + 0x24], cl
jne 0x5e72ff
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
push ecx
push eax
mov dword [ebp - 0x20], ecx
mov ecx, esi
push 0x3b
pop edx
call fcn.005b9192
pop ecx
pop ecx
jmp 0x5e7333
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x40], ecx
jmp 0x5e72ca
mov ecx, edx
call fcn.005ce23e
mov esi, eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
push 0x6c
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov edx, esi
mov ecx, edi
call fcn.005b98f7
mov esi, dword [ebp - 0x1c]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x58], eax
push dword [ebp - 0xc]
mov ecx, esi
push 0
push 0x38
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
xor ecx, ecx
mov eax, dword [ebp - 0x6c]
inc ecx
cmp dword [eax + 0xc], ecx
jle 0x5e73f6
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [eax + 0xc], edx
jle 0x5e73f6
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp eax, dword [ebp - 0x2c]
je 0x5e73bd
test byte [esi + 4], 1
jne 0x5e73bd
test byte [eax + 0xa], 6
jne 0x5e73bd
mov esi, 0x1fff
test word [eax + 0xc], si
je 0x5e73bd
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x64]
push ebx
call fcn.005c7837
pop ecx
mov ecx, dword [ebp - 0x64]
mov edx, edi
push eax
call fcn.005c7248
mov edx, dword [ebp - 4]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x6c]
inc edx
add ecx, 0x30
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
cmp edx, dword [eax + 0xc]
jl 0x5e7376
mov ebx, dword [ebp - 0x3c]
test edi, edi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x78]
je 0x5e73f6
mov ecx, dword [ebp - 0x48]
mov edx, 0x147
push ecx
push 0
mov ecx, edi
call fcn.005c7154
pop ecx
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov ecx, 0x400
mov edx, dword [ebp - 0x68]
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
or ax, cx
movzx eax, ax
mov dword [ebp - 0x74], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp dword [edx + 0xc], eax
jle 0x5e7670
or dword [ebp - 0x90], 0xffffffff
mov esi, dword [ebp - 0x28]
imul ecx, ecx, 0x30
add ecx, dword [edx + 0x14]
cmp dword [ecx + 0x14], esi
mov esi, dword [ebp - 0x1c]
je 0x5e744e
mov esi, 0x400
test word [ecx + 0xc], si
mov esi, dword [ebp - 0x1c]
je 0x5e7660
mov edx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov dword [ebp - 4], eax
test edx, edx
je 0x5e7465
test byte [ecx + 4], 1
jne 0x5e7465
mov dword [edx + 0xc], ecx
mov ecx, edx
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
push dword [ebp - 0x74]
push eax
push eax
push ecx
mov ecx, edi
call fcn.005ed016
add esp, 0x14
mov dword [ebp - 0x88], eax
test eax, eax
je 0x5e765b
movzx ecx, byte [ebx + 0x2c]
mov edx, dword [ebp - 0x40]
push 0
push ecx
push dword [ebp - 0x4c]
lea ecx, [eax + 0x2f0]
push ecx
mov ecx, edi
call fcn.005e5a0b
mov eax, dword [ebp - 0x38]
add esp, 0x10
test byte [eax + 0x2c], 0x10
jne 0x5e75de
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x90]
push 0x20
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [ebp - 0x54]
cmove ecx, edx
mov dword [ebp - 0x10], ecx
pop ecx
test byte [eax + 0x24], cl
jne 0x5e7507
push 0
push dword [ebp - 0x58]
mov ecx, edi
push dword [ebp - 0x28]
push edx
mov edx, eax
call fcn.005c95f1
push dword [ebp - 0x10]
mov ecx, esi
push eax
push 0
push dword [ebp - 0x20]
push 0x2b
pop edx
call fcn.005b930f
add esp, 0x20
mov dword [ebp - 4], eax
jmp 0x5e75de
mov ecx, eax
call fcn.005ce23e
mov ecx, edi
mov dword [ebp - 0x84], eax
movzx edx, word [eax + 0x32]
mov dword [ebp - 8], edx
call fcn.005cb45d
and dword [ebp - 0x8c], 0
mov ecx, eax
mov dword [ebp - 0x18], ecx
test edx, edx
jle 0x5e756c
mov ebx, dword [ebp - 0x8c]
mov esi, edx
mov eax, dword [ebp - 0x84]
add ecx, ebx
mov edx, dword [ebp - 0x54]
push ecx
push dword [ebp - 0x28]
mov eax, dword [eax + 4]
mov ecx, edi
movsx eax, word [eax + ebx*2]
push eax
call fcn.005c968c
mov ecx, dword [ebp - 0x18]
add esp, 0xc
inc ebx
cmp ebx, esi
jl 0x5e753a
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5e758f
push edx
push ecx
push 0
push dword [ebp - 0x20]
mov ecx, esi
push 0x1e
pop edx
call fcn.005b930f
mov dword [ebp - 4], eax
add esp, 0x10
mov eax, dword [ebp - 0x10]
test eax, eax
js 0x5e75d0
push dword [ebp - 0x58]
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 0x18]
push 0x63
pop edx
call fcn.005b910e
add esp, 0xc
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0x58]
push dword [ebp - 0x20]
push 0x7e
pop edx
call fcn.005b930f
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x5e75d0
push 0x10
pop edx
mov ecx, esi
call fcn.005b962b
push dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.005cb493
pop ecx
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0xc]
push 0xe
pop edx
call fcn.005b9192
mov eax, dword [ebp - 4]
pop ecx
pop ecx
test eax, eax
je 0x5e7600
mov edx, eax
mov ecx, esi
call fcn.005b9643
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x24]
push 1
pop ecx
cmp byte [edx + 0x32], 0
cmovne eax, ecx
mov ecx, dword [edx + 0x330]
mov dword [ebp - 0x24], eax
test dword [ecx + 0x24], 0x200
je 0x5e7650
cmp dword [ebp - 0x44], 0
je 0x5e7633
mov eax, dword [ebp - 0x50]
cmp dword [ecx + 0x20], eax
jne 0x5e7650
mov eax, dword [ebp - 0x54]
test byte [eax + 0x24], 0x20
je 0x5e7648
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x5e7650
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x50], eax
jmp 0x5e7654
and dword [ebp - 0x50], 0
mov ecx, edx
call fcn.005ed836
mov edx, dword [ebp - 0x68]
xor eax, eax
mov ecx, dword [ebp - 0x44]
inc ecx
mov dword [ebp - 0x44], ecx
cmp ecx, dword [edx + 0xc]
jl 0x5e742b
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x38], ecx
test ecx, ecx
je 0x5e7680
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x5e7694
mov dword [ecx + 0xc], eax
mov edx, ecx
mov ecx, dword [ebp - 0x64]
call fcn.005c74e2
mov ecx, esi
call fcn.005b950e
mov edx, dword [ebp - 0x70]
push eax
call fcn.005b95fb
mov edx, dword [ebx + 0xc]
pop ecx
mov ecx, esi
call fcn.005b91a7
mov edx, dword [ebp - 0x30]
mov ecx, esi
call fcn.005b93a0
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2e], cl
jbe 0x5e76cf
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x64]
call fcn.005a2404
cmp dword [ebp - 0x24], 0
jne 0x5e771f
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
call fcn.005e5c70
jmp 0x5e771f
push 0x20
pop eax
test byte [ebp - 0x70], al
je 0x5e76ef
mov byte [ebx + 0x2d], 0xa6
jmp 0x5e771f
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0xc]
mov al, byte [ecx + 0x4a5ecc]
movzx edx, byte [ecx + 0x4a69a8]
mov ecx, esi
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebx + 0x30], eax
call fcn.005b9192
inc eax
mov dword [ebx + 0x34], eax
xor eax, eax
inc eax
mov byte [ebx + 0x2f], al
pop ecx
pop ecx
xor edx, edx
cmp dword [ebp - 0x5c], edx
sete dl
inc edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 8], eax
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
jmp 0x5e780a
xor ecx, ecx
mov dword [ebp - 4], ecx
movzx ecx, word [esi + 0xa]
test cl, 6
jne 0x5e7800
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
je 0x5e776e
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
mov byte [eax + 0x32], cl
jmp 0x5e77fd
mov eax, dword [esi]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x70], eax
cmp dword [ebx], 0
je 0x5e7780
test byte [eax + 4], cl
je 0x5e77fd
cmp edx, ecx
jne 0x5e77a2
push dword [ebp - 0x5c]
mov edx, dword [ebx + 4]
mov ecx, eax
call fcn.005cb048
pop ecx
test eax, eax
jne 0x5e7830
push 2
pop eax
mov dword [ebp - 8], eax
jmp 0x5e7800
cmp edx, 3
jl 0x5e7833
movzx eax, word [esi + 0xa]
test eax, 0x200
je 0x5e77d4
mov eax, dword [ebx + 0x24]
shr eax, 1
test byte [ebx + 0x24], cl
mov ecx, dword [ebp - 0x1c]
push eax
push 0
pop edx
setne dl
add edx, 0x15
call fcn.005b917e
pop ecx
mov dword [ebp - 4], eax
push 0x10
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
push edi
call fcn.005ca9f2
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x5e77f6
mov ecx, dword [ebp - 0x1c]
mov edx, eax
call fcn.005b9643
push 4
pop eax
or word [esi + 0xa], ax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
dec ecx
add esi, 0x30
mov dword [ebp - 0xc], ecx
test ecx, ecx
jg 0x5e773e
mov edx, eax
mov dword [ebp - 0x3c], edx
test eax, eax
jg 0x5e772b
mov eax, dword [ebp - 0x6c]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
jmp 0x5e78df
xor ecx, ecx
inc ecx
movzx eax, word [esi + 0xa]
test eax, 0x1000
je 0x5e77af
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5e7800
push 3
jmp 0x5e779c
test byte [esi + 0xa], 6
jne 0x5e78db
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x5e78db
test ecx, 0x800
je 0x5e78db
mov ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], ecx
jne 0x5e78db
cmp dword [ebx], 0
jne 0x5e78db
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [ebp - 0x6c]
push 0
push 0x83
push dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
push dword [ebp + 8]
push dword [esi + 0x1c]
call fcn.005e968e
add esp, 0x14
test eax, eax
je 0x5e78d8
test byte [eax + 0xa], 4
jne 0x5e78d8
mov esi, dword [eax]
lea edi, [ebp - 0xc0]
mov eax, dword [ebp - 0x70]
push 0xc
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp - 0x78]
push 0x10
push dword [ebp - 0x7c]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc0]
push eax
push edi
call fcn.005ca9f2
mov esi, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x3c]
dec eax
add esi, 0x30
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], esi
test eax, eax
jg 0x5e7850
cmp dword [ebx], 0
je 0x5e7960
mov ecx, dword [ebp - 0x1c]
call fcn.005b950e
push dword [ebx]
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x38
pop edx
call fcn.005b9192
pop ecx
pop ecx
mov ecx, edi
call fcn.005c96be
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov esi, dword [eax + 0x14]
cmp dword [eax + 0xc], edx
jle 0x5e7960
test byte [esi + 0xa], 6
jne 0x5e7954
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
jne 0x5e7951
push 0x10
push dword [ebp - 0x7c]
push dword [esi]
push edi
call fcn.005ca9f2
mov edx, dword [ebp - 0x80]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x6c]
inc edx
add esi, 0x30
mov dword [ebp - 0x80], edx
cmp edx, dword [eax + 0xc]
jl 0x5e7921
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret