Function at 0x5094b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
push edi
mov edi, dword [esi]
mov dword [esp + 0x38], 1
mov dword [esp + 0xb4], 0
mov dword [esp + 0x34], edi
test eax, eax
jne 0x5094f8
cmp dword [esi + 0x74], eax
jne 0x5094f1
test byte [edi + 0x44], 8
jne 0x5094f1
mov byte [esi + 0x17], 1
mov ebx, esi
call fcn.004cbf10
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x50b768
cmp byte [edi + 0x49], 0
jne 0x50b768
cmp dword [esi + 0x24], 0
jne 0x50b768
push 0
push 0
push 0
push 0x15
mov eax, esi
call fcn.004eb3a0
add esp, 0x10
test eax, eax
jne 0x50b768
push 0x30
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00589f50
mov ecx, dword [ebp + 0x10]
add esp, 0xc
cmp byte [ecx], 8
ja 0x509567
mov eax, dword [ebx + 0x30]
push edi
call fcn.004e1960
add esp, 4
and dword [ebx + 8], 0xfffffffe
mov dword [ebx + 0x30], 0
push 0
push ebx
push esi
call fcn.00508c50
add esp, 0xc
cmp dword [esi + 0x24], 0
jne 0x50b5c7
mov edx, edi
cmp byte [edx + 0x49], 0
jne 0x50b5c7
mov eax, dword [ebp + 0x10]
cmp byte [eax], 9
jne 0x50959c
push esi
mov eax, ebx
call fcn.00503ef0
add esp, 4
push ebx
mov edi, esi
call fcn.0051dfb0
add esp, 4
test eax, eax
jne 0x50b5c7
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
shr eax, 3
and eax, 1
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x30], eax
cmp dword [ebx + 0x34], eax
jne 0x509728
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
cmp eax, dword [edi]
jge 0x509728
lea eax, [eax + eax*8]
test byte [edi + eax*8 + 0x2c], 8
mov ecx, dword [edi + eax*8 + 0x1c]
mov edx, dword [edi + eax*8 + 0x18]
lea edi, [edi + eax*8 + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
je 0x509682
mov edx, dword [edi + 0x2c]
mov eax, dword [ebx + 0x24]
call fcn.004e64e0
test eax, eax
je 0x509682
mov ecx, dword [esp + 0x34]
mov eax, 0x2000
test word [ecx + 0x44], ax
jne 0x509682
mov edx, dword [edi + 0x2c]
and byte [edi + 0x24], 0xd7
mov eax, dword [ebx + 0x24]
push edx
push eax
call fcn.005020d0
add esp, 8
cmp dword [esp + 0x10], 0
je 0x50971a
mov ecx, dword [esp + 0x1c]
movsx edx, word [ecx + 0x2a]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
cmp edx, dword [ecx]
jne 0x509755
test byte [eax + 8], 8
jne 0x50971a
mov edx, eax
cmp dword [edx + 0x30], 0
je 0x5096d2
cmp dword [esp + 0x30], 0
jne 0x5096d2
test dword [ebx + 8], 0x40000
je 0x5096d2
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
je 0x50971a
mov ecx, eax
test byte [ecx + 0x74], 0xa
jne 0x50971a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
push edx
push eax
push esi
mov eax, ebx
call fcn.00506dc0
add esp, 0xc
test eax, eax
je 0x5096f3
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x34]
cmp byte [edx + 0x49], 0
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x18], ecx
jne 0x50b5c7
mov eax, dword [ebp + 0x10]
cmp byte [eax], 8
jbe 0x50971a
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x8c], ecx
inc dword [esp + 0x30]
cmp dword [ebx + 0x34], 0
je 0x509622
cmp dword [ebx + 0x34], 0
je 0x50977c
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
mov eax, esi
call fcn.00504e40
add esp, 8
cmp dword [ebx + 0x38], 0
mov edi, eax
jne 0x50974c
mov edx, esi
call fcn.004cc5f0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
movsx eax, word [eax + 0x2a]
push ecx
push edx
push eax
push str.expected__d_columns_for__s_but_got__d
call fcn.004ae670
add esp, 0x10
jmp 0x50b5c7
mov edx, dword [esp + 0x18]
cmp dword [edx], 1
jle 0x50979f
mov ecx, dword [esp + 0x34]
mov eax, 0x8000
test word [ecx + 0x44], ax
jne 0x50979f
mov edi, ebx
mov ebx, esi
call fcn.00507520
mov ebx, edi
mov edi, dword [esp + 0x18]
xor eax, eax
cmp dword [edi], eax
mov dword [esp + 0x30], eax
jle 0x509ab2
lea edx, [eax + eax*8]
mov eax, dword [edi + edx*8 + 0x40]
or eax, dword [edi + edx*8 + 0x44]
lea edi, [edi + edx*8 + 8]
jne 0x5097db
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
push ecx
push 0x5e1790
push edx
push 0x14
mov eax, esi
call fcn.004eb3a0
add esp, 0x10
mov eax, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x509a9d
mov eax, dword [edi + 0x18]
test eax, eax
je 0x509816
test byte [edi + 0x28], 0x10
jne 0x509a9d
mov ecx, dword [esp + 0x14]
push 0
push eax
mov eax, dword [edi + 0x1c]
push eax
push 0xc
push ecx
call fcn.004cc1f0
add esp, 0x14
jmp 0x509a9d
mov eax, ebx
call fcn.004e0450
add dword [esi + 0xcc], eax
mov eax, dword [esp + 0x34]
mov edx, 0x1000
test word [eax + 0x44], dx
jne 0x509853
movzx ecx, byte [edi + 0x24]
mov edx, dword [edi + 0x2c]
mov eax, dword [ebx + 0x24]
shr ecx, 5
and ecx, 1
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
push esi
call fcn.00507620
add esp, 0x14
cmp dword [esp + 0x30], 0
mov edx, dword [esi + 0xec]
mov eax, dword [edi + 8]
mov dword [esp + 0x44], edx
mov dword [esi + 0xec], eax
jne 0x509943
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
je 0x509884
test byte [eax + 0x74], 0xa
je 0x509943
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x88]
inc dword [esi + 0x2c]
mov ecx, dword [esi + 0x2c]
inc ebx
push ebx
push 0
push ecx
push 0xd
push eax
mov dword [esp + 0x80], ebx
mov dword [edi + 0x1c], ecx
call fcn.004cc1f0
mov ecx, dword [edi + 0x1c]
mov edx, dword [esp + 0x40]
xor eax, eax
mov dword [edi + 0x18], ebx
add esp, 0x14
mov byte [esp + 0x74], 0xd
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0x14]
push eax
push str.CO_ROUTINE__u
push 1
mov ebx, esi
call fcn.004cc530
mov ebx, dword [esp + 0x38]
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
push ebx
push esi
call fcn.005094b0
mov ax, word [ebx + 6]
mov edx, dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov word [edx + 0x2c], ax
mov ecx, dword [esp + 0x88]
mov eax, dword [edi + 0x1c]
or dword [edi + 0x28], 0x10
add esp, 0xc
mov dword [edi + 0x20], ecx
call fcn.004cc730
mov eax, dword [esp + 0x6c]
dec eax
mov edx, esi
call fcn.004ccb60
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov byte [eax + 0x13], cl
mov dword [eax + 0x1c], ecx
mov esi, eax
jmp 0x509a78
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x14]
push 0
push eax
push 0
push 0x46
push edx
mov dword [esp + 0x6c], 0
mov dword [edi + 0x1c], eax
call fcn.004cc1f0
mov dword [esp + 0x80], eax
inc eax
add esp, 0x14
test byte [edi + 0x28], 8
mov dword [edi + 0x18], eax
jne 0x509992
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0x11
push eax
call fcn.004cc1f0
add esp, 0x14
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
call fcn.00509420
mov dword [esp + 0x1c], eax
test eax, eax
mov eax, dword [edi + 0x2c]
je 0x5099d5
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [esp + 0x14]
push 0
push edx
push eax
push 0x6f
push ecx
call fcn.004cc1f0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
mov cx, word [eax + 6]
mov edx, dword [esp + 0x40]
add esp, 0x14
mov word [edx + 6], cx
jmp 0x509a21
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
xor eax, eax
mov byte [esp + 0x74], 0xc
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov edx, dword [ecx + 0x14]
push edx
push str.MATERIALIZE__u
push 1
mov ebx, esi
call fcn.004cc530
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x74]
push eax
push ecx
push esi
call fcn.005094b0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
cmp dword [esp + 0x58], 0
mov eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x10]
mov cx, word [eax + 6]
mov word [edx + 0x2c], cx
je 0x509a44
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
call fcn.004ccb60
mov edi, dword [edi + 0x1c]
mov edx, dword [esp + 0x14]
push 0
push 0
push edi
push 0x42
push edx
call fcn.004cc1f0
mov ecx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x80]
add esp, 0x14
call fcn.004ccab0
mov byte [esi + 0x13], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x49], 0
jne 0x50b5c7
mov eax, ebx
call fcn.004e0450
mov ecx, dword [esp + 0x44]
sub dword [esi + 0xcc], eax
mov dword [esi + 0xec], ecx
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
inc eax
cmp eax, dword [edi]
mov dword [esp + 0x30], eax
jl 0x5097b1
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
mov edi, dword [ebx]
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x28], eax
mov al, byte [ebx + 8]
and al, 1
and dl, 9
mov dword [esp + 0x6c], edi
mov dword [esp + 0x58], ecx
mov byte [esp + 0x74], al
cmp dl, 1
jne 0x509b13
mov eax, dword [esp + 0x8c]
push 0xffffffffffffffff
push eax
mov eax, edi
call fcn.004e6240
add esp, 8
test eax, eax
jne 0x509b13
mov ecx, dword [esp + 0x34]
and dword [ebx + 8], 0xfffffffe
push eax
push edi
push ecx
call fcn.004e1000
add esp, 0xc
mov dword [ebx + 0x28], eax
mov dword [esp + 0x28], eax
cmp dword [esp + 0x8c], 0
je 0x509beb
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [edi]
push esi
xor ebx, ebx
call fcn.00503580
mov edx, dword [esp + 0x94]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov ecx, dword [edx]
mov edx, dword [edi]
push ebx
mov ebx, dword [esp + 0x20]
lea ecx, [ecx + edx + 1]
push ecx
push eax
push 0x71
push ebx
mov dword [esp + 0xb0], eax
call fcn.004cc1f0
mov ecx, dword [ebx]
add esp, 0x1c
cmp byte [ecx + 0x49], 0
mov dword [esp + 0x1c], eax
je 0x509b8f
mov eax, dword [esp + 0x10]
mov edx, 0xfffffff7
call fcn.004cccf0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xa0], eax
jmp 0x509bfa
cmp dword [esp + 0x1c], 0
jge 0x509b9d
mov eax, dword [ebx + 0x88]
dec eax
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea eax, [ecx + eax*4]
je 0x509bcf
mov edx, dword [esp + 0x10]
push edx
push eax
mov eax, 0xfffffff7
mov ecx, ebx
call fcn.004cce90
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0xa0], eax
jmp 0x509bfa
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x509bde
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xa0], eax
jmp 0x509bfa
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0xc
jne 0x509c16
mov ecx, dword [edi]
mov edx, dword [eax + 4]
push 0
push ecx
push edx
push 0x71
push ebx
call fcn.004cc1f0
add esp, 0x14
mov eax, ebx
call fcn.004cc760
mov ecx, dword [ebp + 0xc]
test dword [ecx + 8], 0x4000
mov dword [esp + 0x108], eax
jne 0x509c39
mov edx, 0x140
mov word [ecx + 6], dx
push eax
push ecx
call fcn.005046f0
mov eax, dword [ebp + 0xc]
add esp, 8
cmp dword [eax + 0xc], 0
jne 0x509c74
cmp dword [esp + 0xa0], 0
jl 0x509c74
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xa0]
mov dl, 0x72
mov ecx, edi
call fcn.004cca80
or byte [esp + 0xac], 1
jmp 0x509c78
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
test byte [ecx + 8], 1
mov esi, dword [ebp + 8]
je 0x509d3d
mov eax, dword [esi + 0x28]
mov dword [esp + 0x78], eax
inc eax
mov edx, ecx
mov dword [esi + 0x28], eax
mov eax, dword [edx]
push eax
push esi
xor edx, edx
xor ebx, ebx
call fcn.00503580
mov ecx, dword [esp + 0x80]
push 0
push 0
push ecx
push 0x71
push edi
mov ebx, eax
call fcn.004cc1f0
mov ecx, dword [edi]
add esp, 0x1c
cmp byte [ecx + 0x49], 0
mov edx, eax
mov dword [esp + 0x1c], edx
je 0x509cdb
mov eax, ebx
mov edx, 0xfffffff7
call fcn.004cccf0
mov edx, dword [esp + 0x1c]
jmp 0x509d18
test edx, edx
jge 0x509ce6
mov eax, dword [edi + 0x88]
dec eax
mov ecx, dword [edi + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea eax, [ecx + eax*4]
je 0x509d0d
push ebx
push eax
mov eax, 0xfffffff7
mov ecx, edi
call fcn.004cce90
mov edx, dword [esp + 0x24]
add esp, 8
jmp 0x509d18
test ebx, ebx
je 0x509d18
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0xf7
mov eax, dword [edi + 0x88]
mov dword [esp + 0x7c], edx
test eax, eax
jle 0x509d36
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
mov ecx, 8
mov word [eax + edx*4 - 0x12], cx
mov byte [esp + 0x75], 3
jmp 0x509d42
mov byte [esp + 0x75], 0
mov ebx, dword [esp + 0x28]
xor edx, edx
cmp dword [esp + 0x24], edx
jne 0x509f44
cmp ebx, edx
jne 0x509f44
movzx edx, byte [esp + 0x74]
mov ebx, dword [ebp + 0xc]
mov ax, word [ebx + 8]
neg edx
sbb edx, edx
and edx, 0x100
mov ecx, 0x4000
and ax, cx
or dx, ax
mov eax, dword [ebx + 0x44]
movzx edx, dx
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x509d96
push eax
call fcn.0051e6b0
add esp, 4
movsx ecx, word [ebx + 6]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push esi
call fcn.0051c2b0
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x50], esi
test esi, esi
je 0x50b5c4
movzx eax, word [esi + 0x48]
cmp ax, word [ebx + 6]
jge 0x509dda
mov word [ebx + 6], ax
cmp byte [esp + 0x74], 0
je 0x509dec
mov al, byte [esi + 0x33]
test al, al
je 0x509dec
mov byte [esp + 0x75], al
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x509e2d
movsx ecx, byte [esi + 0x2f]
mov dword [esp + 0x90], ecx
mov ecx, esi
call fcn.00516c20
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x90]
cmp eax, dword [edx]
jne 0x509e2d
mov dword [esp + 0x8c], 0
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0xa0]
test eax, eax
jl 0x509e43
test edx, edx
jne 0x509e43
mov edx, edi
call fcn.004cce20
cmp dword [esp + 0x1c], 0
je 0x509f09
mov eax, edi
call fcn.004cc760
mov dword [esp + 0x1c], eax
mov eax, edi
call fcn.004cc760
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.004cc760
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
inc dword [esi + 0x2c]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x54]
mov ebx, eax
mov eax, dword [esi + 0x2c]
push esi
mov dword [esp + 0x44], eax
call fcn.00520b90
push 0
push ebx
push 0
push 0xb
push edi
call fcn.004cc1f0
mov edx, dword [esp + 0x38]
add esp, 0x1c
mov ecx, edi
call fcn.004cc7b0
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
push ebx
push edx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x9c]
push edx
push 0xffffffffffffffff
push eax
mov ecx, esi
mov dword [esp + 0xc4], 0
call fcn.005029b0
mov edx, dword [esp + 0x40]
add esp, 0x1c
mov ecx, edi
call fcn.004cc7b0
mov ecx, dword [esp + 0x3c]
push 0
push 0
push ecx
push 0x42
push edi
call fcn.004cc1f0
add esp, 0x14
mov edx, ebx
mov ecx, edi
call fcn.004cc7b0
jmp 0x50b510
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x9c]
push eax
push 0xffffffffffffffff
push ebx
call fcn.005029b0
add esp, 0x1c
push esi
call fcn.0051ccb0
mov esi, dword [ebp + 8]
add esp, 4
jmp 0x50b510
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
cmp ebx, edx
je 0x509fa6
mov ecx, dword [ecx]
mov eax, dword [ecx]
cmp eax, edx
jle 0x509f73
add ecx, 0x1a
xor ebx, ebx
mov word [ecx], bx
dec eax
add ecx, 0x18
cmp eax, edx
jg 0x509f62
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
cmp eax, edx
jle 0x509f91
lea ecx, [ebx + 0x1a]
lea esp, [esp]
xor ebx, ebx
mov word [ecx], bx
dec eax
add ecx, 0x18
cmp eax, edx
jg 0x509f80
mov ebx, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
cmp word [eax + 6], 0x42
jle 0x509fac
mov edx, 0x42
mov word [eax + 6], dx
jmp 0x509fac
xor eax, eax
mov word [ecx + 6], ax
mov eax, dword [esp + 0x8c]
push 0xffffffffffffffff
push ebx
call fcn.004e6240
add esp, 8
test eax, eax
jne 0x509fca
mov dword [esp + 0x24], 1
mov eax, dword [edi + 0xc]
mov ebx, dword [eax + 0x3c]
lea ecx, [ebx - 1]
lea edx, [ebx + 1]
mov dword [esp + 0x10], eax
mov dword [eax + 0x3c], edx
test ebx, ecx
jne 0x50a008
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
lea edx, [ebx*8 + 4]
push 0
push edx
call fcn.004aba40
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
mov dword [ecx + 0x40], eax
add esp, 8
mov eax, ecx
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50a016
mov dword [eax + ebx*4], 0xffffffff
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
sub eax, ebx
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x28]
inc ecx
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], edx
mov dword [esp + 0xc8], ecx
test eax, eax
je 0x50a097
mov edx, dword [eax]
mov dword [esp + 0xc4], edx
jmp 0x50a0a2
mov dword [esp + 0xc4], 0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0xe8]
push ecx
mov dword [esp + 0xd4], eax
call fcn.004e69c0
mov ebx, dword [esp + 0x90]
lea edx, [esp + 0xec]
add esp, 4
push edx
call fcn.004e69c0
xor ebx, ebx
add esp, 4
cmp dword [esp + 0x58], ebx
je 0x50a148
cmp dword [esp + 0x28], ebx
je 0x50a0fd
mov ebx, dword [ebp + 0xc]
push esi
mov ecx, ebx
call fcn.005093d0
mov eax, dword [ebx + 0x24]
add esp, 4
mov dword [esp + 0x50], eax
xor ebx, ebx
mov edx, dword [esp + 0x58]
push edx
lea eax, [esp + 0x110]
lea ecx, [esp + 0xec]
push eax
mov dword [esp + 0x118], 0x4e66f0
mov dword [esp + 0x11c], 0x4e6960
mov dword [esp + 0x120], 0x4e6970
mov dword [esp + 0x124], ebx
mov dword [esp + 0x12c], ecx
call fcn.004dd300
add esp, 8
mov ecx, dword [esp + 0xd8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0xe4]
cmp dword [eax + 0x28], ebx
jne 0x50a19a
cmp dword [eax + 0x2c], ebx
jne 0x50a19a
cmp ecx, 1
jne 0x50a19a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xe0]
lea edx, [esp + 0xb4]
push edx
push eax
mov eax, dword [ecx]
call fcn.00507750
mov ecx, dword [esp + 0xec]
add esp, 8
mov byte [esp + 0x4b], al
jmp 0x50a19f
mov byte [esp + 0x4b], 0
cmp ecx, ebx
mov dword [esp + 0x30], ebx
jle 0x50a200
mov dword [esp + 0x10], ebx
jmp 0x50a1b0
mov edx, dword [esp + 0xe0]
or word [esp + 0x100], 8
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax]
mov ebx, dword [ecx + 0x14]
lea edx, [esp + 0xe8]
push edx
call fcn.004e69c0
mov ecx, dword [esp + 0xe8]
add dword [esp + 0x14], 0x10
mov eax, 0xfff7
and word [esp + 0x104], ax
mov eax, dword [esp + 0x34]
inc eax
add esp, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x50a1b0
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xcc], edx
cmp byte [eax + 0x49], 0
jne 0x50b5ab
cmp dword [esp + 0x28], 0
je 0x50b0a0
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xbc], eax
push ecx
inc eax
push esi
xor ebx, ebx
mov dword [esi + 0x28], eax
call fcn.00503580
mov edx, dword [esp + 0xcc]
push ebx
push edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xcc]
push eax
push 0x72
push edi
call fcn.004cc1f0
mov ecx, dword [edi]
add esp, 0x1c
mov dword [esp + 0x44], eax
cmp byte [ecx + 0x49], bl
je 0x50a27e
mov eax, dword [esp + 0x68]
lea edx, [ebx - 9]
call fcn.004cccf0
jmp 0x50a2be
cmp dword [esp + 0x44], 0
jge 0x50a28c
mov eax, dword [edi + 0x88]
dec eax
mov edx, dword [edi + 0x58]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x68]
je 0x50a2b3
push ecx
push eax
mov eax, 0xfffffff7
mov ecx, edi
call fcn.004cce90
add esp, 8
jmp 0x50a2be
test ecx, ecx
je 0x50a2be
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf7
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esp + 0x5c], eax
inc eax
mov dword [esp + 0x10], eax
inc eax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0xc]
mov ebx, dword [eax + 0x3c]
lea ecx, [ebx - 1]
lea edx, [ebx + 1]
mov dword [esp + 0x4c], eax
mov dword [eax + 0x3c], edx
test ebx, ecx
jne 0x50a311
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
lea edx, [ebx*8 + 4]
push 0
push edx
call fcn.004aba40
mov ecx, dword [esp + 0x54]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
mov dword [ecx + 0x40], eax
add esp, 8
mov eax, ecx
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50a31f
mov dword [eax + ebx*4], 0xffffffff
inc dword [esi + 0x2c]
mov edx, dword [esi + 0x2c]
or eax, 0xffffffff
sub eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xc]
mov ebx, dword [eax + 0x3c]
mov dword [esp + 0x3c], edx
lea edx, [ebx - 1]
lea ecx, [ebx + 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ebx
mov dword [eax + 0x3c], ecx
test ebx, edx
jne 0x50a374
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
lea ecx, [ebx*8 + 4]
push 0
push ecx
call fcn.004aba40
mov edx, dword [esp + 0x24]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
mov dword [edx + 0x40], eax
add esp, 8
mov eax, edx
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50a382
mov dword [eax + ebx*4], 0xffffffff
mov eax, dword [esi + 0x2c]
lea ecx, [eax + 1]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
add eax, edx
lea edx, [eax + 1]
push 0
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
push edx
mov dword [esi + 0x2c], eax
mov ecx, dword [ecx]
push 0
or ebx, 0xffffffff
sub ebx, dword [esp + 0x58]
add ecx, eax
push 0x46
push edi
mov dword [esp + 0x30], ebx
mov dword [esi + 0x2c], ecx
call fcn.004cc1f0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x84]
add esp, 0x14
lea edx, [ecx + eax - 1]
push edx
push eax
push 0
push 0x49
push edi
call fcn.004cc1f0
mov eax, dword [esp + 0x50]
add esp, 0x14
push 0
push ebx
push eax
push 0xc
push edi
call fcn.004cc1f0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add esp, 0x14
neg ecx
sbb ecx, ecx
and ecx, 0x200
or cx, 0x40
push 0
movzx edx, cx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x20]
push 0
push eax
push ecx
push edx
push esi
call fcn.0051c2b0
add esp, 0x1c
mov dword [esp + 0x50], eax
test eax, eax
je 0x50b5ab
movsx eax, byte [eax + 0x2f]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
jne 0x50a44c
xor ebx, ebx
mov dword [esp + 0x4c], ebx
jmp 0x50a7b9
cmp byte [esp + 0x74], 0
je 0x50a461
mov edx, dword [ebp + 0xc]
test byte [edx + 8], 1
mov eax, str.DISTINCT
je 0x50a466
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
mov ebx, esi
call fcn.004cc530
mov eax, dword [esp + 0x34]
mov ebx, dword [eax]
mov ecx, dword [esp + 0xe4]
add esp, 0xc
mov dword [esp + 0x4c], 1
mov dword [esp + 0x18], ebx
mov eax, ebx
test ecx, ecx
jle 0x50a4b8
mov edx, dword [esp + 0xd4]
add edx, 0xc
mov dword [esp + 0x40], ecx
cmp dword [edx], eax
jl 0x50a4ae
inc dword [esp + 0x18]
inc eax
add edx, 0x18
sub dword [esp + 0x40], 1
jne 0x50a4a5
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jne 0x50a4e9
mov al, byte [esi + 0x13]
test al, al
jne 0x50a4d4
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
jmp 0x50a518
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + ecx*4 + 0x90]
mov dword [esp + 0x20], eax
jmp 0x50a518
mov eax, dword [esi + 0x1c]
cmp ecx, eax
mov edx, dword [esi + 0x20]
mov dword [esp + 0x38], edx
jg 0x50a507
add edx, ecx
sub eax, ecx
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x1c], eax
jmp 0x50a512
mov eax, dword [esi + 0x2c]
add ecx, eax
lea edx, [eax + 1]
mov dword [esi + 0x2c], ecx
mov eax, edx
mov dword [esp + 0x20], edx
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push esi
call fcn.004e5530
xor eax, eax
add esp, 0x10
cmp dword [esp + 0xd8], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
jle 0x50a59c
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
cmp dword [edx + ecx + 0xc], eax
jl 0x50a585
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov ebx, dword [edx + ecx]
push eax
mov eax, dword [edx + ecx + 4]
push eax
mov eax, dword [edx + ecx + 8]
push edi
call fcn.004e41b0
mov edx, dword [esp + 0xe0]
add esp, 0xc
inc dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add dword [esp + 0x40], 0x18
inc eax
cmp eax, dword [esp + 0xd8]
mov dword [esp + 0x30], eax
jl 0x50a548
mov al, byte [esi + 0x13]
test al, al
jne 0x50a5ab
inc dword [esi + 0x2c]
mov ebx, dword [esi + 0x2c]
jmp 0x50a5ba
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov ebx, dword [esi + ecx*4 + 0x90]
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50a5e1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push ebx
push eax
push ecx
push 0x66
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50a618
mov ecx, dword [edi + 0x58]
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x18]
mov byte [eax], 0x66
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xbc]
jg 0x50a644
push 0
mov eax, ecx
push ebx
push eax
push 0x84
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50a670
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x84
mov word [eax + 2], dx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test ebx, ebx
je 0x50a690
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x50a690
movzx eax, al
mov dword [esi + eax*4 + 0x90], ebx
inc byte [esi + 0x13]
cmp ecx, 1
jne 0x50a6af
test edx, edx
je 0x50a6ba
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x50a6ba
movzx ecx, al
mov dword [esi + ecx*4 + 0x90], edx
inc byte [esi + 0x13]
jmp 0x50a6ba
cmp ecx, dword [esi + 0x1c]
jle 0x50a6ba
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x50]
push edx
call fcn.0051ccb0
mov ecx, dword [esi + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x28], eax
mov al, byte [esi + 0x13]
add esp, 4
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc0], ecx
test al, al
jne 0x50a6ee
inc dword [esi + 0x2c]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x20], edx
jmp 0x50a703
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + edx*4 + 0x90]
mov dword [esp + 0x20], eax
mov edx, eax
mov eax, dword [edi + 0x88]
mov ebx, dword [edi + 0xc]
cmp dword [ebx + 0x30], eax
jg 0x50a726
mov eax, dword [esp + 0x18]
push eax
push edx
push ecx
push 0x74
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50a754
lea ebx, [eax + 1]
mov dword [edi + 0x88], ebx
mov ebx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov byte [eax], 0x74
mov word [eax + 2], bx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xbc]
jg 0x50a77f
mov eax, dword [esp + 0x2c]
push 0
push eax
push ecx
push 0x22
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50a7af
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x22
mov word [eax + 2], dx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [esp + 0xb9], 1
xor ebx, ebx
cmp dword [esp + 0x24], ebx
je 0x50a813
mov edx, dword [esp + 0x34]
test byte [edx + 0x44], 4
jne 0x50a813
cmp dword [esp + 0x4c], ebx
jne 0x50a7d8
mov eax, dword [esp + 0x50]
cmp byte [eax + 0x30], bl
je 0x50a813
mov ecx, dword [edi]
mov dword [esp + 0x8c], ebx
cmp byte [ecx + 0x49], bl
jne 0x50a813
mov eax, dword [esp + 0xa0]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
movsx edx, byte [eax + 1]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 0x10]
call fcn.004cccf0
mov eax, dword [esp + 0x38]
mov byte [eax + 1], bl
mov dword [eax + 0x10], ebx
mov byte [eax], 0xab
mov eax, dword [edi + 0x88]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x4c], ebx
je 0x50a884
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xbc]
jg 0x50a852
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xbc]
push eax
push ecx
push edx
push 0x7f
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50a884
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x7f
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp dword [eax], ebx
mov dword [esp + 0x14], ecx
jle 0x50a944
add eax, 4
mov dword [esp + 0x24], eax
cmp dword [esp + 0x4c], ebx
je 0x50a907
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50a8d1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
lea edx, [eax + ecx]
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
push 0x5a
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50a92a
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
add edx, ecx
mov byte [eax], 0x5a
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x50a92e
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add eax, ecx
push eax
mov byte [esp + 0xbc], 1
mov eax, dword [edx]
push eax
push esi
call fcn.004e53f0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], 0x18
inc ecx
cmp ecx, dword [eax]
mov dword [esp + 0x14], ecx
jl 0x50a89d
mov ecx, dword [esp + 0x68]
cmp ecx, ebx
je 0x50a94e
inc dword [ecx]
mov ecx, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], ecx
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jg 0x50a97b
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x64]
push eax
push ecx
push 0x57
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50a9b3
lea edx, [ecx + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
mov byte [eax], 0x57
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, ecx
mov ecx, dword [edi]
cmp byte [ecx + 0x49], bl
je 0x50a9ca
mov eax, dword [esp + 0x68]
mov edx, 0xfffffff7
call fcn.004cccf0
jmp 0x50aa0a
cmp eax, ebx
jge 0x50a9d5
mov eax, dword [edi + 0x88]
dec eax
mov ecx, dword [edi + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], bl
lea eax, [ecx + eax*4]
je 0x50a9fb
mov edx, dword [esp + 0x68]
push edx
push eax
mov eax, 0xfffffff7
mov ecx, edi
call fcn.004cce90
add esp, 8
jmp 0x50aa0a
mov ecx, dword [esp + 0x68]
cmp ecx, ebx
je 0x50aa0a
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf7
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
mov dword [esp + 0x38], eax
lea ecx, [eax + 1]
jg 0x50aa30
push ecx
push ebx
push ecx
push 0x10
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50aa5a
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x10
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x88]
cmp dword [edx + 0x30], ecx
jg 0x50aa90
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push ecx
push 0x4d
call fcn.004cc1b0
add esp, 0x10
jmp 0x50aac6
lea edx, [ecx + 1]
mov dword [eax + 0x88], edx
mov edx, dword [eax + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov byte [eax], 0x4d
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50aaed
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x54]
push ebx
push edx
push eax
push 0xc
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ab1f
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x64]
mov byte [eax], 0xc
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50ab46
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
push 0x2f
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ab78
mov ecx, dword [edi + 0x58]
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x2c]
mov byte [eax], 0x2f
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50ab9f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
push ebx
push edx
push eax
push 0xc
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50abd1
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0xc
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov ecx, dword [edi + 0x88]
jge 0x50abe2
lea eax, [ecx - 1]
mov edx, dword [edi]
cmp byte [edx + 0x49], bl
je 0x50abf0
mov eax, 0x6403fc
jmp 0x50abf9
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0xb8]
push eax
push ecx
push esi
call fcn.00508ea0
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
add esp, 0xc
cmp dword [edx + 0x30], eax
jg 0x50ac36
mov eax, dword [esp + 0x5c]
push ebx
push eax
push 1
push 0x46
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ac68
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x5c]
xor ecx, ecx
mov byte [eax], 0x46
mov word [eax + 2], cx
mov dword [eax + 4], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x4c], ebx
je 0x50acc2
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xbc]
jg 0x50ac98
mov eax, dword [esp + 0x18]
push ebx
push eax
push ecx
push 3
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ad00
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
xor edx, edx
mov byte [eax], 3
mov word [eax + 2], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
jmp 0x50acfa
mov edx, dword [esp + 0x50]
push edx
call fcn.0051ccb0
mov ecx, dword [edi]
add esp, 4
cmp byte [ecx + 0x49], bl
jne 0x50ad00
mov eax, dword [esp + 0x44]
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
movsx edx, byte [eax + 1]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 0x10]
call fcn.004cccf0
mov eax, dword [esp + 0x38]
mov byte [eax], 0xab
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50ad27
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x54]
push ebx
push edx
push eax
push 0xc
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ad59
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x64]
mov byte [eax], 0xc
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50ad7c
mov eax, dword [esp + 0x2c]
push ebx
push eax
push ebx
push 0xb
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50adaa
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov byte [eax], 0xb
mov word [eax + 2], cx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
mov dword [esp + 0x38], eax
jg 0x50add2
mov edx, dword [esp + 0x10]
push ebx
push edx
push 1
push 0x46
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ae04
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov byte [eax], 0x46
mov word [eax + 2], cx
mov dword [eax + 4], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50ae27
mov edx, dword [esp + 0x54]
push ebx
push ebx
push edx
push 0x42
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50ae55
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x50ae74
mov ecx, dword [esp + 0x64]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
mov dword [esp + 0x64], eax
lea ecx, [eax + 2]
jg 0x50ae9e
mov eax, dword [esp + 0x5c]
push ebx
push ecx
push eax
push 0x2f
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50aecc
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x5c]
mov byte [eax], 0x2f
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50aeef
mov edx, dword [esp + 0x54]
push ebx
push ebx
push edx
push 0x42
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50af1d
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.00508dd0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
add esp, 4
inc eax
push 0x10
push eax
push ecx
push esi
mov dword [esp + 0x54], eax
call fcn.004e5b70
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0xac]
push eax
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.005029b0
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
add esp, 0x2c
cmp dword [edx + 0x30], eax
jg 0x50af97
mov eax, dword [esp + 0x54]
push ebx
push ebx
push eax
push 0x42
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50afc5
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x50afe4
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x88]
sub eax, edx
mov dword [eax], ecx
lea edx, [esp + 0xb8]
push edx
mov eax, esi
call fcn.00508cb0
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
add esp, 4
cmp dword [ecx + 0x30], eax
jg 0x50b019
mov edx, dword [esp + 0x5c]
push ebx
push edx
push ebx
push 0x46
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50b047
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x5c]
xor ecx, ecx
mov byte [eax], 0x46
mov word [eax + 2], cx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50b06d
mov edx, dword [esp + 0x3c]
push ebx
push ebx
push edx
push 0x42
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
jmp 0x50b4f1
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x50b4f1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x24], 0
jne 0x50b3bf
mov edx, dword [eax]
cmp dword [edx], 1
jne 0x50b3bf
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
jne 0x50b3bf
cmp dword [eax + 0x1c], 0
jne 0x50b3bf
mov ebx, dword [eax + 0x18]
cmp dword [ebx + 0x38], 0
mov edx, dword [edx + 4]
mov dword [esp + 0x3c], ebx
jne 0x50b3bf
cmp byte [edx], 0x9f
jne 0x50b3bf
test ecx, ecx
je 0x50b3bf
mov eax, dword [esp + 0xe0]
mov eax, dword [eax + 4]
test dword [eax + 4], 0x100
je 0x50b3bf
test byte [edx + 4], 0x10
jne 0x50b3bf
mov edx, dword [ebx + 0x48]
mov ecx, 0xfff0bdc0
mov dword [esp + 0x10], ecx
test edx, edx
je 0x50b14c
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [eax + 0xc], edx
je 0x50b14c
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
add eax, 0xc
lea esp, [esp]
add eax, 0x10
inc ecx
cmp dword [eax], edx
jne 0x50b140
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x38], eax
inc eax
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x1c]
xor edx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
cmp eax, edx
je 0x50b175
mov dword [esp + 0x44], eax
jmp 0x50b17b
mov eax, esi
mov dword [esp + 0x44], esi
mov edx, dword [eax + 0x54]
mov eax, 1
shl eax, cl
test eax, edx
jne 0x50b19c
or edx, eax
mov eax, dword [esp + 0x44]
mov dword [eax + 0x54], edx
cmp ecx, 1
jne 0x50b19c
call fcn.004f1160
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 0x1c]
mov ebx, dword [esp + 0x10]
push ecx
push 0
push edx
mov eax, esi
call fcn.004eb470
mov eax, dword [esp + 0x48]
add esp, 0xc
test byte [eax + 0x24], 0x20
je 0x50b1e6
mov ecx, eax
mov eax, dword [ecx + 8]
test eax, eax
je 0x50b1e2
jmp 0x50b1d0
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x50b1e2
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50b1d0
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x50b222
test byte [eax + 0x38], 4
jne 0x50b217
movzx ecx, word [eax + 0x30]
cmp cx, word [ebx + 0x2e]
jge 0x50b217
cmp dword [eax + 0x24], 0
jne 0x50b217
test edx, edx
je 0x50b215
cmp cx, word [edx + 0x30]
jge 0x50b217
mov edx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50b1f5
mov dword [esp + 0x20], edx
test edx, edx
je 0x50b23e
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x2c]
push esi
mov dword [esp + 0x20], eax
call fcn.004f1910
add esp, 4
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
push ecx
push edx
push ebx
push 0x6d
push edi
call fcn.004cc1f0
mov ecx, dword [edi]
add esp, 0x14
cmp byte [ecx + 0x49], 0
jne 0x50b274
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50b2c1
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
je 0x50b290
mov edx, 0xfffffff7
call fcn.004cccf0
jmp 0x50b2c1
mov ecx, dword [edi + 0x88]
mov edx, dword [edi + 0x58]
dec ecx
lea ecx, [ecx + ecx*4]
cmp byte [edx + ecx*4 + 1], 0
lea ecx, [edx + ecx*4]
je 0x50b2ba
push eax
push ecx
mov eax, 0xfffffff7
mov ecx, edi
call fcn.004cce90
add esp, 8
jmp 0x50b2c1
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50b2ed
push 0
push ecx
push ebx
push 0x68
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
xor ecx, ecx
jmp 0x50b319
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x68
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50b33c
push 0
push 0
push ebx
push 0x75
mov eax, edi
call fcn.004cc1b0
add esp, 0x10
xor ecx, ecx
jmp 0x50b366
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x75
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], dl
cmp byte [esi + 0xc3], 2
jne 0x50b4b8
mov eax, dword [esp + 0x20]
cmp eax, ecx
je 0x50b399
mov ecx, dword [esp + 0x3c]
test byte [ecx + 0x24], 0x20
je 0x50b390
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x50b399
mov ecx, dword [eax]
mov eax, str._USING_COVERING_INDEX
jmp 0x50b3a0
mov ecx, 0x5e1790
mov eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
push ecx
push str.SCAN_TABLE__s_s_s
push 0
mov ebx, esi
call fcn.004cc530
add esp, 0x14
jmp 0x50b4b8
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0xdc], eax
je 0x50b40e
cmp eax, ecx
jge 0x50b3f2
mov edx, dword [esp + 0xe0]
add edx, 4
lea esp, [esp]
mov ebx, dword [edx]
test byte [ebx + 4], 0x20
jne 0x50b3f0
inc eax
add edx, 0x10
cmp eax, ecx
jl 0x50b3e0
cmp eax, ecx
jne 0x50b40e
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
push 0
push eax
push 0
push 0x46
push edi
mov dword [esp + 0x24], eax
call fcn.004cc1f0
add esp, 0x14
lea edx, [esp + 0xb8]
push edx
mov eax, esi
call fcn.00508cb0
movzx ax, byte [esp + 0x4f]
mov edx, dword [esp + 0xb8]
add esp, 4
push 0
movzx ecx, ax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edx
push eax
push ecx
push esi
call fcn.0051c2b0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x50b5ab
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xb8]
push edx
push eax
push esi
call fcn.00508ea0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x50b484
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 1
push 0x46
push edi
call fcn.004cc1f0
add esp, 0x14
cmp byte [ebx + 0x2f], 0
jle 0x50b49d
mov edx, dword [ebx + 0x24]
push 0
push edx
push 0
push 0xb
push edi
call fcn.004cc1f0
add esp, 0x14
push ebx
call fcn.0051ccb0
lea eax, [esp + 0xbc]
add esp, 4
push eax
mov ecx, esi
call fcn.00508dd0
add esp, 4
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
push 0x10
push ebx
push ecx
push esi
mov dword [esp + 0x9c], 0
call fcn.004e5b70
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push edx
push 0
push 0
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.005029b0
add esp, 0x2c
xor ebx, ebx
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x50b510
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x88]
sub eax, edx
mov dword [eax], ecx
cmp byte [esp + 0x75], 3
jne 0x50b52d
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push 0
mov ebx, esi
call fcn.004cc530
add esp, 0xc
cmp dword [esp + 0x8c], 0
je 0x50b57d
cmp dword [esp + 0x90], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x50b54b
mov eax, str.ORDER_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
mov ebx, esi
call fcn.004cc530
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push edx
push ecx
lea edx, [esp + 0x94]
push edx
push eax
push esi
call fcn.00503660
add esp, 0x14
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50b59f
mov ecx, dword [esp + 0x108]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x88]
sub eax, edx
mov dword [eax], ecx
xor edx, edx
cmp dword [esi + 0x24], edx
setg dl
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x50b5c4
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.004e1850
add esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xd4]
mov edi, dword [esp + 0x34]
mov ebx, eax
test eax, eax
je 0x50b666
cmp dword [edi + 0x1d8], 0
je 0x50b5ee
mov ecx, edi
call fcn.004ab500
jmp 0x50b666
cmp eax, dword [edi + 0x128]
jb 0x50b60e
cmp eax, dword [edi + 0x12c]
jae 0x50b60e
mov ecx, dword [edi + 0x124]
mov dword [eax], ecx
mov dword [edi + 0x124], eax
jmp 0x50b666
cmp dword [0x631928], 0
je 0x50b65c
mov eax, dword [0x640888]
test eax, eax
je 0x50b62a
push eax
call dword [0x631984]
add esp, 4
push ebx
call dword [0x631960]
sub dword [0x640828], eax
dec dword [0x64084c]
add esp, 4
push ebx
call dword [0x631958]
mov eax, dword [0x640888]
add esp, 4
test eax, eax
je 0x50b666
push eax
call dword [0x63198c]
jmp 0x50b663
push eax
call dword [0x631958]
add esp, 4
mov eax, dword [esp + 0xe0]
mov ebx, eax
test eax, eax
je 0x50b701
cmp dword [edi + 0x1d8], 0
je 0x50b689
mov ecx, edi
call fcn.004ab500
jmp 0x50b701
cmp eax, dword [edi + 0x128]
jb 0x50b6a9
cmp eax, dword [edi + 0x12c]
jae 0x50b6a9
mov edx, dword [edi + 0x124]
mov dword [eax], edx
mov dword [edi + 0x124], eax
jmp 0x50b701
cmp dword [0x631928], 0
je 0x50b6f7
mov eax, dword [0x640888]
test eax, eax
je 0x50b6c5
push eax
call dword [0x631984]
add esp, 4
push ebx
call dword [0x631960]
sub dword [0x640828], eax
dec dword [0x64084c]
add esp, 4
push ebx
call dword [0x631958]
mov eax, dword [0x640888]
add esp, 4
test eax, eax
je 0x50b701
push eax
call dword [0x63198c]
jmp 0x50b6fe
push eax
call dword [0x631958]
add esp, 4
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x50b71c
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
test eax, eax
jge 0x50b72a
mov eax, dword [ecx + 0x88]
dec eax
mov edx, dword [ecx]
cmp byte [edx + 0x49], 0
je 0x50b74b
mov eax, 0x6403fc
mov eax, dword [eax + 8]
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [eax + 8]
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret