Function at 0x5d6df5
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0x1c]
or ecx, 0xffffffff
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 0x18]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], 0xa7
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x5d6ec4
test byte [edi + 0x18], 6
jne 0x5d6eb7
mov edi, edx
cmp dword [eax + 0x14], edx
jle 0x5d6e8c
mov eax, dword [eax + 0x10]
mov dword [ebp + 8], eax
push ecx
push dword [eax]
call fcn.00601757
pop ecx
pop ecx
test eax, eax
je 0x5d6e76
mov ecx, dword [ebp - 8]
inc edi
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp + 8], eax
cmp edi, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xc]
jl 0x5d6e4e
mov eax, dword [ebp - 8]
jmp 0x5d6e8c
mov edx, dword [ebp - 8]
mov eax, edi
add eax, eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + eax*8 + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, edx
cmp edi, dword [eax + 0x14]
jne 0x5d6ebc
push ecx
push str.main
call fcn.00601757
mov edi, dword [ebp + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x5d74a3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], edx
jmp 0x5d6ec6
mov edi, dword [ebp + 0x18]
jmp 0x5d74a3
mov edx, ecx
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x5d702d
xor ecx, ecx
lea edi, [eax + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
cmp dword [eax], ecx
jle 0x5d6ffc
test dword [edi + 0x28], 0x2000
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], eax
je 0x5d7121
xor eax, eax
mov edi, eax
mov eax, dword [ebp - 4]
and dword [ebp + 8], edi
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x38], eax
cmp dword [eax], edi
jle 0x5d70c3
add eax, 0x14
mov dword [ebp - 0x2c], eax
push edx
push dword [ebp + 0x10]
add eax, 0xfffffff4
push dword [ebp + 0x14]
push eax
call fcn.005f6db9
add esp, 0x10
test eax, eax
je 0x5d709a
cmp dword [ebp - 0xc], 0
jle 0x5d6fb5
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x400
je 0x5d6f9e
push dword [ebp + 0x14]
push dword [eax + 0x30]
call fcn.005f447c
pop ecx
pop ecx
test eax, eax
js 0x5d6f9e
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x24]
test al, 0x10
je 0x5d709a
test al, 8
jne 0x5d6f87
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0xc], edi
test eax, eax
je 0x5d6f82
push eax
push dword [ebp - 8]
call fcn.005ce7eb
pop ecx
pop ecx
mov dword [ebp - 0x10], edi
jmp 0x5d6fb5
movzx eax, word [esi + 0x20]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.005cee8d
add esp, 0x10
jmp 0x5d6fb5
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5d6fb0
push eax
push dword [ebp - 8]
call fcn.005ce7eb
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov ecx, dword [ebp + 8]
inc edi
inc dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov word [esi + 0x20], cx
or dword [eax], 0x40
test byte [eax], 0x80
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x18], edx
je 0x5d70a0
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x3c]
inc ecx
add edi, 0x48
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
cmp ecx, dword [eax]
jl 0x5d6ee7
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5d7022
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x2c], eax
test byte [ecx + 0x24], 0x48
je 0x5d701c
or dword [esi + 4], 0x200000
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x5d74b0
test edx, edx
jne 0x5d740c
mov ecx, dword [ebx + 0x80]
xor eax, eax
mov edi, eax
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x5d7321
movzx eax, byte [ebx + 0x9a]
mov dword [ebp + 8], eax
cmp byte [ebx + 0x9b], dl
je 0x5d72cd
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x400
je 0x5d7321
cmp dword [ebp + 0x10], edi
je 0x5d7089
push dword [ecx]
push dword [ebp + 0x10]
call fcn.00601757
pop ecx
pop ecx
test eax, eax
jne 0x5d7321
xor eax, eax
cmp dword [ebp + 8], 0x80
setne al
jmp 0x5d7315
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
inc ecx
add eax, 0x14
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], eax
cmp ecx, dword [edx]
mov edx, dword [ebp + 0xc]
jl 0x5d6f1b
mov ecx, dword [ebp - 0x14]
test edi, edi
jne 0x5d72c5
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
je 0x5d6fe7
mov eax, dword [ebp - 0x20]
test edx, edx
je 0x5d7104
mov esi, dword [ebp - 0x1c]
cmp dword [eax + 0x3c], esi
mov esi, dword [ebp + 0x1c]
jne 0x5d6fe7
cmp dword [ebp - 0x1c], 0
jne 0x5d7104
push 0x701dc8
push edx
call fcn.00651c30
pop ecx
pop ecx
test eax, eax
jne 0x5d6fe1
cmp dword [edi + 0xc], 0
je 0x5d7129
push dword [edi + 0xc]
push dword [ebp + 0x10]
call fcn.00601757
pop ecx
pop ecx
test eax, eax
jne 0x5d6fe1
jmp 0x5d7160
cmp dword [ebp + 0x10], 0
je 0x5d717e
jmp 0x5d70d6
mov eax, dword [ebp - 0x20]
push dword [eax]
push dword [ebp + 0x10]
call fcn.00601757
pop ecx
pop ecx
test eax, eax
je 0x5d7160
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 1
jne 0x5d6fe1
push dword [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call fcn.005d3b3b
add esp, 0xc
test eax, eax
je 0x5d6fe1
cmp byte [ebx + 0xd8], 2
jb 0x5d717e
xor ecx, ecx
cmp dword [edi + 0xc], ecx
je 0x5d717e
lea eax, [esi + 0x2c]
push eax
push ecx
push ebx
call fcn.005fd78d
add esp, 0xc
push dword [ebp + 0x14]
call fcn.0060178c
mov dl, al
xor eax, eax
pop ecx
mov ecx, eax
mov byte [ebp + 0xb], dl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edi, dword [eax + 4]
movsx eax, word [eax + 0x22]
mov dword [ebp - 0x38], eax
test eax, eax
jle 0x5d7204
cmp byte [edi + 0xa], dl
jne 0x5d71f9
push dword [ebp + 0x14]
push dword [edi]
call fcn.00601757
pop ecx
pop ecx
test eax, eax
jne 0x5d71f0
cmp dword [ebp - 0xc], eax
jle 0x5d7285
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x400
je 0x5d726e
push dword [ebp + 0x14]
push dword [eax + 0x30]
call fcn.005f447c
pop ecx
pop ecx
test eax, eax
js 0x5d726e
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 0x10
jne 0x5d7235
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
inc ecx
add edi, 0x10
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
jl 0x5d71a4
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], 0
jne 0x5d6fde
test dword [edi + 0x1c], 0x200
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
jne 0x5d6fe7
inc dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
jmp 0x5d6fe7
test byte [eax + 0x24], 8
jne 0x5d7257
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0xc], edi
test eax, eax
je 0x5d7252
push eax
push dword [ebp - 8]
call fcn.005ce7eb
pop ecx
pop ecx
mov dword [ebp - 0x10], edi
jmp 0x5d7285
movzx eax, word [esi + 0x20]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.005cee8d
add esp, 0x10
jmp 0x5d7285
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5d7280
push eax
push dword [ebp - 8]
call fcn.005ce7eb
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
movsx eax, word [edi + 0x20]
cmp edx, eax
movzx ecx, dx
push 0xffffffffffffffff
pop eax
cmove ecx, eax
mov eax, dword [ebp - 4]
mov word [esi + 0x20], cx
test dword [eax + 0x28], 0x2000
je 0x5d720a
push edx
push eax
call fcn.0060091b
pop ecx
pop ecx
jmp 0x5d7207
mov edi, dword [ebp - 4]
jmp 0x5d6fe4
cmp eax, 0x80
je 0x5d72f8
cmp dword [ebp + 0x10], edi
je 0x5d72f8
push dword [ebp + 0x10]
push 0x71ffc4
call fcn.00601757
pop ecx
pop ecx
test eax, eax
jne 0x5d72f5
mov dword [esi + 0x1c], 1
jmp 0x5d7318
mov eax, dword [ebp + 8]
cmp eax, 0x7f
je 0x5d7321
cmp dword [ebp + 0x10], edi
je 0x5d7321
push dword [ebp + 0x10]
push 0x71ffc8
call fcn.00601757
pop ecx
pop ecx
test eax, eax
jne 0x5d7321
mov dword [esi + 0x1c], eax
mov edi, dword [ebx + 0x80]
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp + 0x18]
test dword [ecx + 0x18], 0x200
je 0x5d7363
cmp dword [ebp + 0x10], 0
je 0x5d7363
mov eax, dword [ecx + 8]
test eax, eax
je 0x5d7363
push dword [ebp + 0x10]
push str.excluded
call fcn.00601757
pop ecx
pop ecx
test eax, eax
jne 0x5d7363
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + 0x18]
mov dword [ebp - 0x14], edi
mov dword [esi + 0x1c], 2
test edi, edi
je 0x5d740c
push dword [ebp + 0x14]
call fcn.0060178c
inc dword [ebp - 0x24]
mov dl, al
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov edi, eax
mov byte [ebp + 0xb], dl
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [eax + 4]
movsx eax, word [eax + 0x22]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x5d73d7
cmp byte [ecx + 0xa], dl
jne 0x5d73b8
push dword [ebp + 0x14]
push dword [ecx]
call fcn.00601757
pop ecx
pop ecx
test eax, eax
je 0x5d73c5
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov dl, byte [ebp + 0xb]
inc edi
add ecx, 0x10
mov dword [ebp - 0x38], ecx
cmp edi, eax
jl 0x5d739a
jmp 0x5d73d7
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
movsx eax, word [eax + 0x20]
cmp edi, eax
pop eax
cmove edi, eax
mov eax, dword [ebp - 0x2c]
cmp edi, eax
jl 0x5d73fa
push dword [ebp + 0x14]
call fcn.005f5cb9
test eax, eax
mov eax, dword [ebp - 0x14]
pop ecx
je 0x5d73fd
test dword [eax + 0x1c], 0x200
push 0xffffffffffffffff
pop edx
cmove edi, edx
jmp 0x5d7400
mov eax, dword [ebp - 0x14]
or edx, 0xffffffff
movsx ecx, word [eax + 0x22]
cmp edi, ecx
jl 0x5d74be
cmp dword [ebp - 0x24], 1
mov edi, dword [ebp + 0x18]
jne 0x5d7441
cmp dword [ebp - 0x18], 0
je 0x5d7441
test byte [edi + 0x18], 0x28
jne 0x5d7441
push dword [ebp + 0x14]
call fcn.005f5cb9
pop ecx
test eax, eax
je 0x5d7441
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
test dword [eax + 0x1c], 0x200
je 0x5d7599
test byte [edi + 0x18], 0x80
je 0x5d7490
xor edx, edx
cmp dword [ebp + 0x10], edx
jne 0x5d7492
mov eax, dword [edi + 8]
mov edi, edx
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jle 0x5d74ab
add eax, 0x14
mov dword [ebp + 8], eax
test byte [eax], 3
jne 0x5d7482
push dword [ebp + 0x14]
push dword [eax - 8]
call fcn.005b3b40
pop ecx
pop ecx
test eax, eax
je 0x5d75b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
inc edi
add eax, 0x14
mov dword [ebp + 8], eax
cmp edi, ecx
jl 0x5d7462
mov edi, dword [ebp + 0x18]
xor edx, edx
mov edi, dword [edi + 0xc]
inc dword [ebp - 0x34]
mov dword [ebp + 0x18], edi
test edi, edi
je 0x5d7658
mov edx, dword [ebp + 0xc]
jmp 0x5d6ec6
mov edi, dword [ebp + 0x18]
jmp 0x5d7492
cmp edi, 1
je 0x5d77de
jmp 0x5d76af
xor ecx, ecx
mov dword [ebp - 0xc], 1
cmp dword [esi + 0x1c], 2
mov dword [ebp - 0x18], ecx
jne 0x5d7510
cmp byte [ebx + 0xd8], 2
jb 0x5d74ec
mov word [esi + 0x20], di
mov dword [esi + 0x2c], eax
mov dword [ebp - 0x28], 0xa7
jmp 0x5d77e0
push edi
push eax
call fcn.00601c1b
pop ecx
pop ecx
movsx ecx, ax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], 0xb0
mov eax, dword [eax + 8]
add ecx, dword [eax + 0x24]
mov dword [esi + 0x1c], ecx
jmp 0x5d77de
mov dword [esi + 0x2c], eax
cmp byte [ebx + 0x9b], cl
mov word [esi + 0x20], di
je 0x5d7555
push edi
push eax
mov dword [ebp - 0x28], 0xb0
mov byte [esi + 2], 0xa7
call fcn.00601c1b
pop ecx
pop ecx
movsx ecx, ax
mov eax, dword [ebp - 0x14]
movsx eax, word [eax + 0x22]
inc eax
imul eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
inc eax
add eax, ecx
mov dword [esi + 0x1c], eax
jmp 0x5d77de
mov dword [ebp - 0x28], 0x4d
test edi, edi
jns 0x5d7569
mov byte [esi + 1], 0x44
jmp 0x5d77e0
xor eax, eax
inc eax
cmp dword [esi + 0x1c], ecx
mov ecx, edi
jne 0x5d7586
shl eax, cl
cmp edi, 0x20
cmovge eax, edx
or dword [ebx + 0x90], eax
jmp 0x5d77de
shl eax, cl
cmp edi, 0x20
cmovge eax, edx
or dword [ebx + 0x94], eax
jmp 0x5d77de
or eax, 0xffffffff
mov dword [ebp - 0xc], 1
mov word [esi + 0x20], ax
mov byte [esi + 1], 0x44
jmp 0x5d77de
mov ecx, dword [ebp + 0x18]
imul eax, edi, 0x14
mov edx, dword [ecx + 8]
mov ecx, dword [eax + edx + 8]
mov eax, dword [ebp + 0x18]
test byte [eax + 0x18], 1
jne 0x5d75ea
test byte [ecx + 4], 0x10
je 0x5d75ea
mov ecx, dword [ebp + 8]
push dword [ecx - 8]
push str.misuse_of_aliased_aggregate__s
push ebx
call fcn.005ec845
add esp, 0xc
push 2
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ecx + 4], 0x8000
je 0x5d760e
test dword [eax + 0x18], 0x4000
je 0x5d7601
cmp eax, dword [ebp - 0x30]
je 0x5d760e
mov ecx, dword [ebp + 8]
push dword [ecx - 8]
push str.misuse_of_aliased_window_function__s
jmp 0x5d75d7
push ecx
call fcn.005f0165
pop ecx
cmp eax, 1
je 0x5d7629
push str.row_value_misused
push ebx
call fcn.005ec845
pop ecx
pop ecx
jmp 0x5d75e0
mov eax, dword [ebp - 0x34]
push eax
push esi
push edi
push edx
push ebx
call fcn.005df598
add esp, 0x14
cmp byte [ebx + 0xd8], 2
jb 0x5d7848
push esi
xor eax, eax
push eax
push ebx
call fcn.005fd78d
add esp, 0xc
jmp 0x5d7848
cmp dword [ebp + 0x10], 0
jne 0x5d76ac
test byte [esi + 4], 0x80
je 0x5d76a1
mov edi, dword [ebp - 8]
cmp byte [edi + 0xb1], 0
jne 0x5d76e5
mov eax, dword [ebp - 0x30]
test dword [eax + 0x18], 0x10000
je 0x5d76d9
push edi
call fcn.006138b6
pop ecx
test eax, eax
je 0x5d7694
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, 0
jne 0x5d76e5
mov eax, dword [edi + 0x20]
and eax, 0x20000000
or eax, 0
jne 0x5d76e5
push esi
call fcn.005ef145
pop ecx
test eax, eax
jne 0x5d7708
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5d7773
lea eax, [edi - 1]
cmp dword [ecx], eax
jne 0x5d7768
mov eax, dword [esi + 4]
test eax, 0x800000
je 0x5d7710
and eax, 0xff7fffff
mov dword [esi + 4], eax
jmp 0x5d773e
mov eax, dword [edi + 0x20]
and eax, 0x40000000
or eax, edx
je 0x5d76a1
push dword [ebp + 0x14]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.005b4454
push 8
xor eax, eax
mov byte [esi], 0x75
push eax
lea ecx, [esi + 0x2c]
push ecx
call fcn.00644240
add esp, 0x18
xor eax, eax
inc eax
jmp 0x5d75e3
cmp dword [esi + 0xc], 0
mov edi, dword [ebp - 8]
je 0x5d7724
push dword [esi + 0xc]
push edi
call fcn.005eef54
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], eax
je 0x5d773b
push dword [esi + 0x10]
push edi
call fcn.005eef54
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0x10], eax
movzx eax, word [esi + 0x20]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.005cee8d
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov byte [esi], 0xac
mov dword [esi + 8], str.coalesce
mov dword [esi + 0x14], eax
jmp 0x5d7848
push ecx
push dword [ebp - 8]
call fcn.005ce7eb
pop ecx
pop ecx
push dword [ebp + 0x14]
test edi, edi
mov ecx, str.ambiguous_column_name
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5d77a1
push dword [ebp + 0x10]
push ecx
push eax
push str._s:__s._s._s
push ebx
call fcn.005ec845
add esp, 0x18
jmp 0x5d77ca
cmp dword [ebp + 0x10], 0
je 0x5d77bb
push dword [ebp + 0x10]
push eax
push str._s:__s._s
push ebx
call fcn.005ec845
add esp, 0x14
jmp 0x5d77ca
push eax
push str._s:__s
push ebx
call fcn.005ec845
add esp, 0x10
push esi
push dword [ebx]
call fcn.005fd0d3
mov eax, dword [ebp - 0x30]
pop ecx
mov byte [ebx + 0x11], 1
pop ecx
inc dword [eax + 0x14]
xor ecx, ecx
test dword [esi + 4], 0x810000
jne 0x5d781f
cmp dword [esi + 0xc], 0
mov edi, dword [ebp - 8]
je 0x5d77ff
push dword [esi + 0xc]
push edi
call fcn.005eef54
pop ecx
pop ecx
xor ecx, ecx
cmp dword [esi + 0x10], 0
mov dword [esi + 0xc], ecx
je 0x5d7815
push dword [esi + 0x10]
push edi
call fcn.005eef54
pop ecx
pop ecx
xor ecx, ecx
or dword [esi + 4], 0x800000
mov dword [esi + 0x10], ecx
cmp word [esi + 0x20], cx
jl 0x5d7839
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x5d7839
push esi
call fcn.005ee966
or dword [edi + 0x38], eax
or dword [edi + 0x3c], edx
pop ecx
mov eax, dword [ebp - 0x28]
mov byte [esi], al
cmp dword [ebp - 0xc], 1
jne 0x5d75e0
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [eax + 0x16c], ecx
je 0x5d7871
mov al, byte [esi]
cmp al, 0xa7
je 0x5d785e
cmp al, 0x4d
jne 0x5d7871
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [ebp - 0x1c]
push esi
push ebx
call fcn.005e4c8f
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x18]
jmp 0x5d787c
mov ecx, dword [ecx + 0xc]
inc dword [ecx + 0x10]
cmp ecx, eax
jne 0x5d7879
jmp 0x5d7708