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

Disassembly:
sub esp, 0xdc
push ebx
mov ebx, dword [esp + 0xe4]
push esi
push edi
mov dword [esp + 0x64], 1
mov esi, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x24], eax
test esi, esi
jne 0x50a17a
cmp dword [ebx + 0x74], esi
jne 0x50a16f
test byte [eax + 0x50], 8
jne 0x50a16f
mov byte [ebx + 0x17], 1
push ebx
call fcn.005137c0
add esp, 4
mov esi, eax
mov edi, dword [esp + 0xf0]
test edi, edi
je 0x50a1a0
cmp dword [ebx + 0x24], 0
jne 0x50a1a0
push 0
push 0
push 0
push 0x15
push ebx
call fcn.004e03b0
add esp, 0x14
test eax, eax
je 0x50a1af
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xdc
ret
push ebp
mov ebp, dword [esp + 0xf8]
cmp byte [ebp], 6
ja 0x50a1e8
mov eax, dword [edi + 0x30]
test eax, eax
je 0x50a1da
push eax
push 0x4f0820
push ebx
call fcn.00503d10
add esp, 0xc
mov dword [edi + 0x30], 0
mov eax, dword [edi + 4]
and eax, 0xfffffffe
or eax, 0x400000
mov dword [edi + 4], eax
push 0
push edi
push ebx
call fcn.0050cdb0
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x50c68b
mov eax, dword [edi + 4]
test eax, 0x800000
je 0x50a276
mov edx, dword [edi + 0x20]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [edx], ecx
jle 0x50a26e
mov eax, dword [edx + 0x18]
lea ebp, [edx + 0x5c]
mov dword [esp + 0x48], eax
cmp eax, dword [ebp + 4]
jne 0x50a258
mov edx, dword [edx + 0x14]
mov eax, dword [ebp]
test edx, edx
jne 0x50a237
neg eax
sbb eax, eax
jmp 0x50a249
test eax, eax
je 0x50a251
push eax
push edx
call fcn.0050e440
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x50a4a1
mov eax, dword [esp + 0x48]
mov edx, dword [edi + 0x20]
inc ecx
add ebp, 0x48
mov dword [esp + 0x10], ecx
cmp ecx, dword [edx]
jl 0x50a222
mov eax, dword [edi + 4]
mov ebp, dword [esp + 0xf8]
and eax, 0xff7fffff
mov dword [edi + 4], eax
cmp byte [ebp], 9
jne 0x50a286
push edi
push ebx
call fcn.004f86a0
add esp, 8
push edi
push ebx
call fcn.00527b40
add esp, 8
test eax, eax
jne 0x50c68b
mov eax, dword [edi + 4]
xor ebp, ebp
mov edx, dword [edi + 0x20]
shr eax, 3
and eax, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
xor eax, 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 + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x20], ebp
cmp dword [edi + 0x34], ebp
jne 0x50a46c
cmp ebp, dword [edx]
jge 0x50a46c
lea eax, [ebp*8 + 1]
add eax, ebp
test byte [edx + eax*8 + 0x24], 8
mov ecx, dword [edx + eax*8 + 0x10]
lea eax, [edx + eax*8]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ecx
je 0x50a378
push dword [eax + 0x2c]
push dword [edi + 0x24]
call fcn.004f0170
add esp, 8
test eax, eax
je 0x50a370
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x2000
jne 0x50a370
mov eax, dword [esp + 0x14]
push dword [eax + 0x2c]
and byte [eax + 0x24], 0xd7
push dword [edi + 0x24]
call fcn.0052aa30
add esp, 8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x50a459
mov eax, dword [ebp + 0x1c]
movsx ecx, word [ecx + 0x22]
cmp ecx, dword [eax]
jne 0x50a4c5
mov eax, dword [ebp + 4]
test al, 8
jne 0x50a459
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x50a3e0
cmp dword [edi + 0x30], 0
jne 0x50a3ac
cmp dword [edx], 1
jle 0x50a3e0
cmp dword [ebp + 0x3c], 0
jne 0x50a3e0
test eax, 0x8000000
jne 0x50a3e0
test dword [edi + 4], 0x8000000
jne 0x50a3e0
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x40000
jne 0x50a3e0
push ecx
push eax
call fcn.004b0f30
add esp, 8
mov dword [ebp + 0x30], 0
cmp dword [ebp + 0x30], 0
mov eax, dword [esp + 0x20]
je 0x50a406
test eax, eax
jne 0x50a406
test dword [edi + 4], 0x40000
je 0x50a406
mov edx, dword [esp + 0x18]
cmp dword [edx], 1
je 0x50a459
test byte [edx + 0x74], 0xa
jne 0x50a459
push dword [esp + 0x24]
push eax
push edi
push ebx
call fcn.004b3e20
add esp, 0x10
test eax, eax
je 0x50a42a
cmp dword [ebx + 0x24], 0
jne 0x50c68b
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x18], edx
cmp byte [eax + 0x57], 0
jne 0x50c68b
mov eax, dword [esp + 0xf8]
cmp byte [eax], 8
jbe 0x50a459
mov eax, dword [edi + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa0], eax
mov ebp, dword [esp + 0x20]
inc ebp
cmp dword [edi + 0x34], 0
mov dword [esp + 0x20], ebp
je 0x50a311
cmp dword [edi + 0x34], 0
je 0x50a4e5
push dword [esp + 0xf8]
push edi
push ebx
call fcn.004ce390
add esp, 0xc
mov esi, eax
cmp dword [edi + 0x38], 0
jne 0x50a494
push ebx
call fcn.0051ac60
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xdc
ret
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50a4b1
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
push eax
push str.target_object_alias_may_not_appear_in_FROM_clause:__s
push ebx
call fcn.004ebb90
add esp, 0xc
jmp 0x50c68b
push dword [eax]
mov eax, dword [esp + 0x3c]
push dword [eax]
movsx eax, word [eax + 0x22]
push eax
push str.expected__d_columns_for__s_but_got__d
push ebx
call fcn.004ebb90
add esp, 0x14
jmp 0x50c68b
mov eax, dword [edi + 0x24]
test eax, eax
je 0x50a508
cmp byte [eax], 0x2c
jne 0x50a508
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x8000
jne 0x50a508
push edi
push ebx
call fcn.004d60b0
add esp, 8
mov ebp, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x48], eax
cmp dword [ebp], eax
jle 0x50a919
jmp 0x50a520
lea eax, [eax + eax*8]
lea ebp, [ebp + eax*8]
mov eax, dword [ebp + 0x40]
add ebp, 8
or eax, dword [ebp + 0x3c]
jne 0x50a54d
mov eax, dword [ebp + 8]
test eax, eax
je 0x50a54d
push dword [ebp + 4]
push 0x5653d3
push eax
push 0x14
push ebx
call fcn.004e03b0
add esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
test eax, eax
je 0x50a903
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push edi
call fcn.004c7e10
mov eax, dword [esp + 0x18]
add esp, 8
add dword [ebx + 0xd8], eax
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x1000
jne 0x50a5bb
test byte [ebp + 0x28], 0x80
je 0x50a59d
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x12], 0
je 0x50a5bb
cmp dword [eax], 2
jge 0x50a5bb
movzx eax, byte [ebp + 0x24]
shr eax, 5
and eax, 1
push eax
push dword [ebp + 0x2c]
push dword [edi + 0x24]
push dword [esp + 0x3c]
push ebx
call fcn.004d6520
add esp, 0x14
cmp dword [esp + 0x48], 0
mov eax, dword [ebx + 0xf8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xf8], eax
jne 0x50a6de
cmp dword [ecx], 1
je 0x50a5ec
test byte [ecx + 0x74], 0xa
je 0x50a6de
test byte [ebp + 0x28], 0x80
je 0x50a5ff
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x12], 0
je 0x50a6de
mov edi, dword [esi + 0x74]
mov eax, dword [ebx + 0x2c]
inc edi
push edi
inc eax
push 0
push eax
push 0xd
mov dword [ebx + 0x2c], eax
push esi
mov dword [ebp + 0x1c], eax
call fcn.00512da0
mov eax, dword [ebp + 0x1c]
push ebp
push str.CO_ROUTINE___S
push 1
push ebx
mov dword [ebp + 0x18], edi
mov byte [esp + 0x98], 0xd
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
call fcn.0051abd0
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x58]
push ebx
call fcn.0050a130
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x10]
mov ax, word [eax + 2]
mov word [ecx + 0x26], ax
push dword [ebp + 0x1c]
mov eax, dword [esp + 0xb4]
or dword [ebp + 0x28], 0x10
push esi
mov dword [ebp + 0x20], eax
call fcn.00513e50
mov edx, dword [esi + 0x74]
add esp, 0x38
dec edi
jns 0x50a6ac
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50a6bb
mov eax, 0x610b1c
jmp 0x50a6c4
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0xf4]
mov dword [eax + 8], edx
mov byte [ebx + 0x13], 0
mov dword [ebx + 0x1c], 0
jmp 0x50a8cb
test byte [ebp + 0x28], 0x80
je 0x50a732
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x10], eax
cmp dword [eax + 4], 0
jle 0x50a732
push dword [eax + 4]
push dword [eax + 8]
push 0xc
push esi
call fcn.00512d40
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
je 0x50a721
push ecx
push edx
push 0x71
push esi
call fcn.00512d40
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0x30]
mov ax, word [eax + 0x10]
mov word [ecx + 2], ax
jmp 0x50a8cb
push ebp
push ecx
call fcn.004c96d0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x50a787
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x50a75e
push ecx
push dword [eax + 0x1c]
push 0xc
push esi
call fcn.00512d40
mov eax, dword [esp + 0x20]
add esp, 0x10
push dword [eax + 0x2c]
push dword [ebp + 0x2c]
push 0x71
push esi
call fcn.00512d40
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x14]
mov ax, word [eax + 2]
mov word [ecx + 2], ax
jmp 0x50a8cb
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
inc eax
push eax
push 0
push 0x47
mov dword [ebx + 0x2c], eax
push esi
mov dword [ebp + 0x1c], eax
call fcn.00512d40
mov dword [esp + 0x24], eax
add esp, 0x10
inc eax
test byte [ebp + 0x28], 8
mov dword [ebp + 0x18], eax
jne 0x50a7c2
push 0x11
push esi
call fcn.00512c90
add esp, 8
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x2c]
push ebp
push str.MATERIALIZE___S
push 1
push ebx
mov byte [esp + 0x84], 0xc
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call fcn.0051abd0
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x44]
push ebx
call fcn.0050a130
mov eax, dword [esp + 0x4c]
add esp, 0x1c
mov ecx, dword [ebp + 0x10]
mov ax, word [eax + 2]
mov word [ecx + 0x26], ax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x50a85d
mov edx, dword [esi + 0x74]
jns 0x50a842
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50a851
mov eax, 0x610b1c
jmp 0x50a85a
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
push dword [ebp + 0x1c]
push 0x43
push esi
call fcn.00512ce0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, eax
test ecx, ecx
jns 0x50a879
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50a888
mov eax, 0x610b1c
jmp 0x50a891
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 4], edx
mov byte [ebx + 0x13], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [ebp + 0x28]
test al, al
jns 0x50a8cb
test al, 8
jne 0x50a8cb
mov ecx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x2c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x30]
mov ax, word [eax + 2]
mov word [ecx + 0x10], ax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x57], 0
jne 0x50c68b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push edi
call fcn.004c7e10
mov eax, dword [esp + 0x18]
add esp, 8
sub dword [ebx + 0xd8], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xf8], eax
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x18]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [ebp]
jl 0x50a520
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x48], eax
mov al, byte [edi + 4]
and al, 1
mov dword [esp + 0x60], ecx
mov byte [esp + 0x36], al
mov byte [esp + 0x94], al
mov eax, dword [edi + 4]
and al, 9
cmp al, 1
jne 0x50a98e
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push eax
call fcn.004f07a0
add esp, 0xc
test eax, eax
jne 0x50a98a
mov ecx, dword [esp + 0x60]
cmp dword [edi + 0x44], eax
jne 0x50a98e
and dword [edi + 4], 0xfffffffe
push eax
push ecx
push dword [esp + 0x30]
call fcn.004f0840
mov ecx, eax
add esp, 0xc
or dword [edi + 4], 8
mov dword [esp + 0x2c], ecx
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x50a9db
push dword [ecx]
push 0
push eax
push ebx
call fcn.004fea00
mov edx, dword [ebx + 0x28]
push 0xfffffffffffffff7
push eax
mov eax, dword [esp + 0x34]
lea ecx, [edx + 1]
mov dword [esp + 0xc0], edx
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x78]
mov eax, dword [eax]
push 0
inc eax
mov ecx, dword [ecx]
add eax, ecx
push eax
push edx
push 0x74
push esi
call fcn.00512e00
add esp, 0x2c
mov dword [esp + 0xb4], eax
jmp 0x50a9e6
mov dword [esp + 0xb4], 0xffffffff
mov ecx, dword [esp + 0xf8]
cmp byte [ecx], 0xc
jne 0x50aa4b
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
mov eax, dword [ecx + 4]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x78], ecx
jg 0x50aa18
push 0
push edx
push eax
push 0x74
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50aa4b
mov ebp, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
dec dword [ebx + 0x38]
test dword [edi + 4], 0x4000
mov eax, dword [ebx + 0x38]
mov dword [esp + 0xe8], eax
jne 0x50aa6a
mov ecx, 0x140
mov word [edi + 2], cx
push eax
push edi
push ebx
call fcn.004aab20
add esp, 0xc
cmp dword [edi + 8], 0
jne 0x50aaa9
mov ecx, dword [esp + 0xb4]
test ecx, ecx
js 0x50aaa9
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50aa95
mov eax, 0x610b1c
jmp 0x50aa9e
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
or byte [esp + 0xc0], 1
mov byte [eax], 0x76
test byte [edi + 4], 1
je 0x50ab18
mov edi, dword [ebx + 0x28]
push 0xfffffffffffffff7
push 0
push 0
lea eax, [edi + 1]
mov dword [esp + 0xa4], edi
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x100]
push dword [eax + 0x1c]
push ebx
call fcn.004fea00
add esp, 0x10
push eax
push 0
push 0
push edi
push 0x74
push esi
call fcn.00512e00
mov dword [esp + 0xb8], eax
add esp, 0x1c
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x50ab07
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0xf4]
mov byte [esp + 0x95], 3
jmp 0x50ab20
mov byte [esp + 0x95], 0
cmp dword [esp + 0x24], 0
jne 0x50ad52
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x50ad52
movzx ecx, byte [esp + 0x36]
mov edx, 0x4000
mov ax, word [edi + 4]
neg ecx
sbb ecx, ecx
and ax, dx
and ecx, 0x100
or cx, ax
movzx eax, cx
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
je 0x50ab71
push edi
push ebx
call fcn.00525a30
add esp, 8
movsx eax, word [edi + 2]
push eax
push dword [esp + 0x18]
push edi
push dword [edi + 0x1c]
push dword [esp + 0x2c]
push dword [esp + 0x54]
push ebp
push ebx
call fcn.005215c0
mov ebp, eax
add esp, 0x20
test ebp, ebp
je 0x50c68b
movzx eax, word [ebp + 0x38]
cmp ax, word [edi + 2]
jge 0x50aba8
mov word [edi + 2], ax
cmp byte [esp + 0x36], 0
je 0x50abbd
mov al, byte [ebp + 0x33]
test al, al
je 0x50abbd
mov byte [esp + 0x95], al
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x50abff
test byte [ebp + 0x34], 4
movsx ecx, byte [ebp + 0x31]
mov dword [esp + 0xa4], ecx
jne 0x50abdb
mov eax, dword [ebp + 0x20]
jmp 0x50abe9
movzx eax, byte [ebp + 0x30]
imul eax, eax, 0x58
mov eax, dword [eax + ebp + 0x2b8]
sub ecx, dword [edx]
neg ecx
mov dword [esp + 0xbc], eax
sbb ecx, ecx
and edx, ecx
mov dword [esp + 0xa0], edx
mov eax, dword [esp + 0xb4]
test eax, eax
js 0x50ac18
test edx, edx
jne 0x50ac18
push eax
push esi
call fcn.00513360
add esp, 8
cmp dword [esp + 0x10], 0
je 0x50ad1e
mov eax, dword [ebx + 0x38]
inc dword [ebx + 0x2c]
lea ecx, [eax - 1]
sub eax, 2
mov dword [esp + 0x14], eax
dec eax
push ecx
mov dword [esp + 0x14], eax
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x2c]
push eax
push ebp
push edi
push ebx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x38], eax
call fcn.00525f10
mov ebp, dword [esp + 0x24]
push ebp
push 0
push 0xb
push esi
call fcn.00512d40
mov ecx, dword [esi + 0xc]
add esp, 0x24
mov edx, dword [esp + 0x68]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50ac80
push edx
push esi
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x50ac89
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
push ebp
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x98]
push ebp
push dword [esp + 0x100]
mov dword [esp + 0xc8], 0
push eax
lea eax, [esp + 0xb0]
push eax
push 0xffffffffffffffff
push edi
push ebx
call fcn.004dc6d0
mov ecx, dword [esi + 0xc]
add esp, 0x20
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50acd7
push ebp
push esi
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x50ace0
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + ebp*4], eax
push dword [esp + 0x24]
push 0x43
push esi
call fcn.00512ce0
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov edx, dword [esp + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50ad10
push edx
push esi
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x50c5d2
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x50c5d2
push dword [ebp + 0x24]
lea eax, [esp + 0x98]
push dword [ebp + 0x20]
push dword [esp + 0x100]
push eax
lea eax, [esp + 0xb0]
push eax
push 0xffffffffffffffff
push edi
push ebx
call fcn.004dc6d0
push ebp
call fcn.00524170
add esp, 0x24
jmp 0x50c5d2
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x5c], 0
test ebp, ebp
je 0x50ae19
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
test eax, eax
jle 0x50ad90
add ecx, 0x1a
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x50ad82
mov eax, dword [ebp]
test eax, eax
jle 0x50adae
lea ecx, [ebp + 0x1a]
lea ebx, [ebx]
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x50ada0
cmp word [edi + 2], 0x42
jle 0x50adbe
mov eax, 0x42
mov word [edi + 2], ax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x50ae1f
mov eax, dword [ebp]
cmp eax, dword [ecx]
jne 0x50ae1f
xor edx, edx
test eax, eax
jle 0x50adff
mov ebx, dword [esp + 0x2c]
lea ecx, [ebp + 0x10]
mov ebp, dword [esp + 0x1c]
sub ebp, ebx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 0x14]
and al, 1
inc edx
mov byte [ecx - 0x14], al
cmp edx, dword [ebx]
jl 0x50ade0
mov ebx, dword [esp + 0xf0]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push ebp
call fcn.004f07a0
add esp, 0xc
test eax, eax
jne 0x50ae1f
mov dword [esp + 0x5c], 1
jmp 0x50ae1f
xor eax, eax
mov word [edi + 2], ax
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x50ae46
push 0
push 0x34
push eax
call fcn.004e9850
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x50], ebp
jmp 0x50aea6
cmp dword [0x606158], 0
je 0x50ae95
mov eax, dword [0x6107f0]
test eax, eax
je 0x50ae62
push eax
call dword [0x6061a8]
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x34
call fcn.004cd7c0
mov eax, dword [0x6107f0]
add esp, 8
test eax, eax
je 0x50ae8b
push eax
call dword [0x6061b0]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x54], ebp
jmp 0x50aea3
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x50], ebp
jmp 0x50aea6
push 0x34
call dword [0x606178]
mov ebp, eax
mov dword [esp + 0x54], eax
add esp, 4
test ebp, ebp
je 0x50aec3
push 0x34
push 0
push ebp
call sub.MSVCRT.dll_memset
push ebp
push 0x4a0af0
push ebx
call fcn.00503d10
add esp, 0x18
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x57], 0
jne 0x50c68b
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 0x30], eax
xor eax, eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], eax
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xd0], ebp
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x50af3d
mov eax, dword [ecx]
jmp 0x50af3f
xor eax, eax
push dword [esp + 0x60]
mov dword [ebp + 0xc], eax
lea eax, [esp + 0xcc]
push eax
mov dword [ebp + 0x18], ecx
call fcn.004ec390
push dword [esp + 0x24]
lea eax, [esp + 0xd4]
push eax
call fcn.004ec390
mov ecx, dword [esp + 0x58]
add esp, 0x10
test ecx, ecx
je 0x50b027
cmp dword [esp + 0x2c], 0
je 0x50afda
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x4c7cc0
mov dword [esp + 0x8c], edi
test eax, eax
je 0x50afd3
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00532c40
mov ecx, dword [esp + 0x50]
add esp, 8
mov eax, dword [edi + 0x24]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x78], 0x4a1b60
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x84], 0x5214d0
mov dword [esp + 0x88], 0x5214c0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x7c], 0
call fcn.00532c40
add esp, 8
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x24], eax
cmp dword [edi + 0x28], 0
jne 0x50b05e
cmp dword [edi + 0x2c], 0
jne 0x50b05e
cmp dword [ebp + 0x2c], 1
jne 0x50b05e
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebp + 0x28]
push dword [eax]
push dword [esp + 0x30]
call fcn.004cdd00
add esp, 0xc
mov byte [esp + 0x37], al
jmp 0x50b063
mov byte [esp + 0x37], 0
cmp dword [ebp + 0x2c], 0
jle 0x50b13a
mov ecx, dword [esp + 0xe0]
xor edi, edi
xor ebx, ebx
jmp 0x50b080
mov eax, dword [ebp + 0x28]
or ecx, 0x20000
mov eax, dword [edi + eax]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x14], eax
push dword [eax + 0x14]
lea eax, [esp + 0xcc]
push eax
call fcn.004ec390
mov eax, dword [esp + 0x1c]
add esp, 8
test dword [eax + 4], 0x1000000
je 0x50b10b
mov eax, dword [eax + 0x2c]
lea ecx, [esp + 0xc8]
mov dword [esp + 0x78], 0x4a1b60
mov dword [esp + 0x7c], 0x5214d0
mov dword [esp + 0x80], 0x5214c0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x74], 0
test eax, eax
je 0x50b10b
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00532c40
add esp, 8
mov ecx, dword [esp + 0xe0]
inc ebx
and ecx, 0xfffdffff
add edi, 0x14
mov dword [esp + 0xe0], ecx
cmp ebx, dword [ebp + 0x2c]
jl 0x50b080
mov ebx, dword [esp + 0xf0]
mov edi, dword [esp + 0xf4]
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x14], eax
cmp byte [ecx + 0x57], 0
jne 0x50c676
cmp dword [esp + 0x2c], 0
je 0x50c036
cmp dword [ebp + 0x2c], 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x24], 0
jne 0x50b1e3
mov eax, dword [ebp + 0x28]
cmp dword [eax + 0xc], 0
jl 0x50b1e3
mov eax, dword [eax]
test eax, eax
je 0x50b1e3
test dword [eax + 4], 0x800
jne 0x50b1e3
mov eax, dword [eax + 0x14]
test eax, eax
je 0x50b1e3
mov eax, dword [eax + 8]
test eax, eax
je 0x50b1ad
push 0
push 0
push eax
push ecx
call fcn.004b0720
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x50b1b5
mov dword [esp + 0x10], 0
push 0
push dword [esp + 0x30]
push ecx
call fcn.004f0840
push dword [esp + 0x1c]
push eax
push ebx
call fcn.004f0490
add esp, 0x18
mov dword [esp + 0x58], eax
neg eax
sbb ecx, ecx
and ecx, 0x500
mov eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp + 4], eax
inc dword [ebx + 0x28]
push dword [ebp + 0x20]
push 0
push dword [esp + 0x34]
push ebx
call fcn.004fea00
mov ecx, dword [esi + 0x74]
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x78], ecx
jg 0x50b22f
push 0
push edx
push eax
push 0x76
push esi
call fcn.004c7840
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
jmp 0x50b269
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0xf4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
mov eax, edx
cmp byte [ecx + 0x57], 0
je 0x50b285
mov edx, dword [esp + 0x64]
push edx
push 0xfffffffffffffff7
push ecx
call fcn.004b4610
add esp, 0xc
jmp 0x50b2bb
test edx, edx
jns 0x50b28d
mov eax, dword [esi + 0x74]
dec eax
mov edx, dword [esp + 0x64]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x50b2b0
push 0xfffffffffffffff7
push edx
push eax
push esi
call fcn.0052c640
add esp, 0x10
jmp 0x50b2bb
test edx, edx
je 0x50b2bb
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [ebx + 0x2c]
mov edx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x38], eax
inc eax
mov dword [esp + 0x3c], eax
lea ecx, [eax + 2]
mov eax, dword [ebx + 0x38]
dec eax
mov dword [ebx + 0x2c], ecx
mov dword [esp + 0x70], eax
dec eax
mov dword [ebx + 0x38], eax
mov dword [esp + 0x1c], ecx
add ecx, dword [edx]
mov dword [esp + 0x6c], eax
mov dword [ebx + 0x2c], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
add eax, ecx
mov dword [ebx + 0x2c], eax
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50b31a
push 0
push dword [esp + 0x40]
push 0
push 0x47
push esi
call fcn.004c7840
mov edx, dword [esp + 0x40]
add esp, 0x14
jmp 0x50b354
mov edi, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0xf4]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x74]
add edx, eax
cmp dword [esi + 0x78], ecx
jg 0x50b37a
mov eax, dword [esp + 0x1c]
push edx
inc eax
push eax
push 0
push 0x4a
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50b3b5
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0xf0]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
inc ebp
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50b3d4
push 0
push dword [esp + 0x70]
push dword [esp + 0x24]
push 0xc
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50b407
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x5c]
neg eax
push 0
sbb eax, eax
and eax, 0x200
or ax, word [esp + 0x28]
or ax, 0x40
movzx eax, ax
push eax
push 0
push dword [esp + 0x64]
push dword [esp + 0x3c]
push dword [esp + 0x54]
push dword [esp + 0x30]
push ebx
call fcn.005215c0
mov edx, eax
add esp, 0x20
mov dword [esp + 0x24], edx
test edx, edx
jne 0x50b466
mov eax, dword [esp + 0x58]
test eax, eax
je 0x50c672
push eax
push dword [esp + 0x2c]
call fcn.004b0f30
add esp, 8
jmp 0x50c672
movzx eax, byte [edx + 0x33]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
movsx eax, byte [edx + 0x31]
cmp eax, dword [ecx]
jne 0x50b485
xor eax, eax
mov dword [esp + 0x40], eax
jmp 0x50b7a8
cmp byte [esp + 0x36], 0
je 0x50b497
test byte [edi + 4], 1
mov eax, str.DISTINCT
je 0x50b49c
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.0051abd0
mov eax, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x40], 1
mov edx, dword [eax]
mov edi, edx
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edx
test eax, eax
jle 0x50b4eb
mov ecx, dword [ebp + 0x1c]
mov ebp, eax
add ecx, 0x12
movsx eax, word [ecx]
cmp eax, edx
jl 0x50b4dd
inc edi
inc edx
add ecx, 0x14
dec ebp
jne 0x50b4d4
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x54], edi
cmp edi, 1
jne 0x50b518
mov al, byte [ebx + 0x13]
test al, al
jne 0x50b503
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x50b542
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x98]
mov dword [esp + 0x18], eax
jmp 0x50b542
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x18], ecx
cmp edi, edx
jg 0x50b533
lea eax, [edi + ecx]
sub edx, edi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], edx
jmp 0x50b542
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
add eax, edi
mov dword [esp + 0x18], ecx
mov dword [ebx + 0x2c], eax
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x38]
push ebx
call fcn.004ec910
xor edx, edx
add esp, 0x14
mov dword [esp + 0x44], edx
cmp dword [ebp + 0x20], edx
jle 0x50b5b4
mov ebx, dword [esp + 0x4c]
xor edi, edi
jmp 0x50b570
mov ecx, dword [ebp + 0x1c]
add ecx, edi
movsx eax, word [ecx + 0x12]
cmp eax, ebx
jl 0x50b59c
mov eax, dword [esp + 0x18]
add eax, ebx
push eax
movsx eax, word [ecx + 0x10]
push eax
push dword [ecx + 8]
push dword [ecx]
push esi
call fcn.004ecd30
mov edx, dword [esp + 0x58]
add esp, 0x14
inc ebx
inc edx
add edi, 0x14
mov dword [esp + 0x44], edx
cmp edx, dword [ebp + 0x20]
jl 0x50b570
mov ebx, dword [esp + 0xf0]
mov edi, dword [esp + 0x54]
mov al, byte [ebx + 0x13]
test al, al
jne 0x50b5c3
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x50b5d2
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x44], eax
cmp dword [esi + 0x78], ecx
jg 0x50b5f5
push eax
push edi
push dword [esp + 0x20]
push 0x60
push esi
call fcn.004c7840
mov edx, dword [esp + 0x58]
add esp, 0x14
jmp 0x50b624
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov eax, dword [ebp + 4]
mov dword [esp + 0x4c], eax
cmp dword [esi + 0x78], ecx
jg 0x50b64b
push 0
push edx
push eax
push 0x8a
push esi
call fcn.004c7840
mov edx, dword [esp + 0x58]
add esp, 0x14
jmp 0x50b67e
mov ebp, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test edx, edx
je 0x50b696
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x50b696
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edx
inc byte [ebx + 0x13]
cmp edi, 1
jne 0x50b6b9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x50b6c8
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x50b6c8
movzx eax, al
mov dword [ebx + eax*4 + 0x98], ecx
inc byte [ebx + 0x13]
jmp 0x50b6c8
cmp edi, dword [ebx + 0x1c]
jle 0x50b6c8
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], eax
push dword [esp + 0x24]
call fcn.00524170
mov edx, dword [ebx + 0x28]
add esp, 4
mov dword [ebp + 8], edx
mov al, byte [ebx + 0x13]
inc dword [ebx + 0x28]
mov dword [esp + 0x54], edx
test al, al
jne 0x50b6f0
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x50b6ff
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x44], eax
cmp dword [esi + 0x78], ecx
jg 0x50b71b
push edi
push eax
push edx
push 0x78
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50b74d
mov ebx, dword [esp + 0xf0]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebp + 4]
cmp dword [esi + 0x78], ecx
jg 0x50b76c
push 0
push dword [esp + 0x34]
push edx
push 0x24
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50b79b
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x24]
mov eax, 1
mov byte [ebp + 1], 1
cmp dword [esp + 0x5c], 0
je 0x50b804
mov ecx, dword [esp + 0x28]
test byte [ecx + 0x50], 4
jne 0x50b804
test eax, eax
jne 0x50b7c3
test byte [edx + 0x34], 8
je 0x50b804
mov edx, dword [esi]
mov dword [esp + 0xa0], 0
cmp byte [edx + 0x57], 0
jne 0x50b804
mov eax, dword [esp + 0xb4]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
push dword [eax + ecx*4 + 0x10]
lea edi, [eax + ecx*4]
movsx eax, byte [edi + 1]
push eax
push edx
call fcn.004b4610
add esp, 0xc
mov word [edi], 0xb6
mov dword [edi + 0x10], 0
cmp dword [esp + 0x40], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x18], ecx
je 0x50b831
mov edx, dword [ebp + 4]
cmp dword [esi + 0x78], ecx
jg 0x50b875
push dword [esp + 0x54]
push dword [esp + 0x48]
push edx
push 0x84
push esi
call fcn.004c7840
add esp, 0x14
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp dword [eax], edi
jle 0x50b908
lea ecx, [eax + 8]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx]
cmp dword [esp + 0x40], 0
je 0x50b8d6
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50b8a6
mov eax, dword [esp + 0x20]
add eax, edi
push eax
push edi
push edx
push 0x5d
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50b8ec
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x54]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50b835
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], eax
jmp 0x50b8f0
mov eax, dword [esp + 0x20]
add eax, edi
mov byte [ebp], 1
push eax
push dword [ecx]
push ebx
call fcn.004ec870
add esp, 0xc
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
inc edi
mov ecx, dword [esp + 0x5c]
add ecx, 0x14
mov dword [esp + 0x5c], ecx
cmp edi, dword [eax]
jl 0x50b850
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x50b912
inc dword [ecx]
mov edx, dword [esi + 0x74]
mov edi, dword [eax]
cmp dword [esi + 0x78], edx
jg 0x50b936
mov eax, dword [esp + 0x1c]
push edi
push dword [esp + 0x24]
inc eax
push eax
push 0x59
push esi
call fcn.004c7840
add esp, 0x14
mov edx, eax
jmp 0x50b971
mov ebp, dword [esp + 0x1c]
lea eax, [edx + 1]
mov ebx, dword [esp + 0xf0]
lea ecx, [edx + edx*4]
mov dword [esi + 0x74], eax
inc ebp
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50b98b
mov edx, dword [esp + 0x64]
push edx
push 0xfffffffffffffff7
push eax
call fcn.004b4610
add esp, 0xc
jmp 0x50b9c1
test edx, edx
jns 0x50b993
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x64]
je 0x50b9b6
push 0xfffffffffffffff7
push edx
push eax
push esi
call fcn.0052c640
add esp, 0x10
jmp 0x50b9c1
test edx, edx
je 0x50b9c1
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov edi, dword [esi + 0x74]
lea edx, [edi + 1]
cmp dword [esi + 0x78], edi
jg 0x50b9dd
push edx
push 0
push edx
push 0x10
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50ba0c
mov ebp, dword [esp + 0x50]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
cmp dword [edx + 0x78], ecx
jg 0x50ba39
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
push dword [esp + 0x28]
push 0x4e
push edx
call fcn.004c7840
add esp, 0x14
jmp 0x50ba74
mov ebx, dword [esp + 0xf0]
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
inc edx
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50ba95
mov eax, dword [esp + 0x3c]
push 0
push dword [esp + 0x74]
inc eax
push eax
push 0xc
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bacd
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x50]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
inc edx
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50baec
push 0
push dword [esp + 0x34]
push dword [esp + 0x44]
push 0x31
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bb1f
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50bb3e
push 0
push dword [esp + 0x70]
push dword [esp + 0x24]
push 0xc
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bb71
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
test edi, edi
jns 0x50bb7b
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50bb8a
mov eax, 0x610b1c
jmp 0x50bb93
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
push dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
push ebp
push edi
push ebx
mov dword [eax + 8], edx
call fcn.0052aac0
mov ecx, dword [esi + 0x74]
add esp, 0x10
cmp dword [esi + 0x78], ecx
jg 0x50bbc3
push 0
push edi
push 1
push 0x47
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bbf2
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x40], 0
je 0x50bc46
mov ecx, dword [esi + 0x74]
mov edx, dword [ebp + 4]
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x50bc19
push 0
push edi
push edx
push 3
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bc85
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 3
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50bc85
push dword [esp + 0x24]
call fcn.00524170
mov edx, dword [esi]
add esp, 4
cmp byte [edx + 0x57], 0
jne 0x50bc85
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
push dword [eax + ecx*4 + 0x10]
lea edi, [eax + ecx*4]
movsx eax, byte [edi + 1]
push eax
push edx
call fcn.004b4610
add esp, 0xc
mov word [edi], 0xb6
mov dword [edi + 0x10], 0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x50bc9a
push eax
push dword [esp + 0x2c]
call fcn.004b0f30
add esp, 8
mov edi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x74]
inc edi
cmp dword [esi + 0x78], ecx
jg 0x50bcbb
push 0
push dword [esp + 0x74]
push edi
push 0xc
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bcea
mov edx, dword [esp + 0x70]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50bd07
push 0
push dword [esp + 0x34]
push 0
push 0xb
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bd3a
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x4c], ecx
cmp dword [esi + 0x78], ecx
jg 0x50bd5b
push 0
push dword [esp + 0x40]
push 1
push 0x47
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bd8e
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50bda8
push 0
push 0
push edi
push 0x43
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bdd7
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x70]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50bdf5
push edx
push esi
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x50bdfe
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov edi, dword [esi + 0x74]
lea edx, [edi + 2]
cmp dword [esi + 0x78], edi
jg 0x50be1d
push 0
push edx
push dword [esp + 0x40]
push 0x31
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50be53
mov ebx, dword [esp + 0x38]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0xf0]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50be72
mov eax, dword [esp + 0x3c]
push 0
push 0
inc eax
push eax
push 0x43
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50beaa
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x50]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
inc edx
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push ebp
push ebx
call fcn.004b1f30
push 0x10
inc edi
push edi
push dword [esp + 0x58]
push ebx
call fcn.004ef900
push dword [esp + 0x64]
lea eax, [esp + 0xb0]
push edi
push dword [esp + 0x118]
mov edi, dword [esp + 0x118]
push eax
lea eax, [esp + 0xc8]
push eax
push 0xffffffffffffffff
push edi
push ebx
call fcn.004dc6d0
mov ecx, dword [esi + 0x74]
add esp, 0x38
cmp dword [esi + 0x78], ecx
jg 0x50bf0d
mov eax, dword [esp + 0x3c]
push 0
push 0
inc eax
push eax
push 0x43
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bf41
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
inc edx
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x6c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50bf5f
push edx
push esi
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x50bf68
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
push ebp
push ebx
call fcn.004d9750
mov ecx, dword [esi + 0x74]
add esp, 8
cmp dword [esi + 0x78], ecx
jg 0x50bf8f
push 0
push dword [esp + 0x3c]
push 0
push 0x47
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50bfc2
mov edx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50bfdf
push 0
push 0
push dword [esp + 0x24]
push 0x43
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50c012
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x50c02d
mov eax, dword [ebp + 0x28]
push dword [eax + 0x10]
push dword [eax + 0xc]
push ecx
push ebx
call fcn.004b2440
add esp, 0x10
mov ebp, dword [esp + 0x30]
jmp 0x50c5af
cmp dword [edi + 0x24], 0
jne 0x50c39f
mov edx, dword [edi + 0x1c]
cmp dword [edx], 1
jne 0x50c39f
mov ecx, dword [edi + 0x20]
cmp dword [ecx], 1
jne 0x50c39f
cmp dword [ecx + 0x1c], 0
jne 0x50c39f
cmp dword [ebp + 0x2c], 1
jne 0x50c39f
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x38], ecx
cmp byte [ecx + 0x2b], 0
jne 0x50c39f
mov edx, dword [edx + 8]
cmp byte [edx], 0xa8
jne 0x50c39f
cmp dword [edx + 0x28], ebp
jne 0x50c39f
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 4]
test dword [eax + 4], 0x100
je 0x50c39f
test dword [edx + 4], 0x1000002
jne 0x50c39f
mov ebp, dword [ecx + 0x3c]
mov edx, 0xffff8000
mov dword [esp + 0x40], edx
test ebp, ebp
je 0x50c0e0
mov eax, dword [ebx]
xor edx, edx
mov dword [esp + 0x40], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ebp
je 0x50c0e0
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ebp
jne 0x50c0d4
mov dword [esp + 0x40], edx
mov eax, dword [ebx + 0x28]
xor ebp, ebp
mov dword [esp + 0x20], eax
inc eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x50c103
mov eax, ebx
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x58], ecx
mov ecx, edx
mov dword [esp + 0x10], 1
shl dword [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
test dword [esp + 0x58], ecx
jne 0x50c13d
or dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x54], ecx
cmp edx, 1
jne 0x50c142
push eax
call fcn.005010b0
add esp, 4
jmp 0x50c16a
cmp edx, 1
je 0x50c16a
mov eax, dword [ebx]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x50c16a
mov ecx, dword [esp + 0x38]
push dword [ecx]
push 0
push dword [ecx + 0x14]
push edx
push ebx
call fcn.004cc4e0
add esp, 0x14
mov edx, dword [esp + 0x38]
test byte [edx + 0x1c], 0x80
je 0x50c190
mov ebp, dword [edx + 8]
test ebp, ebp
je 0x50c190
jmp 0x50c180
mov eax, dword [ebp + 0x38]
and al, 3
cmp al, 2
je 0x50c190
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x50c180
mov eax, dword [edi + 0x20]
test byte [eax + 0x30], 1
jne 0x50c1c9
mov eax, dword [edx + 8]
test eax, eax
je 0x50c1c9
test byte [eax + 0x38], 4
jne 0x50c1c2
movzx ecx, word [eax + 0x30]
cmp cx, word [edx + 0x28]
jge 0x50c1c2
cmp dword [eax + 0x24], 0
jne 0x50c1c2
test ebp, ebp
je 0x50c1c0
cmp cx, word [ebp + 0x30]
jge 0x50c1c2
mov ebp, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50c1a0
test ebp, ebp
je 0x50c1e2
mov eax, dword [ebp + 0x2c]
push ebp
push ebx
mov dword [esp + 0x2c], eax
call fcn.004fea90
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x4c], ecx
cmp dword [esi + 0x78], ecx
jg 0x50c20b
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x28]
push edx
push dword [esp + 0x28]
push 0x65
push esi
call fcn.004c7840
add esp, 0x14
mov ecx, eax
jmp 0x50c242
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4], 0x65
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x50c25d
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 1
mov edx, dword [esp + 0x14]
test edx, edx
je 0x50c2a5
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50c27b
push edx
push 0xfffffffffffffff7
push eax
call fcn.004b4610
add esp, 0xc
jmp 0x50c2a5
mov eax, dword [esi + 0x74]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x50c29e
push 0xfffffffffffffff7
push edx
push eax
push esi
call fcn.0052c640
add esp, 0x10
jmp 0x50c2a5
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x74]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 8]
cmp dword [esi + 0x78], ecx
jg 0x50c2cb
push 0
push edx
push dword [esp + 0x28]
push 0x61
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50c301
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0xf4]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50c31e
push 0
push 0
push dword [esp + 0x28]
push 0x79
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50c351
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebx + 0xcf], 2
jne 0x50c57a
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x50c37f
test byte [ecx + 0x1c], 0x80
je 0x50c375
mov eax, dword [ebp + 0x38]
and al, 3
cmp al, 2
je 0x50c37f
mov eax, dword [ebp]
mov edx, str._USING_COVERING_INDEX
jmp 0x50c386
mov eax, 0x5653d3
mov edx, eax
push eax
push edx
push dword [ecx]
push str.SCAN__s_s_s
push 0
push ebx
call fcn.0051abd0
add esp, 0x18
jmp 0x50c57a
cmp dword [ebp + 0x24], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
je 0x50c461
mov eax, dword [ebp + 0x2c]
xor ecx, ecx
test eax, eax
jle 0x50c3fd
mov edi, dword [ebp + 0x28]
xor edx, edx
nop
mov eax, dword [edi + edx]
test dword [eax + 4], 0x1000000
jne 0x50c3e6
mov eax, dword [edi + edx + 4]
test byte [eax + 4], 0x20
jne 0x50c3f3
mov eax, dword [ebp + 0x2c]
inc ecx
add edx, 0x14
cmp ecx, eax
jl 0x50c3d0
jmp 0x50c3f6
mov eax, dword [ebp + 0x2c]
mov edi, dword [esp + 0xf4]
cmp ecx, eax
jne 0x50c486
inc dword [ebx + 0x2c]
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x78], ecx
jg 0x50c429
push 0
push edx
push 0
push 0x47
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50c486
mov edi, dword [esp + 0xf4]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50c486
cmp dword [ebp + 0x2c], 1
jne 0x50c486
mov eax, dword [ebp + 0x28]
cmp dword [eax + 0xc], 0
jl 0x50c486
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x24], eax
neg eax
sbb eax, eax
and eax, 0x500
mov dword [esp + 0x14], eax
push ebp
push ebx
call fcn.004d9750
mov al, byte [esp + 0x3f]
push 0
movzx eax, al
or ax, word [esp + 0x20]
movzx eax, ax
push eax
push 0
push dword [esp + 0x38]
push dword [esp + 0xa8]
push dword [esp + 0x5c]
push dword [esp + 0x38]
push ebx
call fcn.005215c0
add esp, 0x28
mov dword [esp + 0x14], eax
test eax, eax
je 0x50c672
movzx eax, byte [eax + 0x33]
push eax
push ebp
push dword [esp + 0x18]
mov dword [esp + 0x58], eax
push ebx
call fcn.0052aac0
mov ecx, dword [esp + 0x5c]
add esp, 0x10
test ecx, ecx
je 0x50c4fb
mov eax, dword [ebp + 0x28]
push dword [eax + 0x10]
push dword [eax + 0xc]
push ecx
push ebx
call fcn.004b2440
add esp, 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x50c553
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50c51d
push 0
push edx
push 1
push 0x47
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x50c553
mov edi, dword [esp + 0xf4]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x37], 0
je 0x50c567
push dword [esp + 0x14]
push esi
call fcn.00525450
add esp, 8
push dword [esp + 0x14]
call fcn.00524170
push ebp
push ebx
call fcn.004b1f30
add esp, 0xc
mov ebp, dword [esp + 0x30]
push 0x10
push ebp
push dword [esp + 0x50]
mov dword [esp + 0xac], 0
push ebx
call fcn.004ef900
push ebp
push ebp
push dword [esp + 0x110]
push 0
push 0
push 0xffffffffffffffff
push edi
push ebx
call fcn.004dc6d0
add esp, 0x30
mov ecx, dword [esi + 0xc]
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50c5c9
push ebp
push esi
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x50c5d2
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + ebp*4], eax
cmp byte [esp + 0x95], 3
jne 0x50c5f1
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.0051abd0
add esp, 0x10
cmp dword [esp + 0xa0], 0
je 0x50c63c
cmp dword [esp + 0xa4], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x50c60f
mov eax, str.ORDER_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.0051abd0
push dword [esp + 0x108]
mov eax, dword [esp + 0x74]
push dword [eax]
lea eax, [esp + 0xb8]
push eax
push edi
push ebx
call fcn.004c5600
add esp, 0x24
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0xe8]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50c65d
push edx
push esi
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x50c666
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
xor eax, eax
cmp dword [ebx + 0x24], eax
setg al
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x50c68b
push eax
push ecx
call fcn.004b0f30
add esp, 8
mov ecx, dword [ebx + 0xdc]
test ecx, ecx
jne 0x50c6ac
pop ebp
pop edi
xor eax, eax
mov dword [ebx + 0xdc], eax
mov eax, dword [esp + 0x60]
pop esi
pop ebx
add esp, 0xdc
ret
mov esi, dword [ebx + 8]
test ecx, ecx
jns 0x50c6b7
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x50c6c6
mov eax, 0x610b1c
jmp 0x50c6cf
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x70]
lea eax, [ecx + edx*4]
mov eax, dword [eax + 8]
pop ebp
pop edi
mov dword [ebx + 0xdc], eax
mov eax, dword [esp + 0x60]
pop esi
pop ebx
add esp, 0xdc
ret