Function at 0x5117c0
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 0x51180a
cmp dword [ebx + 0x74], esi
jne 0x5117ff
test byte [eax + 0x50], 8
jne 0x5117ff
mov byte [ebx + 0x17], 1
push ebx
call fcn.0051ae50
add esp, 4
mov esi, eax
mov edi, dword [esp + 0xf0]
test edi, edi
je 0x511830
cmp dword [ebx + 0x24], 0
jne 0x511830
push 0
push 0
push 0
push 0x15
push ebx
call fcn.004e7a40
add esp, 0x14
test eax, eax
je 0x51183f
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 0x511878
mov eax, dword [edi + 0x30]
test eax, eax
je 0x51186a
push eax
push 0x4f7eb0
push ebx
call fcn.0050b3a0
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.00514440
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x513d1b
mov eax, dword [edi + 4]
test eax, 0x800000
je 0x511906
mov edx, dword [edi + 0x20]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [edx], ecx
jle 0x5118fe
mov eax, dword [edx + 0x18]
lea ebp, [edx + 0x5c]
mov dword [esp + 0x48], eax
cmp eax, dword [ebp + 4]
jne 0x5118e8
mov edx, dword [edx + 0x14]
mov eax, dword [ebp]
test edx, edx
jne 0x5118c7
neg eax
sbb eax, eax
jmp 0x5118d9
test eax, eax
je 0x5118e1
push eax
push edx
call fcn.00515ad0
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x511b31
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 0x5118b2
mov eax, dword [edi + 4]
mov ebp, dword [esp + 0xf8]
and eax, 0xff7fffff
mov dword [edi + 4], eax
cmp byte [ebp], 9
jne 0x511916
push edi
push ebx
call fcn.004ffd30
add esp, 8
push edi
push ebx
call fcn.0052f1d0
add esp, 8
test eax, eax
jne 0x513d1b
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 0x511afc
cmp ebp, dword [edx]
jge 0x511afc
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 0x511a08
push dword [eax + 0x2c]
push dword [edi + 0x24]
call fcn.004f7800
add esp, 8
test eax, eax
je 0x511a00
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x2000
jne 0x511a00
mov eax, dword [esp + 0x14]
push dword [eax + 0x2c]
and byte [eax + 0x24], 0xd7
push dword [edi + 0x24]
call fcn.005320c0
add esp, 8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x511ae9
mov eax, dword [ebp + 0x1c]
movsx ecx, word [ecx + 0x22]
cmp ecx, dword [eax]
jne 0x511b55
mov eax, dword [ebp + 4]
test al, 8
jne 0x511ae9
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x511a70
cmp dword [edi + 0x30], 0
jne 0x511a3c
cmp dword [edx], 1
jle 0x511a70
cmp dword [ebp + 0x3c], 0
jne 0x511a70
test eax, 0x8000000
jne 0x511a70
test dword [edi + 4], 0x8000000
jne 0x511a70
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x40000
jne 0x511a70
push ecx
push eax
call fcn.004b85c0
add esp, 8
mov dword [ebp + 0x30], 0
cmp dword [ebp + 0x30], 0
mov eax, dword [esp + 0x20]
je 0x511a96
test eax, eax
jne 0x511a96
test dword [edi + 4], 0x40000
je 0x511a96
mov edx, dword [esp + 0x18]
cmp dword [edx], 1
je 0x511ae9
test byte [edx + 0x74], 0xa
jne 0x511ae9
push dword [esp + 0x24]
push eax
push edi
push ebx
call fcn.004bb4b0
add esp, 0x10
test eax, eax
je 0x511aba
cmp dword [ebx + 0x24], 0
jne 0x513d1b
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 0x513d1b
mov eax, dword [esp + 0xf8]
cmp byte [eax], 8
jbe 0x511ae9
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 0x5119a1
cmp dword [edi + 0x34], 0
je 0x511b75
push dword [esp + 0xf8]
push edi
push ebx
call fcn.004d5a20
add esp, 0xc
mov esi, eax
cmp dword [edi + 0x38], 0
jne 0x511b24
push ebx
call fcn.005222f0
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 0x511b41
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.004f3220
add esp, 0xc
jmp 0x513d1b
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.004f3220
add esp, 0x14
jmp 0x513d1b
mov eax, dword [edi + 0x24]
test eax, eax
je 0x511b98
cmp byte [eax], 0x2c
jne 0x511b98
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x8000
jne 0x511b98
push edi
push ebx
call fcn.004dd740
add esp, 8
mov ebp, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x48], eax
cmp dword [ebp], eax
jle 0x511fa9
jmp 0x511bb0
lea eax, [eax + eax*8]
lea ebp, [ebp + eax*8]
mov eax, dword [ebp + 0x40]
add ebp, 8
or eax, dword [ebp + 0x3c]
jne 0x511bdd
mov eax, dword [ebp + 8]
test eax, eax
je 0x511bdd
push dword [ebp + 4]
push 0x55b23e
push eax
push 0x14
push ebx
call fcn.004e7a40
add esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
test eax, eax
je 0x511f93
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push edi
call fcn.004cf4a0
mov eax, dword [esp + 0x18]
add esp, 8
add dword [ebx + 0xd8], eax
mov eax, dword [esp + 0x28]
test dword [eax + 0x50], 0x1000
jne 0x511c4b
test byte [ebp + 0x28], 0x80
je 0x511c2d
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x12], 0
je 0x511c4b
cmp dword [eax], 2
jge 0x511c4b
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.004ddbb0
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 0x511d6e
cmp dword [ecx], 1
je 0x511c7c
test byte [ecx + 0x74], 0xa
je 0x511d6e
test byte [ebp + 0x28], 0x80
je 0x511c8f
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x12], 0
je 0x511d6e
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.0051a430
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.00522260
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x58]
push ebx
call fcn.005117c0
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.0051b4e0
mov edx, dword [esi + 0x74]
add esp, 0x38
dec edi
jns 0x511d3c
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x511d4b
mov eax, 0x6a4314
jmp 0x511d54
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 0x511f5b
test byte [ebp + 0x28], 0x80
je 0x511dc2
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x10], eax
cmp dword [eax + 4], 0
jle 0x511dc2
push dword [eax + 4]
push dword [eax + 8]
push 0xc
push esi
call fcn.0051a3d0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
je 0x511db1
push ecx
push edx
push 0x71
push esi
call fcn.0051a3d0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0x30]
mov ax, word [eax + 0x10]
mov word [ecx + 2], ax
jmp 0x511f5b
push ebp
push ecx
call fcn.004d0d60
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x511e17
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x511dee
push ecx
push dword [eax + 0x1c]
push 0xc
push esi
call fcn.0051a3d0
mov eax, dword [esp + 0x20]
add esp, 0x10
push dword [eax + 0x2c]
push dword [ebp + 0x2c]
push 0x71
push esi
call fcn.0051a3d0
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 0x511f5b
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.0051a3d0
mov dword [esp + 0x24], eax
add esp, 0x10
inc eax
test byte [ebp + 0x28], 8
mov dword [ebp + 0x18], eax
jne 0x511e52
push 0x11
push esi
call fcn.0051a320
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.00522260
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x44]
push ebx
call fcn.005117c0
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 0x511eed
mov edx, dword [esi + 0x74]
jns 0x511ed2
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x511ee1
mov eax, 0x6a4314
jmp 0x511eea
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.0051a370
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, eax
test ecx, ecx
jns 0x511f09
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x511f18
mov eax, 0x6a4314
jmp 0x511f21
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 0x511f5b
test al, 8
jne 0x511f5b
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 0x513d1b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push edi
call fcn.004cf4a0
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 0x511bb0
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 0x51201e
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push eax
call fcn.004f7e30
add esp, 0xc
test eax, eax
jne 0x51201a
mov ecx, dword [esp + 0x60]
cmp dword [edi + 0x44], eax
jne 0x51201e
and dword [edi + 4], 0xfffffffe
push eax
push ecx
push dword [esp + 0x30]
call fcn.004f7ed0
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 0x51206b
push dword [ecx]
push 0
push eax
push ebx
call fcn.00506090
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.0051a490
add esp, 0x2c
mov dword [esp + 0xb4], eax
jmp 0x512076
mov dword [esp + 0xb4], 0xffffffff
mov ecx, dword [esp + 0xf8]
cmp byte [ecx], 0xc
jne 0x5120db
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 0x5120a8
push 0
push edx
push eax
push 0x74
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5120db
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 0x5120fa
mov ecx, 0x140
mov word [edi + 2], cx
push eax
push edi
push ebx
call fcn.004b21b0
add esp, 0xc
cmp dword [edi + 8], 0
jne 0x512139
mov ecx, dword [esp + 0xb4]
test ecx, ecx
js 0x512139
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x512125
mov eax, 0x6a4314
jmp 0x51212e
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 0x5121a8
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.00506090
add esp, 0x10
push eax
push 0
push 0
push edi
push 0x74
push esi
call fcn.0051a490
mov dword [esp + 0xb8], eax
add esp, 0x1c
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x512197
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 0x5121b0
mov byte [esp + 0x95], 0
cmp dword [esp + 0x24], 0
jne 0x5123e2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x5123e2
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 0x512201
push edi
push ebx
call fcn.0052d0c0
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.00528c50
mov ebp, eax
add esp, 0x20
test ebp, ebp
je 0x513d1b
movzx eax, word [ebp + 0x38]
cmp ax, word [edi + 2]
jge 0x512238
mov word [edi + 2], ax
cmp byte [esp + 0x36], 0
je 0x51224d
mov al, byte [ebp + 0x33]
test al, al
je 0x51224d
mov byte [esp + 0x95], al
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x51228f
test byte [ebp + 0x34], 4
movsx ecx, byte [ebp + 0x31]
mov dword [esp + 0xa4], ecx
jne 0x51226b
mov eax, dword [ebp + 0x20]
jmp 0x512279
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 0x5122a8
test edx, edx
jne 0x5122a8
push eax
push esi
call fcn.0051a9f0
add esp, 8
cmp dword [esp + 0x10], 0
je 0x5123ae
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.0052d5a0
mov ebp, dword [esp + 0x24]
push ebp
push 0
push 0xb
push esi
call fcn.0051a3d0
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 0x512310
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x512319
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.004e3d60
mov ecx, dword [esi + 0xc]
add esp, 0x20
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x512367
push ebp
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x512370
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.0051a370
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 0x5123a0
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x513c62
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x513c62
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.004e3d60
push ebp
call fcn.0052b800
add esp, 0x24
jmp 0x513c62
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x5c], 0
test ebp, ebp
je 0x5124a9
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
test eax, eax
jle 0x512420
add ecx, 0x1a
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x512412
mov eax, dword [ebp]
test eax, eax
jle 0x51243e
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 0x512430
cmp word [edi + 2], 0x42
jle 0x51244e
mov eax, 0x42
mov word [edi + 2], ax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x5124af
mov eax, dword [ebp]
cmp eax, dword [ecx]
jne 0x5124af
xor edx, edx
test eax, eax
jle 0x51248f
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 0x512470
mov ebx, dword [esp + 0xf0]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push ebp
call fcn.004f7e30
add esp, 0xc
test eax, eax
jne 0x5124af
mov dword [esp + 0x5c], 1
jmp 0x5124af
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 0x5124d6
push 0
push 0x34
push eax
call fcn.004f0ee0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x50], ebp
jmp 0x512536
cmp dword [0x69bed0], 0
je 0x512525
mov eax, dword [0x6a3fe8]
test eax, eax
je 0x5124f2
push eax
call dword [0x69bf20]
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x34
call fcn.004d4e50
mov eax, dword [0x6a3fe8]
add esp, 8
test eax, eax
je 0x51251b
push eax
call dword [0x69bf28]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x54], ebp
jmp 0x512533
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x50], ebp
jmp 0x512536
push 0x34
call dword [0x69bef0]
mov ebp, eax
mov dword [esp + 0x54], eax
add esp, 4
test ebp, ebp
je 0x512553
push 0x34
push 0
push ebp
call sub.MSVCRT.dll_memset
push ebp
push 0x4a8180
push ebx
call fcn.0050b3a0
add esp, 0x18
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x57], 0
jne 0x513d1b
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 0x5125cd
mov eax, dword [ecx]
jmp 0x5125cf
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.004f3a20
push dword [esp + 0x24]
lea eax, [esp + 0xd4]
push eax
call fcn.004f3a20
mov ecx, dword [esp + 0x58]
add esp, 0x10
test ecx, ecx
je 0x5126b7
cmp dword [esp + 0x2c], 0
je 0x51266a
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], 0x4cf350
mov dword [esp + 0x8c], edi
test eax, eax
je 0x512663
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0053a2d0
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], 0x4a91f0
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x84], 0x528b60
mov dword [esp + 0x88], 0x528b50
mov dword [esp + 0x8c], 0
mov dword [esp + 0x7c], 0
call fcn.0053a2d0
add esp, 8
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x24], eax
cmp dword [edi + 0x28], 0
jne 0x5126ee
cmp dword [edi + 0x2c], 0
jne 0x5126ee
cmp dword [ebp + 0x2c], 1
jne 0x5126ee
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebp + 0x28]
push dword [eax]
push dword [esp + 0x30]
call fcn.004d5390
add esp, 0xc
mov byte [esp + 0x37], al
jmp 0x5126f3
mov byte [esp + 0x37], 0
cmp dword [ebp + 0x2c], 0
jle 0x5127ca
mov ecx, dword [esp + 0xe0]
xor edi, edi
xor ebx, ebx
jmp 0x512710
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.004f3a20
mov eax, dword [esp + 0x1c]
add esp, 8
test dword [eax + 4], 0x1000000
je 0x51279b
mov eax, dword [eax + 0x2c]
lea ecx, [esp + 0xc8]
mov dword [esp + 0x78], 0x4a91f0
mov dword [esp + 0x7c], 0x528b60
mov dword [esp + 0x80], 0x528b50
mov eax, dword [eax + 0x28]
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x74], 0
test eax, eax
je 0x51279b
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0053a2d0
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 0x512710
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 0x513d06
cmp dword [esp + 0x2c], 0
je 0x5136c6
cmp dword [ebp + 0x2c], 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x24], 0
jne 0x512873
mov eax, dword [ebp + 0x28]
cmp dword [eax + 0xc], 0
jl 0x512873
mov eax, dword [eax]
test eax, eax
je 0x512873
test dword [eax + 4], 0x800
jne 0x512873
mov eax, dword [eax + 0x14]
test eax, eax
je 0x512873
mov eax, dword [eax + 8]
test eax, eax
je 0x51283d
push 0
push 0
push eax
push ecx
call fcn.004b7db0
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x512845
mov dword [esp + 0x10], 0
push 0
push dword [esp + 0x30]
push ecx
call fcn.004f7ed0
push dword [esp + 0x1c]
push eax
push ebx
call fcn.004f7b20
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.00506090
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 0x5128bf
push 0
push edx
push eax
push 0x76
push esi
call fcn.004ceed0
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
jmp 0x5128f9
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 0x512915
mov edx, dword [esp + 0x64]
push edx
push 0xfffffffffffffff7
push ecx
call fcn.004bbca0
add esp, 0xc
jmp 0x51294b
test edx, edx
jns 0x51291d
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 0x512940
push 0xfffffffffffffff7
push edx
push eax
push esi
call fcn.00533cd0
add esp, 0x10
jmp 0x51294b
test edx, edx
je 0x51294b
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 0x5129aa
push 0
push dword [esp + 0x40]
push 0
push 0x47
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x40]
add esp, 0x14
jmp 0x5129e4
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 0x512a0a
mov eax, dword [esp + 0x1c]
push edx
inc eax
push eax
push 0
push 0x4a
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x512a45
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 0x512a64
push 0
push dword [esp + 0x70]
push dword [esp + 0x24]
push 0xc
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x512a97
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.00528c50
mov edx, eax
add esp, 0x20
mov dword [esp + 0x24], edx
test edx, edx
jne 0x512af6
mov eax, dword [esp + 0x58]
test eax, eax
je 0x513d02
push eax
push dword [esp + 0x2c]
call fcn.004b85c0
add esp, 8
jmp 0x513d02
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 0x512b15
xor eax, eax
mov dword [esp + 0x40], eax
jmp 0x512e38
cmp byte [esp + 0x36], 0
je 0x512b27
test byte [edi + 4], 1
mov eax, str.DISTINCT
je 0x512b2c
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.00522260
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 0x512b7b
mov ecx, dword [ebp + 0x1c]
mov ebp, eax
add ecx, 0x12
movsx eax, word [ecx]
cmp eax, edx
jl 0x512b6d
inc edi
inc edx
add ecx, 0x14
dec ebp
jne 0x512b64
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x54], edi
cmp edi, 1
jne 0x512ba8
mov al, byte [ebx + 0x13]
test al, al
jne 0x512b93
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x512bd2
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x98]
mov dword [esp + 0x18], eax
jmp 0x512bd2
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x18], ecx
cmp edi, edx
jg 0x512bc3
lea eax, [edi + ecx]
sub edx, edi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], edx
jmp 0x512bd2
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.004f3fa0
xor edx, edx
add esp, 0x14
mov dword [esp + 0x44], edx
cmp dword [ebp + 0x20], edx
jle 0x512c44
mov ebx, dword [esp + 0x4c]
xor edi, edi
jmp 0x512c00
mov ecx, dword [ebp + 0x1c]
add ecx, edi
movsx eax, word [ecx + 0x12]
cmp eax, ebx
jl 0x512c2c
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.004f43c0
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 0x512c00
mov ebx, dword [esp + 0xf0]
mov edi, dword [esp + 0x54]
mov al, byte [ebx + 0x13]
test al, al
jne 0x512c53
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x512c62
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 0x512c85
push eax
push edi
push dword [esp + 0x20]
push 0x60
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x58]
add esp, 0x14
jmp 0x512cb4
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 0x512cdb
push 0
push edx
push eax
push 0x8a
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x58]
add esp, 0x14
jmp 0x512d0e
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 0x512d26
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x512d26
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edx
inc byte [ebx + 0x13]
cmp edi, 1
jne 0x512d49
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x512d58
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x512d58
movzx eax, al
mov dword [ebx + eax*4 + 0x98], ecx
inc byte [ebx + 0x13]
jmp 0x512d58
cmp edi, dword [ebx + 0x1c]
jle 0x512d58
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], eax
push dword [esp + 0x24]
call fcn.0052b800
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 0x512d80
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x512d8f
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 0x512dab
push edi
push eax
push edx
push 0x78
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x512ddd
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 0x512dfc
push 0
push dword [esp + 0x34]
push edx
push 0x24
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x512e2b
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 0x512e94
mov ecx, dword [esp + 0x28]
test byte [ecx + 0x50], 4
jne 0x512e94
test eax, eax
jne 0x512e53
test byte [edx + 0x34], 8
je 0x512e94
mov edx, dword [esi]
mov dword [esp + 0xa0], 0
cmp byte [edx + 0x57], 0
jne 0x512e94
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.004bbca0
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 0x512ec1
mov edx, dword [ebp + 4]
cmp dword [esi + 0x78], ecx
jg 0x512f05
push dword [esp + 0x54]
push dword [esp + 0x48]
push edx
push 0x84
push esi
call fcn.004ceed0
add esp, 0x14
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp dword [eax], edi
jle 0x512f98
lea ecx, [eax + 8]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx]
cmp dword [esp + 0x40], 0
je 0x512f66
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x512f36
mov eax, dword [esp + 0x20]
add eax, edi
push eax
push edi
push edx
push 0x5d
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x512f7c
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 0x512ec5
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 0x512f80
mov eax, dword [esp + 0x20]
add eax, edi
mov byte [ebp], 1
push eax
push dword [ecx]
push ebx
call fcn.004f3f00
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 0x512ee0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x512fa2
inc dword [ecx]
mov edx, dword [esi + 0x74]
mov edi, dword [eax]
cmp dword [esi + 0x78], edx
jg 0x512fc6
mov eax, dword [esp + 0x1c]
push edi
push dword [esp + 0x24]
inc eax
push eax
push 0x59
push esi
call fcn.004ceed0
add esp, 0x14
mov edx, eax
jmp 0x513001
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 0x51301b
mov edx, dword [esp + 0x64]
push edx
push 0xfffffffffffffff7
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x513051
test edx, edx
jns 0x513023
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 0x513046
push 0xfffffffffffffff7
push edx
push eax
push esi
call fcn.00533cd0
add esp, 0x10
jmp 0x513051
test edx, edx
je 0x513051
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 0x51306d
push edx
push 0
push edx
push 0x10
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x51309c
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 0x5130c9
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
push dword [esp + 0x28]
push 0x4e
push edx
call fcn.004ceed0
add esp, 0x14
jmp 0x513104
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 0x513125
mov eax, dword [esp + 0x3c]
push 0
push dword [esp + 0x74]
inc eax
push eax
push 0xc
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x51315d
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 0x51317c
push 0
push dword [esp + 0x34]
push dword [esp + 0x44]
push 0x31
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5131af
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 0x5131ce
push 0
push dword [esp + 0x70]
push dword [esp + 0x24]
push 0xc
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513201
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 0x51320b
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x51321a
mov eax, 0x6a4314
jmp 0x513223
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.00532150
mov ecx, dword [esi + 0x74]
add esp, 0x10
cmp dword [esi + 0x78], ecx
jg 0x513253
push 0
push edi
push 1
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513282
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 0x5132d6
mov ecx, dword [esi + 0x74]
mov edx, dword [ebp + 4]
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x5132a9
push 0
push edi
push edx
push 3
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513315
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 0x513315
push dword [esp + 0x24]
call fcn.0052b800
mov edx, dword [esi]
add esp, 4
cmp byte [edx + 0x57], 0
jne 0x513315
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.004bbca0
add esp, 0xc
mov word [edi], 0xb6
mov dword [edi + 0x10], 0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x51332a
push eax
push dword [esp + 0x2c]
call fcn.004b85c0
add esp, 8
mov edi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x74]
inc edi
cmp dword [esi + 0x78], ecx
jg 0x51334b
push 0
push dword [esp + 0x74]
push edi
push 0xc
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x51337a
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 0x513397
push 0
push dword [esp + 0x34]
push 0
push 0xb
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5133ca
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 0x5133eb
push 0
push dword [esp + 0x40]
push 1
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x51341e
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 0x513438
push 0
push 0
push edi
push 0x43
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513467
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 0x513485
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x51348e
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 0x5134ad
push 0
push edx
push dword [esp + 0x40]
push 0x31
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5134e3
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 0x513502
mov eax, dword [esp + 0x3c]
push 0
push 0
inc eax
push eax
push 0x43
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x51353a
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.004b95c0
push 0x10
inc edi
push edi
push dword [esp + 0x58]
push ebx
call fcn.004f6f90
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.004e3d60
mov ecx, dword [esi + 0x74]
add esp, 0x38
cmp dword [esi + 0x78], ecx
jg 0x51359d
mov eax, dword [esp + 0x3c]
push 0
push 0
inc eax
push eax
push 0x43
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5135d1
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 0x5135ef
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x5135f8
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
push ebp
push ebx
call fcn.004e0de0
mov ecx, dword [esi + 0x74]
add esp, 8
cmp dword [esi + 0x78], ecx
jg 0x51361f
push 0
push dword [esp + 0x3c]
push 0
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513652
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 0x51366f
push 0
push 0
push dword [esp + 0x24]
push 0x43
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5136a2
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 0x5136bd
mov eax, dword [ebp + 0x28]
push dword [eax + 0x10]
push dword [eax + 0xc]
push ecx
push ebx
call fcn.004b9ad0
add esp, 0x10
mov ebp, dword [esp + 0x30]
jmp 0x513c3f
cmp dword [edi + 0x24], 0
jne 0x513a2f
mov edx, dword [edi + 0x1c]
cmp dword [edx], 1
jne 0x513a2f
mov ecx, dword [edi + 0x20]
cmp dword [ecx], 1
jne 0x513a2f
cmp dword [ecx + 0x1c], 0
jne 0x513a2f
cmp dword [ebp + 0x2c], 1
jne 0x513a2f
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x38], ecx
cmp byte [ecx + 0x2b], 0
jne 0x513a2f
mov edx, dword [edx + 8]
cmp byte [edx], 0xa8
jne 0x513a2f
cmp dword [edx + 0x28], ebp
jne 0x513a2f
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 4]
test dword [eax + 4], 0x100
je 0x513a2f
test dword [edx + 4], 0x1000002
jne 0x513a2f
mov ebp, dword [ecx + 0x3c]
mov edx, 0xffff8000
mov dword [esp + 0x40], edx
test ebp, ebp
je 0x513770
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 0x513770
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ebp
jne 0x513764
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 0x513793
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 0x5137cd
or dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x54], ecx
cmp edx, 1
jne 0x5137d2
push eax
call fcn.00508740
add esp, 4
jmp 0x5137fa
cmp edx, 1
je 0x5137fa
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 0x5137fa
mov ecx, dword [esp + 0x38]
push dword [ecx]
push 0
push dword [ecx + 0x14]
push edx
push ebx
call fcn.004d3b70
add esp, 0x14
mov edx, dword [esp + 0x38]
test byte [edx + 0x1c], 0x80
je 0x513820
mov ebp, dword [edx + 8]
test ebp, ebp
je 0x513820
jmp 0x513810
mov eax, dword [ebp + 0x38]
and al, 3
cmp al, 2
je 0x513820
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x513810
mov eax, dword [edi + 0x20]
test byte [eax + 0x30], 1
jne 0x513859
mov eax, dword [edx + 8]
test eax, eax
je 0x513859
test byte [eax + 0x38], 4
jne 0x513852
movzx ecx, word [eax + 0x30]
cmp cx, word [edx + 0x28]
jge 0x513852
cmp dword [eax + 0x24], 0
jne 0x513852
test ebp, ebp
je 0x513850
cmp cx, word [ebp + 0x30]
jge 0x513852
mov ebp, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x513830
test ebp, ebp
je 0x513872
mov eax, dword [ebp + 0x2c]
push ebp
push ebx
mov dword [esp + 0x2c], eax
call fcn.00506120
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x4c], ecx
cmp dword [esi + 0x78], ecx
jg 0x51389b
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x28]
push edx
push dword [esp + 0x28]
push 0x65
push esi
call fcn.004ceed0
add esp, 0x14
mov ecx, eax
jmp 0x5138d2
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 0x5138ed
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 0x513935
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x51390b
push edx
push 0xfffffffffffffff7
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x513935
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 0x51392e
push 0xfffffffffffffff7
push edx
push eax
push esi
call fcn.00533cd0
add esp, 0x10
jmp 0x513935
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 0x51395b
push 0
push edx
push dword [esp + 0x28]
push 0x61
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513991
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 0x5139ae
push 0
push 0
push dword [esp + 0x28]
push 0x79
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5139e1
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 0x513c0a
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x513a0f
test byte [ecx + 0x1c], 0x80
je 0x513a05
mov eax, dword [ebp + 0x38]
and al, 3
cmp al, 2
je 0x513a0f
mov eax, dword [ebp]
mov edx, str._USING_COVERING_INDEX
jmp 0x513a16
mov eax, 0x55b23e
mov edx, eax
push eax
push edx
push dword [ecx]
push str.SCAN__s_s_s
push 0
push ebx
call fcn.00522260
add esp, 0x18
jmp 0x513c0a
cmp dword [ebp + 0x24], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
je 0x513af1
mov eax, dword [ebp + 0x2c]
xor ecx, ecx
test eax, eax
jle 0x513a8d
mov edi, dword [ebp + 0x28]
xor edx, edx
nop
mov eax, dword [edi + edx]
test dword [eax + 4], 0x1000000
jne 0x513a76
mov eax, dword [edi + edx + 4]
test byte [eax + 4], 0x20
jne 0x513a83
mov eax, dword [ebp + 0x2c]
inc ecx
add edx, 0x14
cmp ecx, eax
jl 0x513a60
jmp 0x513a86
mov eax, dword [ebp + 0x2c]
mov edi, dword [esp + 0xf4]
cmp ecx, eax
jne 0x513b16
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 0x513ab9
push 0
push edx
push 0
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513b16
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 0x513b16
cmp dword [ebp + 0x2c], 1
jne 0x513b16
mov eax, dword [ebp + 0x28]
cmp dword [eax + 0xc], 0
jl 0x513b16
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.004e0de0
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.00528c50
add esp, 0x28
mov dword [esp + 0x14], eax
test eax, eax
je 0x513d02
movzx eax, byte [eax + 0x33]
push eax
push ebp
push dword [esp + 0x18]
mov dword [esp + 0x58], eax
push ebx
call fcn.00532150
mov ecx, dword [esp + 0x5c]
add esp, 0x10
test ecx, ecx
je 0x513b8b
mov eax, dword [ebp + 0x28]
push dword [eax + 0x10]
push dword [eax + 0xc]
push ecx
push ebx
call fcn.004b9ad0
add esp, 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x513be3
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x513bad
push 0
push edx
push 1
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x513be3
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 0x513bf7
push dword [esp + 0x14]
push esi
call fcn.0052cae0
add esp, 8
push dword [esp + 0x14]
call fcn.0052b800
push ebp
push ebx
call fcn.004b95c0
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.004f6f90
push ebp
push ebp
push dword [esp + 0x110]
push 0
push 0
push 0xffffffffffffffff
push edi
push ebx
call fcn.004e3d60
add esp, 0x30
mov ecx, dword [esi + 0xc]
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x513c59
push ebp
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x513c62
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + ebp*4], eax
cmp byte [esp + 0x95], 3
jne 0x513c81
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.00522260
add esp, 0x10
cmp dword [esp + 0xa0], 0
je 0x513ccc
cmp dword [esp + 0xa4], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x513c9f
mov eax, str.ORDER_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.00522260
push dword [esp + 0x108]
mov eax, dword [esp + 0x74]
push dword [eax]
lea eax, [esp + 0xb8]
push eax
push edi
push ebx
call fcn.004ccc90
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 0x513ced
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x513cf6
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 0x513d1b
push eax
push ecx
call fcn.004b85c0
add esp, 8
mov ecx, dword [ebx + 0xdc]
test ecx, ecx
jne 0x513d3c
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 0x513d47
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x513d56
mov eax, 0x6a4314
jmp 0x513d5f
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