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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x22c]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x230]
push edi
mov edi, dword [esi]
mov dword [esi + 0x22c], eax
add eax, 1
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esi + 0x230], eax
mov dword [esp + 0x34], edi
je 0x587e92
cmp byte [edi + 0x1e], 0
jne 0x587e92
cmp dword [esi + 0x40], 0
jne 0x587e92
push 0
push 0
push 0
push 0x15
mov eax, esi
call fcn.0056fe50
add esp, 0x10
test eax, eax
jne 0x587e92
push 0x2c
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.005e6f30
mov edx, dword [ebp + 0x10]
add esp, 0xc
cmp byte [edx], 4
ja 0x586b7c
mov eax, dword [ebx + 0x18]
push eax
call fcn.00569f90
add esp, 4
and word [ebx + 6], 0xfffe
mov dword [ebx + 0x18], 0
push 0
push ebx
push esi
call fcn.005862d0
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 8]
mov eax, dword [ebx]
add esp, 0xc
cmp dword [esi + 0x40], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], eax
jne 0x587e36
mov ecx, edi
cmp byte [ecx + 0x1e], 0
jne 0x587e36
mov edx, ebx
movzx eax, byte [edx + 6]
shr eax, 2
and eax, 1
mov edi, esi
mov dword [esp + 0x3c], eax
call fcn.00583190
mov ebx, eax
test ebx, ebx
je 0x587e36
mov edx, dword [esp + 0x4c]
cmp dword [edx], 1
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ecx]
jle 0x586bfe
cmp eax, 6
je 0x586bec
cmp eax, 7
jne 0x586bfe
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
call fcn.005454f0
add esp, 4
jmp 0x587e36
mov edi, dword [ebp + 0xc]
xor eax, eax
cmp dword [edi + 0x1c], eax
mov dword [esp + 0x2c], eax
jne 0x586d76
mov ecx, dword [esp + 0x54]
jmp 0x586c1a
mov eax, dword [esp + 0x2c]
movsx edx, word [ecx]
cmp eax, edx
jge 0x586d76
lea edx, [eax*8]
sub edx, eax
lea eax, [ecx + edx*8 + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x20], eax
je 0x586d67
mov eax, dword [esp + 0x5c]
cmp byte [eax + 0x14], 0
jne 0x586d67
mov ecx, edi
call fcn.00569040
add dword [esi + 0x220], eax
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx + 6]
mov edx, dword [esp + 0x3c]
shr eax, 2
and eax, 1
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
push edx
push eax
push esi
mov ecx, edi
call fcn.00585430
add esp, 0x10
test eax, eax
je 0x586cad
cmp dword [esp + 0x40], 0
je 0x586ca0
or word [edi + 6], 4
mov dword [esp + 0x3c], 1
mov dword [esp + 0x2c], 0xffffffff
jmp 0x586d33
mov edi, dword [esp + 0x5c]
mov eax, dword [edi + 0x18]
mov cl, byte [esi + 0x230]
mov dword [esp + 0xd4], eax
xor eax, eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xd0]
push edx
push eax
mov byte [esp + 0xd8], 9
mov byte [esp + 0xd9], 0
push esi
mov byte [edi + 0x17], cl
call fcn.00586ad0
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
or eax, 0xc00
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0xc]
mov byte [edi + 0x14], 1
fld qword [ecx + 0x48]
fldcw word [esp + 0x40]
fistp qword [esp + 0xa0]
mov edx, dword [esp + 0xa0]
mov dword [eax + 0x18], edx
fldcw word [esp + 0xc]
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x1e], 0
jne 0x587e36
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00569040
sub dword [esi + 0x220], eax
mov edx, dword [ebp + 0x10]
cmp byte [edx], 4
mov ecx, dword [edi + 8]
mov dword [esp + 0x54], ecx
jbe 0x586d67
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], eax
add dword [esp + 0x2c], 1
cmp dword [edi + 0x1c], 0
je 0x586c16
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 6]
mov dword [esp + 0x64], ecx
mov ecx, eax
and ecx, 1
cmp dword [edi + 0x1c], 0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], ecx
je 0x586e07
cmp dword [edi + 0x24], 0
jne 0x586de5
xor ecx, ecx
xor ebx, ebx
mov eax, edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edi
mov ecx, eax
mov eax, dword [eax + 0x1c]
add ebx, 1
test eax, eax
jne 0x586db0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x58]
test eax, eax
je 0x586de5
cmp ebx, eax
jle 0x586de5
push str.too_many_terms_in_compound_SELECT
mov edi, esi
call fcn.005454f0
add esp, 4
jmp 0x587e36
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
call fcn.005833c0
mov ecx, dword [esp + 0xa8]
add esp, 0xc
mov dword [esi + 0x22c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and al, 5
cmp al, 1
jne 0x586e2a
push 0
push edx
mov edx, dword [esp + 0x3c]
push edx
call fcn.005699b0
add esp, 0xc
and word [edi + 6], 0xfffe
mov dword [edi + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x10]
push eax
call fcn.0056ce70
add esp, 4
test eax, eax
jne 0x586ef0
mov edx, dword [esp + 0x34]
test byte [edx + 0xc], 0x20
jne 0x586ef0
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 9
jne 0x586e80
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
mov edx, dword [eax + 4]
push 0
push ecx
push edx
push 0x29
mov eax, ebx
call fcn.0055cbe0
add esp, 0x10
mov eax, ebx
call fcn.0055cd10
fld qword [0x638678]
mov edi, dword [ebp + 0xc]
push eax
fstp qword [edi + 0x48]
push edi
push esi
mov dword [esp + 0xac], eax
call fcn.005831c0
add esp, 0xc
test byte [edi + 6], 1
je 0x586f39
mov edi, dword [esi + 0x44]
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
mov dword [esi + 0x44], eax
mov edx, dword [ecx]
push edx
push esi
mov dword [esp + 0x64], edi
call fcn.00582240
push 0xfffffffffffffff0
push eax
push edi
push 0x29
xor eax, eax
xor ecx, ecx
mov edi, ebx
call fcn.0055ccb0
mov eax, dword [ebx + 4]
add esp, 0x18
test eax, eax
je 0x586f41
mov ecx, dword [ebx + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x10
jmp 0x586f41
cmp dword [esp + 0x28], 0
je 0x586e57
mov edi, dword [esp + 0x28]
push edi
push esi
call fcn.00582240
mov ecx, dword [esi + 0x44]
mov dword [edi + 8], ecx
add dword [esi + 0x44], 1
mov edx, dword [edi + 8]
mov ecx, dword [edi]
push 0xfffffffffffffff0
push eax
push edx
add ecx, 2
push 0x29
xor eax, eax
mov edi, ebx
call fcn.0055ccb0
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov dword [esp + 0x18], eax
mov dword [ecx + 0x40], eax
jmp 0x586e5f
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x3c], 0
mov edi, dword [esp + 0xc]
jne 0x586fec
test edi, edi
jne 0x586ff0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
push edi
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.00591430
mov edi, eax
add esp, 0x14
test edi, edi
je 0x587e36
mov ecx, dword [ebp + 0xc]
fld qword [ecx + 0x48]
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x586f91
fld qword [edi + 0x28]
fstp qword [ecx + 0x48]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jl 0x586fb6
cmp dword [esp + 0x28], 0
jne 0x586fb6
push 1
mov edx, ebx
call fcn.0055d0b0
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [edx + 0x40], 0xffffffff
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push 0
push 0
push ecx
push edx
push esi
call fcn.00581e40
push edi
call fcn.00591ed0
add esp, 0x2c
xor esi, esi
jmp 0x587dd3
test edi, edi
je 0x587044
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov eax, dword [ecx]
test eax, eax
mov ecx, dword [ecx + 0xc]
jle 0x587010
add ecx, 0x10
mov word [ecx], 0
sub eax, 1
add ecx, 0x14
test eax, eax
jg 0x587001
mov eax, dword [edi]
test eax, eax
mov ecx, dword [edi + 0xc]
jle 0x58702f
add ecx, 0x10
lea esp, [esp]
mov word [ecx], 0
sub eax, 1
add ecx, 0x14
test eax, eax
jg 0x587020
fld qword [0x638590]
fcom qword [edx + 0x48]
fnstsw ax
test ah, 5
jp 0x58704e
fstp qword [edx + 0x48]
jmp 0x587050
fld1
mov eax, dword [ebp + 0xc]
fstp qword [eax + 0x48]
jmp 0x587050
fstp st(0)
mov eax, ebx
call fcn.0055cd10
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp edi, eax
lea edx, [esp + 0x70]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xc8], 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 dword [esp + 0xcc], eax
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xc8], edx
je 0x5870c2
mov eax, dword [edi]
add eax, 1
mov ecx, dword [esp + 0x4c]
push ecx
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edi
call fcn.0056d220
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.0056d220
mov ecx, dword [esp + 0x74]
xor edi, edi
add esp, 0x10
cmp ecx, edi
je 0x58710d
lea eax, [esp + 0xac]
call fcn.0056d1f0
cmp dword [esp + 0x94], edi
mov edx, dword [esp + 0x84]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x2c], edi
jle 0x587165
jmp 0x587130
mov eax, dword [esp + 0x90]
mov ecx, dword [edi + eax]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.0056d220
mov eax, dword [esp + 0x34]
add eax, 1
add esp, 8
add edi, 0x10
cmp eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
jl 0x587130
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x1e], 0
jne 0x587e36
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x587b1e
mov eax, dword [esi + 0x44]
mov dword [esp + 0x74], eax
push ecx
add eax, 1
push esi
mov dword [esi + 0x44], eax
call fcn.00582240
mov edx, dword [esp + 0x84]
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
push edx
push eax
push 0x29
mov eax, ebx
call fcn.0055cbe0
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
add esp, 0x18
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x587215
cmp byte [edi + 0x1e], 0
jne 0x587215
test eax, eax
jge 0x5871d2
mov eax, dword [ebx + 0x1c]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea ecx, [ecx + edx*4]
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 0x10]
call fcn.0055cf70
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
mov dword [eax + 0x10], 0
jne 0x587208
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x587223
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
jmp 0x587223
mov ecx, dword [esp + 0x20]
mov eax, 0xfffffff0
call fcn.0055cf70
mov eax, dword [esi + 0x48]
add eax, 1
lea edi, [eax + 1]
mov dword [esp + 0x68], eax
lea eax, [edi + 1]
mov dword [esp + 0x14], eax
mov dword [esi + 0x48], eax
mov eax, ebx
mov dword [esp + 0x40], edi
call fcn.0055cd10
add dword [esi + 0x48], 1
mov edx, dword [esi + 0x48]
mov dword [esp + 0x60], eax
mov eax, ebx
mov dword [esp + 0x18], edx
call fcn.0055cd10
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
add eax, edx
push 0
mov dword [esi + 0x48], eax
mov ecx, dword [ecx]
push edi
lea edx, [eax + 1]
add ecx, eax
push 0
push 7
mov eax, ebx
mov dword [esp + 0x7c], edx
mov dword [esi + 0x48], ecx
call fcn.0055cbe0
mov edx, dword [esp + 0x78]
push 0
push edx
push 0
push 7
mov eax, ebx
call fcn.0055cbe0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x38]
push 0
push eax
push ecx
push 2
mov eax, ebx
call fcn.0055cbe0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x84]
push 0
lea edx, [esp + 0x40]
push edx
push eax
push ecx
push esi
call fcn.00591430
add esp, 0x44
test eax, eax
mov dword [esp + 0x48], eax
je 0x587e36
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x5872fb
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], edi
jmp 0x587524
cmp dword [esp + 0x38], 0
je 0x587310
mov ecx, dword [ebp + 0xc]
test byte [ecx + 6], 1
mov eax, str.DISTINCT
je 0x587315
mov eax, str.GROUP_BY
mov ecx, esi
call fcn.00582320
mov eax, dword [edi]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x50], eax
add eax, 1
test edx, edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x10], eax
mov ecx, eax
mov dword [esp + 0x1c], eax
jle 0x587362
mov edi, dword [esp + 0x80]
add edi, 0xc
cmp dword [edi], eax
jl 0x587356
add ecx, 1
add eax, 1
add edi, 0x18
sub edx, 1
jne 0x58734c
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + 0x38]
cmp ecx, eax
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x38], edi
jg 0x58737d
lea edx, [edi + ecx]
sub eax, ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
jmp 0x58738c
mov eax, dword [esi + 0x48]
lea edi, [eax + 1]
add eax, ecx
mov dword [esp + 0x38], edi
mov dword [esi + 0x48], eax
mov edx, esi
call fcn.0056b390
mov eax, dword [esp + 0xc]
push 0
push esi
mov ecx, edi
call fcn.0056c5c0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x7c]
push 0
add edi, eax
push edi
push ecx
push 0x35
mov eax, ebx
call fcn.0055cbe0
mov edx, dword [esp + 0x28]
add esp, 0x18
cmp dword [esp + 0x84], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], 0
jle 0x58745a
mov eax, dword [esp + 0x38]
mov ecx, edx
add eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x80]
xor edi, edi
mov edx, dword [esp + 0x10]
cmp dword [edi + eax + 0xc], edx
jl 0x587443
mov ecx, dword [esp + 0x50]
mov edx, dword [edi + eax + 4]
push ecx
mov ecx, dword [edi + eax + 8]
push edx
mov edx, dword [edi + eax]
push ecx
push edx
mov eax, esi
call fcn.0056b280
add esp, 0x10
cmp dword [esp + 0x50], eax
je 0x58742f
mov ecx, dword [esp + 0x50]
push 0
push ecx
push eax
push 0xf
mov eax, ebx
call fcn.0055cbe0
add esp, 0x10
mov eax, 1
add dword [esp + 0x10], eax
add dword [esp + 0x50], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
add ecx, 1
add edi, 0x18
cmp ecx, dword [esp + 0x84]
mov dword [esp + 0x2c], ecx
jl 0x5873ee
mov al, byte [esi + 0x15]
test al, al
jne 0x58746a
add dword [esi + 0x48], 1
mov edi, dword [esi + 0x48]
jmp 0x587476
sub al, 1
movzx edx, al
mov byte [esi + 0x15], al
mov edi, dword [esi + edx*4 + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
push edi
push eax
push ecx
push 0x1e
mov eax, ebx
call fcn.0055cbe0
mov edx, dword [esp + 0x84]
push 0
push edi
push edx
push 0x46
mov eax, ebx
call fcn.0055cbe0
add esp, 0x20
test edi, edi
je 0x5874d1
mov dl, byte [esi + 0x15]
cmp dl, 8
jae 0x5874d1
xor eax, eax
lea ecx, [esi + 0x60]
cmp dword [ecx + 0x10], edi
je 0x58756b
add eax, 1
add ecx, 0x18
cmp eax, 0xa
jl 0x5874b2
movzx eax, dl
mov dword [esi + eax*4 + 0x18], edi
add byte [esi + 0x15], 1
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
push ecx
mov eax, edi
call fcn.0056b1e0
add esp, 4
cmp edi, dword [esi + 0x38]
jle 0x5874f3
mov edx, dword [esp + 0x38]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edx
mov eax, dword [esp + 0x48]
push eax
call fcn.00591ed0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
add esp, 4
push 0
push ecx
push edx
push 0x40
mov eax, ebx
call fcn.0055cbe0
add esp, 0x10
mov edx, esi
mov byte [esp + 0x71], 1
call fcn.0056b390
mov eax, dword [ebx + 0x1c]
mov edx, esi
mov dword [esp + 0x38], eax
call fcn.0056b390
mov ecx, dword [esp + 0xc]
cmp dword [ecx], 0
mov dword [esp + 0x10], 0
jle 0x5875e3
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x44], 0
je 0x587574
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
push edi
push edx
push eax
push 0x1c
mov eax, ebx
jmp 0x5875bc
mov byte [ecx + 8], 1
jmp 0x5874d1
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x70], 1
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + edx]
test eax, eax
je 0x58759e
cmp byte [eax], 0x84
jne 0x58759e
mov ecx, dword [eax + 0x18]
mov eax, dword [esi + 0xc]
push 0
push edi
push ecx
push 0xe
jmp 0x5875bc
push edi
push eax
push esi
call fcn.0056b550
add esp, 0xc
cmp eax, edi
je 0x5875c4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x5875c4
push 0
push edi
push eax
push 0xf
mov eax, ecx
call fcn.0055cbe0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add dword [esp + 0x1c], 0x14
add eax, 1
add edi, 1
cmp eax, dword [edx]
mov dword [esp + 0x10], eax
jl 0x587553
mov eax, dword [esp + 0xc]
mov esi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], esi
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
jg 0x587607
mov edi, ebx
call fcn.0055cb60
test eax, eax
je 0x587607
mov esi, 1
jmp 0x58763f
mov eax, dword [ebx + 4]
add dword [ebx + 0x1c], 1
mov ecx, dword [esp + 0x30]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0x18
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov edx, dword [esp + 0x20]
push 0xfffffffffffffffa
push edx
push ebx
mov eax, esi
call fcn.0055d100
mov esi, dword [ebx + 0x1c]
add esp, 0xc
cmp dword [ebx + 0x20], esi
mov dword [esp + 0x1c], esi
jg 0x587668
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x587693
mov ecx, dword [ebx + 4]
add dword [ebx + 0x1c], 1
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor edx, edx
lea ecx, [esi + 1]
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ebx + 0x64], dl
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
mov edi, dword [ebp + 8]
push eax
push ecx
call fcn.0056b3e0
mov esi, dword [ebx + 0x1c]
add esp, 8
cmp dword [ebx + 0x20], esi
jg 0x5876c1
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x5876f5
mov eax, dword [ebx + 4]
add dword [ebx + 0x1c], 1
mov ecx, dword [esp + 0x14]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x60]
xor esi, esi
mov byte [eax], 2
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
jmp 0x5876f7
xor esi, esi
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x30], eax
jg 0x587712
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x587742
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
add dword [ebx + 0x1c], 1
mov edx, dword [esp + 0x40]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x3c]
mov byte [eax], 0x71
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x30], eax
jg 0x58775d
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x58778d
mov eax, dword [esp + 0x30]
add dword [ebx + 0x1c], 1
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x58]
mov byte [eax], 2
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x5877a2
mov edx, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x70]
push eax
push ecx
call fcn.00586620
mov eax, dword [ebx + 0x1c]
add esp, 8
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x30], eax
jg 0x5877ce
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x5877fe
mov eax, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov ecx, 1
add dword [ebx + 0x1c], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x68]
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
cmp dword [esp + 0x44], esi
je 0x58781d
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x74]
push esi
push edx
push eax
push 0x43
mov eax, ebx
call fcn.0055cbe0
add esp, 0x10
jmp 0x58783a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00591ed0
mov ecx, dword [esp + 0x28]
add esp, 4
push 1
mov edx, ebx
call fcn.0055d0b0
add esp, 4
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x587855
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x587885
mov eax, dword [esp + 0x24]
add dword [ebx + 0x1c], 1
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x60]
mov byte [eax], 2
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x5878a0
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x5878cc
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
add dword [ebx + 0x1c], 1
mov edx, dword [esp + 0x3c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], eax
jg 0x5878eb
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x58791b
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x1c], ecx
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x587936
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x587962
mov eax, dword [esp + 0x24]
add dword [ebx + 0x1c], 1
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov byte [eax], 3
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x58797b
mov edx, dword [esp + 0x60]
lea ecx, [edx*4 + 4]
mov edx, dword [ebx + 0x1c]
sub eax, ecx
mov dword [eax], edx
mov edi, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], edi
mov dword [esp + 0x10], edi
jg 0x587996
mov edi, ebx
call fcn.0055cb60
test eax, eax
mov edi, dword [esp + 0x10]
jne 0x5879c5
mov ecx, dword [ebx + 4]
add dword [ebx + 0x1c], 1
mov edx, dword [esp + 0x68]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
lea ecx, [edi + 2]
mov byte [eax], 0x71
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x5879e4
mov edi, ebx
call fcn.0055cb60
test eax, eax
mov edi, dword [esp + 0x10]
jne 0x587a10
mov eax, dword [esp + 0x24]
add dword [ebx + 0x1c], 1
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov byte [eax], 3
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebp + 8]
lea edx, [esp + 0x70]
push edx
call fcn.00586500
mov eax, dword [esp + 0x68]
mov ecx, dword [ebp + 8]
add esp, 4
push 8
add edi, 1
push edi
push eax
push ecx
call fcn.0056ca50
mov edx, dword [esp + 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x3c]
push edi
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 8]
push esi
push esi
push ecx
push eax
push edx
call fcn.00581e40
mov eax, dword [ebx + 0x1c]
add esp, 0x38
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x587a78
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x587aa4
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
add dword [ebx + 0x1c], 1
mov edx, dword [esp + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 3
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x587abd
mov ecx, dword [esp + 0x58]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebx + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [ebp + 8]
lea edx, [esp + 0x70]
push edx
push eax
call fcn.00586360
mov eax, dword [ebx + 0x1c]
add esp, 8
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x587aed
mov edi, ebx
call fcn.0055cb60
test eax, eax
jne 0x587dba
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 4]
add dword [ebx + 0x1c], 1
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x18]
mov byte [eax], 3
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebx + 0x64], 0
jmp 0x587dba
mov edi, dword [ebp + 0xc]
lea edx, [esp + 0x70]
mov eax, edi
mov dword [esp + 0x58], 0
call fcn.00585a40
test eax, eax
mov dword [esp + 0x18], eax
je 0x587c86
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, eax
mov esi, dword [edx + 0x44]
call fcn.00580c70
mov ecx, dword [edi + 0x44]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
add ecx, 1
mov dword [edi + 0x44], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x40], eax
push eax
mov eax, edi
mov dword [esp + 0x4c], ecx
call fcn.00574560
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x44]
add esp, 4
push edx
push 0
push eax
push ecx
mov eax, edi
call fcn.0056fee0
mov eax, dword [esi + 0x10]
add esp, 0x10
test eax, eax
je 0x587bdf
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x587baf
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 4]
jge 0x587bb1
mov ecx, eax
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x587ba3
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x587bdf
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 8]
jge 0x587bdf
mov eax, ecx
mov ecx, dword [eax + 0x14]
push eax
push edi
mov dword [esp + 0x50], ecx
call fcn.00574a50
add esp, 8
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
push edx
push eax
push esi
push 0x26
mov eax, ebx
call fcn.0055cbe0
add esp, 0x10
cmp dword [esp + 0x20], 0
je 0x587c48
mov ecx, dword [ebx + 4]
test ecx, ecx
mov edi, dword [ebx]
je 0x587c3a
cmp byte [edi + 0x1e], 0
jne 0x587c3a
mov eax, dword [ebx + 0x1c]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.0055cf70
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
mov esi, dword [esp + 0x30]
jmp 0x587c48
mov ecx, dword [esp + 0x20]
mov eax, 0xfffffff0
call fcn.0055cf70
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 8]
push 0
push edx
push esi
push 0x1f
mov eax, ebx
call fcn.0055cbe0
push 0
push 0
push esi
push 0x2b
mov eax, ebx
call fcn.0055cbe0
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push edi
call fcn.00586a10
add esp, 0x24
jmp 0x587d6f
mov eax, edi
mov dword [esp + 0x18], 0
call fcn.005859e0
test al, al
mov byte [esp + 0xc], al
je 0x587cdf
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov edi, dword [esp + 0x34]
push 0
push eax
push edi
call fcn.005699b0
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], eax
je 0x587cdf
cmp byte [edi + 0x1e], 0
jne 0x587cdf
cmp byte [esp + 0xc], 1
mov edx, dword [eax + 0xc]
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov byte [ecx], 0x98
lea edx, [esp + 0x70]
push edx
push esi
call fcn.00586360
movzx ax, byte [esp + 0x14]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
push esi
call fcn.00591430
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x587d25
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x34]
push ecx
call fcn.00569f90
add esp, 4
jmp 0x587e36
lea edx, [esp + 0x70]
push edx
push esi
call fcn.00586620
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x587d55
cmp byte [esp + 0xc], 0
je 0x587d55
mov eax, dword [edi + 0x14]
push 0
push eax
push 0
push 1
mov eax, ebx
call fcn.0055cbe0
add esp, 0x10
push edi
call fcn.00591ed0
lea ecx, [esp + 0x74]
add esp, 4
push ecx
mov eax, esi
call fcn.00586500
add esp, 4
mov edi, esi
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x64]
push 8
push esi
push edx
push edi
mov dword [esp + 0x38], 0
call fcn.0056ca50
mov eax, dword [ebp + 0x10]
push esi
push esi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0
push 0
push ecx
push eax
push edi
call fcn.00581e40
mov edx, dword [esp + 0x90]
mov edi, dword [esp + 0x6c]
push edx
call fcn.00569f90
add esp, 0x3c
xor esi, esi
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x587dd3
mov ecx, dword [esp + 0x3c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebx + 0x1c]
sub eax, edx
mov dword [eax], ecx
cmp dword [esp + 0x5c], esi
mov edi, dword [ebp + 8]
jl 0x587de8
mov eax, str.DISTINCT
mov ecx, edi
call fcn.00582320
cmp dword [esp + 0x28], esi
je 0x587e13
mov eax, str.ORDER_BY
mov ecx, edi
call fcn.00582320
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push ebx
push edx
push edi
call fcn.005824b0
add esp, 0x14
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x587e2f
mov ecx, dword [esp + 0xa0]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebx + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
test edi, edi
mov edx, dword [esp + 0x9c]
mov dword [esi + 0x22c], edx
jne 0x587e66
mov eax, dword [ebp + 0x10]
cmp byte [eax], 5
jne 0x587e66
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
push ecx
push edx
push esi
call fcn.00582bd0
add esp, 0xc
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x34]
push eax
push esi
call fcn.00543400
mov ecx, dword [esp + 0x98]
push ecx
push esi
call fcn.00543400
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret