Function at 0x489f29
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [0x510918]
xor eax, esp
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x1e4]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x1e8]
xor ecx, ecx
inc ecx
mov dword [esi + 0x1e4], eax
inc eax
mov dword [esi + 0x1e8], eax
mov eax, dword [esi]
push edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x20], eax
test edx, edx
je 0x48b25a
cmp byte [eax + 0x38], 0
jne 0x48b25a
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jne 0x48b25a
push ebx
push ebx
push ebx
push 0x15
pop edx
mov ecx, esi
call fcn.00478d24
add esp, 0xc
test eax, eax
je 0x489fbf
xor edx, edx
lea eax, [edx + 1]
jmp 0x48b25c
push 0xa
pop ecx
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
push 4
pop ecx
cmp byte [eax], cl
ja 0x489ff4
mov edx, dword [edi + 0x38]
mov ecx, dword [esp + 0x20]
call fcn.00474668
mov eax, 0xfffe
and word [edi + 6], ax
mov dword [edi + 0x38], ebx
push ebx
mov edx, edi
mov ecx, esi
call fcn.00489b09
mov eax, dword [edi + 0x38]
pop ecx
mov ecx, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], ecx
cmp dword [esi + 0x44], ebx
jne 0x48b23a
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x38], bl
jne 0x48b246
movzx eax, word [edi + 6]
shr eax, 2
and eax, 1
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.00487714
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x48a073
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
cmp dword [edi], 1
movzx eax, byte [edx]
mov edi, dword [esp + 0x4c]
jle 0x48a0cb
cmp eax, 6
je 0x48a066
cmp eax, 7
jne 0x48a0cb
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push esi
call fcn.004554e6
pop ecx
pop ecx
mov ebx, dword [esp + 0x20]
xor edx, edx
inc edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xac]
mov dword [esi + 0x1e4], ecx
test edx, edx
jne 0x48a0a6
mov ecx, dword [esp + 0x48]
cmp byte [ecx], 5
jne 0x48a0a6
push dword [esp + 0x60]
mov edx, eax
mov ecx, esi
call fcn.00487248
pop ecx
mov edx, dword [esp + 0x98]
mov ecx, ebx
call fcn.00453901
mov edx, dword [esp + 0xa4]
mov ecx, ebx
call fcn.00453901
mov eax, dword [esp + 0x68]
jmp 0x48b25c
mov dword [esp + 0x34], ebx
cmp dword [edi + 0x3c], ebx
jne 0x48a47f
mov edx, dword [esp + 0x14]
movsx eax, word [edx]
cmp dword [esp + 0x34], eax
jge 0x48a47b
mov eax, dword [esp + 0x34]
imul eax, eax, 0x48
mov dword [esp + 0x1c], eax
mov esi, dword [eax + edx + 0x1c]
mov dword [esp + 0x2c], esi
test esi, esi
mov esi, dword [esp + 0x3c]
je 0x48a46e
cmp dword [eax + edx + 0x20], 0
je 0x48a137
test byte [eax + edx + 0x2c], 4
jne 0x48a46e
push ebx
push dword [eax + edx + 0x20]
push dword [eax + edx + 0x24]
push 2
pop edx
call fcn.00467132
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x48a46a
lea edx, [esp + 0x30]
mov ecx, edi
mov dword [esp + 0x30], ebx
call fcn.004738df
mov eax, dword [esp + 0x30]
add dword [esi + 0x1e0], eax
mov eax, dword [esp + 0x2c]
mov edx, edi
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x5c]
mov ecx, esi
push dword [esp + 0x3c]
mov dword [esp + 0x30], eax
call fcn.00488d05
add esp, 0xc
test eax, eax
je 0x48a19b
cmp dword [esp + 0x24], 0
je 0x48a191
push 4
pop eax
or word [edi + 6], ax
mov dword [esp + 0x58], 1
or dword [esp + 0x34], 0xffffffff
jmp 0x48a42a
mov ecx, dword [esp + 0x14]
xor eax, eax
inc eax
cmp word [ecx], ax
jne 0x48a32f
mov edx, 0x100
test word [edi + 6], dx
jne 0x48a32f
mov eax, dword [esp + 0x20]
test word [eax + 0x34], dx
jne 0x48a32f
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
mov edx, dword [esp + 0x1c]
mov dword [edx + ecx + 0x24], eax
inc dword [esi + 0x4c]
mov edi, dword [esi + 0x4c]
or edx, 0xffffffff
mov ecx, esi
call fcn.0047c377
mov ecx, dword [esp + 0x10]
push ebx
xor edx, edx
push ebx
push ebx
inc edx
call fcn.00467132
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push dword [eax + ecx + 0x34]
mov ecx, dword [esp + 0x1c]
push 0x2c
pop edx
call fcn.00467132
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dl, 1
mov esi, eax
call fcn.0046744f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ebx
push edi
push ebx
mov dword [eax + edx + 0x20], esi
push 7
pop edx
call fcn.00467132
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dl, 1
call fcn.0046744f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + ecx + 0x24]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xe8], eax
mov al, byte [ecx + 0x1e8]
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov ebx, dword [esp + 0x14]
mov word [esp + 0xe4], 0xa
mov byte [edx + ebx + 0x30], al
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xe4]
push eax
call fcn.00489f29
mov eax, dword [esp + 0x30]
pop ecx
fld qword [eax + 0x20]
call fcn.004d6956
mov edx, dword [esp + 0x1c]
push 4
mov ecx, dword [edx + ebx + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, ebx
pop ecx
or dword [edx + eax + 0x2c], ecx
push dword [esp + 0xec]
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.00467421
pop ecx
push dword [esp + 0xf0]
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.00467438
pop ecx
xor ebx, ebx
push ebx
push edi
mov edi, dword [esp + 0x18]
push 1
push 7
pop edx
mov ecx, edi
call fcn.00467132
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push dword [eax + ecx + 0x24]
mov ecx, edi
push 4
pop eax
mov edx, eax
call fcn.00467132
lea edx, [esi - 1]
add esp, 0xc
test edx, edx
js 0x48a322
push dword [edi + 0x1c]
mov ecx, edi
call fcn.00467421
pop ecx
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
jmp 0x48a424
mov eax, dword [esi + 0x4c]
mov edx, dword [esp + 0x1c]
inc eax
push ebx
push eax
push ebx
mov dword [esi + 0x4c], eax
mov dword [edx + ecx + 0x24], eax
mov ecx, dword [esp + 0x1c]
push 7
pop edx
mov dword [esp + 0x3c], ebx
call fcn.00467132
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x24], eax
inc eax
test byte [ecx + edx + 0x2c], 2
mov dword [ecx + edx + 0x20], eax
jne 0x48a37f
mov ecx, esi
call fcn.0047488d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + edx + 0x34]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xe8], eax
mov al, byte [esi + 0x1e8]
mov word [esp + 0xe4], 9
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov byte [ecx + edx + 0x30], al
lea eax, [esp + 0xe4]
push eax
mov edx, edi
mov ecx, esi
call fcn.00489f29
fld qword [edi + 0x20]
pop ecx
call fcn.004d6956
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + edi + 0x18]
mov edi, dword [esp + 0x4c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x48a3f8
js 0x48a3f8
mov eax, dword [esp + 0x10]
mov edx, ecx
push dword [eax + 0x1c]
mov ecx, eax
call fcn.00467421
pop ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push dword [eax + ecx + 0x24]
mov ecx, dword [esp + 0x1c]
push 3
pop edx
call fcn.00467132
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.0046740a
pop ecx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x13], bl
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x38], 0
jne 0x48a073
lea edx, [esp + 0x30]
mov ecx, edi
mov dword [esp + 0x30], ebx
call fcn.004738df
mov eax, dword [esp + 0x30]
sub dword [esi + 0x1e0], eax
mov eax, dword [esp + 0x48]
mov edx, dword [edi + 0x28]
push 4
pop ecx
mov dword [esp + 0x14], edx
cmp byte [eax], cl
jbe 0x48a46a
mov eax, dword [edi + 0x38]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x34]
cmp dword [edi + 0x3c], ebx
je 0x48a0dc
mov edx, dword [esp + 0x48]
mov eax, dword [edi]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x30], ecx
mov cl, byte [edi + 6]
and cl, 1
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1b], cl
mov byte [esp + 0xb0], cl
cmp dword [edi + 0x3c], ebx
je 0x48a506
cmp dword [edi + 0x44], ebx
jne 0x48a4e9
mov ecx, ebx
mov eax, edi
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], edi
mov ebx, eax
mov eax, dword [eax + 0x3c]
inc ecx
test eax, eax
jne 0x48a4b9
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0x60], eax
je 0x48a4e9
cmp ecx, dword [ebx + 0x60]
jle 0x48a4e9
push str.too_many_terms_in_compound_SELECT
push esi
call fcn.004554e6
pop ecx
pop ecx
jmp 0x48a077
push edx
mov edx, edi
mov ecx, esi
call fcn.0048790e
pop ecx
mov ecx, dword [esp + 0xac]
mov dword [esi + 0x1e4], ecx
jmp 0x48b25c
mov edx, dword [esp + 0x28]
mov ecx, eax
call fcn.004768f2
test eax, eax
jne 0x48a52f
mov eax, dword [esp + 0x20]
push 4
pop ecx
test byte [eax + 0x34], cl
mov ecx, dword [esp + 0x28]
push 0
pop eax
cmove ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x48a533
mov ecx, dword [esp + 0x28]
mov al, byte [edi + 6]
xor edx, edx
and al, 5
inc edx
cmp al, dl
jne 0x48a56f
mov edx, dword [edi]
call fcn.004768f2
test eax, eax
jne 0x48a56f
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov eax, 0xfffe
and word [edi + 6], ax
push ebx
call fcn.0047419b
mov dword [esp + 0x20], eax
mov dword [edi + 0x30], eax
mov eax, ebx
pop ecx
mov dword [esp + 0x28], eax
jmp 0x48a573
mov eax, dword [esp + 0x28]
test eax, eax
je 0x48a5b4
mov edx, eax
mov ecx, esi
call fcn.00486c06
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esi + 0x48]
mov dword [edx + 4], eax
inc dword [esi + 0x48]
mov eax, dword [edx]
push 0xfffffffffffffff0
push ecx
mov ecx, dword [esp + 0x18]
push ebx
add eax, 2
push eax
push dword [edx + 4]
push 0x2a
pop edx
call fcn.00467183
add esp, 0x14
mov dword [esp + 0x38], eax
mov dword [edi + 0x18], eax
jmp 0x48a5b9
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x48]
cmp byte [eax], 9
jne 0x48a5db
mov ecx, dword [esp + 0x60]
push ebx
push dword [ecx]
mov ecx, dword [esp + 0x18]
push dword [eax + 4]
push 0x2a
pop edx
call fcn.00467132
add esp, 0xc
mov ecx, dword [esp + 0x10]
call fcn.00467230
movsd xmm0, qword [0x4feff8]
push eax
mov edx, edi
mov ecx, esi
mov dword [esp + 0xc0], eax
movsd qword [edi + 0x20], xmm0
call fcn.00487748
pop ecx
mov ecx, dword [esp + 0x10]
cmp dword [edi + 8], ebx
jne 0x48a623
mov eax, dword [esp + 0x38]
test eax, eax
js 0x48a623
mov edx, eax
call fcn.004676eb
mov byte [eax], 0x2b
or word [edi + 6], 0x40
test byte [edi + 6], 1
je 0x48a689
mov esi, dword [esi + 0x48]
mov ecx, dword [esp + 0x3c]
lea eax, [esi + 1]
mov dword [ecx + 0x48], eax
mov edx, dword [edi]
mov dword [esp + 0xb4], esi
call fcn.00486c06
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push esi
push 0x2a
pop edx
mov edi, eax
call fcn.00467132
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov esi, eax
push 0xfffffffffffffff0
push edi
mov edx, esi
call fcn.004675b9
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov dl, 8
mov dword [esp + 0xb8], esi
call fcn.0046744f
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
push 3
pop eax
jmp 0x48a68b
mov al, bl
cmp dword [esp + 0x58], 0
mov edx, dword [esp + 0x1c]
mov byte [esp + 0xb1], al
mov dword [esp + 0x70], eax
jne 0x48a78c
test edx, edx
jne 0x48a78c
cmp byte [esp + 0x1b], dl
je 0x48a6b7
mov eax, dword [edi]
jmp 0x48a6b9
mov eax, ebx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push eax
push dword [esp + 0x34]
mov ecx, esi
push dword [esp + 0x54]
call fcn.00492dec
mov edx, eax
add esp, 0x14
mov dword [esp + 0x30], edx
test edx, edx
je 0x48b24a
movsd xmm1, qword [edx + 0x30]
movsd xmm0, qword [edi + 0x20]
comisd xmm0, xmm1
jbe 0x48a6f5
movsd qword [edi + 0x20], xmm1
mov eax, dword [esp + 0x70]
mov cl, byte [edx + 0xe]
movzx eax, al
mov dword [esp + 0x70], eax
movzx eax, cl
test cl, cl
mov ecx, dword [esp + 0x70]
cmovne ecx, eax
mov dword [esp + 0x70], ecx
mov byte [esp + 0xb1], cl
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x48a736
movzx eax, word [edx + 8]
and dword [esp + 0x24], 0
cmp eax, dword [ecx]
cmove ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x38]
test eax, eax
js 0x48a759
test ecx, ecx
jne 0x48a759
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.0046758b
or dword [edi + 0x18], 0xffffffff
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push dword [edx + 0x18]
lea eax, [esp + 0xb4]
push dword [edx + 0x14]
mov edx, edi
push dword [esp + 0x50]
push eax
push ecx
push ebx
push ebx
push dword [esp + 0x7c]
mov ecx, esi
call fcn.004867ae
mov ecx, dword [esp + 0x50]
add esp, 0x20
call fcn.0049371a
jmp 0x48b1da
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
test edx, edx
je 0x48a810
mov eax, dword [edi]
mov esi, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov eax, esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x3c]
test eax, eax
jle 0x48a7d9
mov ecx, dword [esp + 0x40]
add ecx, 0x16
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
xor edi, edi
dec eax
mov word [esi], di
lea esi, [esi + 0x18]
test eax, eax
jg 0x48a7c4
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
mov eax, dword [edx]
mov edx, dword [edx + 8]
test eax, eax
jle 0x48a7f6
add edx, 0x16
xor ecx, ecx
dec eax
mov word [edx], cx
lea edx, [edx + 0x18]
test eax, eax
jg 0x48a7e5
mov ecx, dword [esp + 0x10]
movsd xmm0, qword [edi + 0x20]
movsd xmm1, qword [0x4fef80]
comisd xmm0, xmm1
jbe 0x48a81d
movsd qword [edi + 0x20], xmm1
jmp 0x48a81d
movsd xmm0, qword [0x4fef30]
movsd qword [edi + 0x20], xmm0
call fcn.00467230
mov dword [esp + 0x6c], eax
xor eax, eax
push 8
pop ecx
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0x84]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xd0], eax
test edi, edi
je 0x48a868
mov eax, dword [edi]
inc eax
mov dword [esp + 0x90], eax
jmp 0x48a86f
mov dword [esp + 0x90], ebx
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x94], edi
call fcn.00476c64
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc4]
call fcn.00476c64
mov eax, dword [esp + 0x30]
test eax, eax
je 0x48a8ac
mov edx, eax
lea ecx, [esp + 0xc4]
call fcn.00476c37
cmp dword [esp + 0xa8], 0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
jle 0x48a916
mov al, byte [esp + 0xe0]
mov esi, ebx
mov edi, ebx
or al, 8
mov byte [esp + 0xe0], al
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0xc4]
mov edx, dword [eax + esi]
mov edx, dword [edx + 0x10]
call fcn.00476c64
mov al, byte [esp + 0xe0]
and al, 0xf7
inc edi
mov byte [esp + 0xe0], al
lea esi, [esi + 0x10]
cmp edi, dword [esp + 0xa8]
jl 0x48a8cf
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x38], 0
jne 0x48a073
test edi, edi
je 0x48af42
mov eax, dword [esi + 0x48]
mov dword [esp + 0x88], eax
inc eax
mov edx, edi
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00486c06
mov edi, dword [esp + 0x10]
push 0xfffffffffffffff0
push eax
push ebx
push dword [esp + 0x9c]
mov ecx, edi
push dword [esp + 0x98]
mov dword [esp + 0x8c], eax
push 0x2b
pop edx
call fcn.00467183
add esp, 0x14
inc dword [esi + 0x4c]
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x64], eax
inc eax
mov dword [esp + 0x34], eax
inc eax
mov ecx, edi
mov dword [esi + 0x4c], eax
call fcn.00467230
inc dword [esi + 0x4c]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x4c]
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.00467230
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
lea eax, [ecx + 1]
add ecx, dword [edx]
push ebx
push dword [esp + 0x38]
mov dword [esp + 0x84], eax
lea eax, [ecx + 1]
mov dword [esi + 0x4c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [edx]
push ebx
add eax, ecx
push 7
pop edx
mov ecx, edi
mov dword [esi + 0x4c], eax
call fcn.00467132
add esp, 0xc
mov ecx, edi
push ebx
push dword [esp + 0x68]
push ebx
push 7
pop edx
call fcn.00467132
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ecx]
mov ecx, dword [esp + 0x7c]
dec eax
add eax, ecx
push eax
push ecx
push ebx
push 0xa
pop edx
mov ecx, edi
call fcn.00467132
add esp, 0xc
push ebx
push dword [esp + 0x54]
push dword [esp + 0x48]
push 2
pop edx
mov ecx, edi
call fcn.00467132
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, esi
push ebx
push ebx
push ebx
push dword [esp + 0x28]
push dword [esp + 0x54]
call fcn.00492dec
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
je 0x48a073
movzx eax, word [eax + 8]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx]
jne 0x48aa61
mov dword [esp + 0x2c], ebx
jmp 0x48ac62
cmp byte [esp + 0x1b], 0
je 0x48aa77
mov edx, dword [esp + 0x4c]
test byte [edx + 6], 1
mov edx, str.DISTINCT
je 0x48aa7c
mov edx, str.GROUP_BY
mov ecx, esi
call fcn.00486cc8
xor eax, eax
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x54], eax
inc eax
mov dword [esp + 0x68], eax
mov ecx, eax
mov dword [esp + 0x38], eax
mov edx, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x48aacd
mov eax, dword [esp + 0x98]
add eax, 0xc
cmp dword [eax], edx
jl 0x48aac0
inc ecx
inc edx
add eax, 0x18
dec dword [esp + 0x44]
jne 0x48aaba
mov dword [esp + 0x38], ecx
mov edx, ecx
mov ecx, esi
call fcn.00476ce8
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.0047550a
mov edx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x78]
mov ecx, esi
call fcn.00476245
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x5c]
push ebx
push eax
push dword [esp + 0x98]
mov ecx, edi
push 0x37
pop edx
call fcn.00467132
add esp, 0x14
cmp dword [esp + 0x9c], 0
mov dword [esp + 0x5c], ebx
jle 0x48abaf
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
add edx, ecx
mov dword [esp + 0x44], edx
mov eax, ebx
mov dword [esp + 0x54], ebx
mov edi, dword [esp + 0x98]
cmp dword [edi + eax + 0xc], ecx
mov edi, dword [esp + 0x10]
jl 0x48ab92
mov ecx, dword [esp + 0x98]
push ebx
push edx
push dword [ecx + eax + 4]
mov edx, dword [ecx + eax]
push dword [ecx + eax + 8]
mov ecx, esi
call fcn.00475470
mov edx, dword [esp + 0x54]
add esp, 0x10
cmp edx, eax
je 0x48ab80
push ebx
push edx
push eax
push 0xf
pop edx
mov ecx, edi
call fcn.00467132
mov edx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x54]
inc ecx
inc edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x44], edx
mov esi, dword [esp + 0x5c]
inc esi
add eax, 0x18
cmp esi, dword [esp + 0x9c]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
jl 0x48ab35
mov ecx, esi
call fcn.00476c98
mov esi, eax
push esi
push dword [esp + 0x3c]
mov ecx, edi
push dword [esp + 0x7c]
push 0x1f
pop edx
call fcn.00467132
add esp, 0xc
mov ecx, edi
push ebx
push esi
push dword [esp + 0x90]
push 0x60
pop edx
call fcn.00467132
mov edx, esi
mov esi, dword [esp + 0x48]
add esp, 0xc
mov ecx, esi
call fcn.00476cb4
push dword [esp + 0x38]
mov edx, dword [esp + 0x78]
call fcn.00476d13
pop ecx
mov ecx, dword [esp + 0x24]
call fcn.0049371a
mov edx, dword [esi + 0x48]
mov ecx, esi
lea eax, [edx + 1]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x8c], edx
mov dword [esi + 0x48], eax
call fcn.00476c98
push dword [esp + 0x38]
mov ecx, edi
push eax
push edx
push 0x2c
pop edx
mov dword [esp + 0x60], eax
call fcn.00467132
add esp, 0xc
mov ecx, edi
push ebx
push dword [esp + 0x70]
push dword [esp + 0x90]
push 0x46
pop edx
call fcn.00467132
add esp, 0xc
mov ecx, esi
mov byte [esp + 0x85], 1
call fcn.0047550a
mov eax, dword [edi + 0x1c]
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.0047550a
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x48ac95
push ebx
push dword [esp + 0x58]
mov ecx, edi
push dword [esp + 0x90]
push 0x3e
pop edx
call fcn.00467132
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, ebx
mov dword [esp + 0x38], ebx
cmp dword [ecx], ebx
jle 0x48ad09
mov ebx, dword [esp + 0x5c]
test eax, eax
mov eax, dword [esp + 0x58]
je 0x48acd4
add eax, edx
push eax
push edx
push ebx
push 0x1d
pop edx
mov ecx, edi
call fcn.00467132
mov edx, dword [esp + 0x44]
add esp, 0xc
test edx, edx
jne 0x48acf6
mov dl, 0x20
mov ecx, edi
call fcn.0046744f
jmp 0x48acf2
add eax, edx
push eax
mov eax, edx
imul eax, eax, 0x18
mov byte [esp + 0x88], 1
mov edx, dword [ecx + 8]
mov ecx, esi
mov edx, dword [eax + edx]
call fcn.00476126
pop ecx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x38], edx
cmp edx, dword [ecx]
jl 0x48aca7
xor ebx, ebx
push 0xfffffffffffffffa
push dword [esp + 0x7c]
push dword [ecx]
mov ecx, edi
push dword [esp + 0x64]
push dword [esp + 0x8c]
push 0x18
pop edx
call fcn.00467183
mov eax, dword [edi + 0x1c]
add esp, 0x14
mov dword [esp + 0x78], eax
inc eax
push eax
push ebx
push eax
push 0x19
pop edx
mov ecx, edi
call fcn.00467132
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x64]
add esp, 0xc
push dword [eax]
mov ecx, esi
push dword [esp + 0x80]
call fcn.0047552e
mov eax, dword [esp + 0x3c]
push ebx
push dword [esp + 0x8c]
inc eax
push eax
push 2
pop edx
mov ecx, edi
call fcn.00467132
add esp, 0x14
mov ecx, edi
push ebx
push dword [esp + 0x70]
push dword [esp + 0x3c]
push 0x78
pop edx
call fcn.00467132
add esp, 0xc
mov ecx, edi
push ebx
push dword [esp + 0x54]
push dword [esp + 0x48]
push 2
pop edx
call fcn.00467132
mov edx, dword [esp + 0x84]
add esp, 0xc
test edx, edx
js 0x48adb6
push dword [edi + 0x1c]
mov ecx, edi
call fcn.00467421
pop ecx
lea edx, [esp + 0x84]
mov ecx, esi
call fcn.00489cad
push ebx
push dword [esp + 0x68]
mov ecx, edi
push 1
push 7
pop edx
call fcn.00467132
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x48adfb
push ebx
push dword [esp + 0x48]
mov ecx, edi
push dword [esp + 0x90]
push 0x51
pop edx
call fcn.00467132
add esp, 0xc
jmp 0x48ae12
mov ecx, dword [esp + 0x24]
call fcn.0049371a
mov edx, dword [esp + 0xc0]
mov ecx, edi
call fcn.0046758b
mov esi, dword [esp + 0x34]
push ebx
push dword [esp + 0x84]
lea eax, [esi + 1]
push eax
push 2
pop edx
mov ecx, edi
call fcn.00467132
add esp, 0xc
xor edx, edx
push ebx
push dword [esp + 0x70]
inc edx
push ebx
mov ecx, edi
call fcn.00467132
mov edi, dword [edi + 0x1c]
add esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push 1
push 7
pop edx
mov ecx, esi
call fcn.00467132
mov eax, dword [esp + 0x40]
add esp, 0xc
inc eax
push ebx
push ebx
push eax
push 3
pop edx
mov ecx, esi
call fcn.00467132
mov edx, dword [esp + 0x8c]
add esp, 0xc
mov ecx, esi
call fcn.0046726c
mov esi, dword [esi + 0x1c]
push ebx
lea eax, [esi + 2]
push eax
push dword [esp + 0x6c]
push 0x78
pop edx
call fcn.00467132
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
inc eax
push ebx
push ebx
push eax
push 3
pop edx
call fcn.00467132
mov ecx, dword [esp + 0x48]
add esp, 0xc
lea edx, [esp + 0x84]
call fcn.00489c5e
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
inc esi
push 8
push esi
call fcn.0047657f
push edi
mov edi, dword [esp + 0x58]
push esi
push dword [esp + 0x58]
mov esi, dword [esp + 0x50]
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x40]
mov edx, edi
push ebx
push ebx
push dword [edi]
mov ecx, esi
call fcn.004867ae
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
inc eax
push eax
push 3
pop edx
call fcn.00467132
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x44]
add esp, 0x34
call fcn.0046726c
lea edx, [esp + 0x84]
mov ecx, esi
call fcn.00489b86
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push dword [esp + 0x48]
push 3
pop edx
call fcn.00467132
add esp, 0xc
jmp 0x48b1cd
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x84]
mov ecx, edi
mov dword [esp + 0x64], ebx
call fcn.004892f5
mov dword [esp + 0x2c], eax
test eax, eax
je 0x48b08b
mov edx, dword [eax + 0x40]
mov ecx, dword [esi]
call fcn.00485b25
mov ecx, dword [esp + 0x2c]
mov edx, eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x40], eax
inc eax
mov dword [esi + 0x48], eax
mov eax, dword [ecx + 0x20]
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
call fcn.0047c377
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push dword [eax]
mov ecx, esi
push ebx
push dword [eax + 0x20]
call fcn.00478da8
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x48b00f
mov edi, ebx
push 4
pop eax
test byte [ecx + 0x2c], al
jne 0x48afd6
test edi, edi
je 0x48afd4
mov ax, word [ecx + 0x28]
cmp ax, word [edi + 0x28]
jae 0x48afd6
mov edi, ecx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x48afbe
mov dword [esp + 0x50], edi
test edi, edi
mov edi, dword [esp + 0x4c]
je 0x48b00f
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
movzx ecx, word [edx + 0x28]
movsx eax, word [eax + 0x26]
cmp ecx, eax
jge 0x48b00f
mov eax, dword [edx + 0x24]
mov ecx, esi
mov dword [esp + 0x54], eax
call fcn.0047c6e1
mov dword [esp + 0x5c], eax
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x58]
push dword [esp + 0x48]
push 0x27
pop edx
call fcn.00467132
mov eax, dword [esp + 0x68]
add esp, 0xc
test eax, eax
je 0x48b043
mov ecx, dword [esp + 0x10]
push 0xfffffffffffffff0
push eax
or edx, 0xffffffff
call fcn.004675b9
pop ecx
pop ecx
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x10]
push ebx
push dword [eax + 8]
push dword [esp + 0x48]
push 0x20
pop edx
call fcn.00467132
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push dword [esp + 0x48]
push 0x2d
pop edx
call fcn.00467132
mov edx, dword [esp + 0x38]
add esp, 0xc
mov ecx, esi
push dword [esp + 0x50]
call fcn.00489eba
pop ecx
jmp 0x48b18c
mov eax, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x1b], bl
cmp dword [edi + 0x34], ebx
jne 0x48b0fd
lea edx, [esp + 0x40]
lea ecx, [esp + 0x84]
call fcn.0048928c
mov byte [esp + 0x1b], al
test al, al
je 0x48b0f5
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
push ebx
call fcn.0047419b
mov edx, eax
pop ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], edx
test edx, edx
je 0x48b0fd
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x38], 0
jne 0x48b0fd
cmp byte [esp + 0x1b], 1
mov eax, dword [edx + 8]
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov byte [eax], 0x98
jmp 0x48b0fd
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], eax
lea edx, [esp + 0x84]
mov ecx, esi
call fcn.00489b86
mov al, byte [esp + 0x1b]
mov edx, dword [esp + 0x14]
push ebx
movzx eax, al
push eax
push ebx
push dword [esp + 0x5c]
mov ecx, esi
push dword [esp + 0x54]
call fcn.00492dec
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
jne 0x48b147
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
mov ecx, ebx
call fcn.00474668
jmp 0x48a077
lea edx, [esp + 0x84]
mov ecx, esi
call fcn.00489cad
mov eax, dword [esp + 0x24]
cmp word [eax + 8], bx
jbe 0x48b177
mov ecx, dword [esp + 0x10]
push ebx
push dword [eax + 0x18]
xor edx, edx
push ebx
inc edx
call fcn.00467132
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, eax
call fcn.0049371a
lea edx, [esp + 0x84]
mov ecx, esi
call fcn.00489c5e
mov edx, dword [esp + 0x30]
push 8
push dword [esp + 0x70]
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.0047657f
mov eax, dword [esp + 0x74]
push eax
push eax
push dword [esp + 0x58]
mov edx, edi
push ebx
push ebx
push ebx
push ebx
push dword [edi]
mov ecx, esi
call fcn.004867ae
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x48]
add esp, 0x28
call fcn.00474668
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
call fcn.0046726c
mov eax, dword [esp + 0x70]
cmp al, 3
jne 0x48b1ee
mov edx, str.DISTINCT
mov ecx, esi
call fcn.00486cc8
cmp dword [esp + 0x28], 0
je 0x48b21b
mov edx, str.ORDER_BY
mov ecx, esi
call fcn.00486cc8
push dword [esp + 0x48]
mov eax, dword [esp + 0x64]
mov edx, edi
push dword [eax]
mov ecx, esi
push dword [esp + 0x18]
call fcn.00486d7d
add esp, 0xc
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x10]
call fcn.0046726c
mov edx, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x68], edx
jmp 0x48a07a
mov ebx, dword [esp + 0x20]
xor edx, edx
inc edx
jmp 0x48a07e
mov ebx, ecx
jmp 0x48b252
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
xor edx, edx
inc edx
jmp 0x48a07e
mov eax, ecx
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a2964
mov esp, ebp
pop ebp
ret