Function at 0xa38860
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 + 8]
mov eax, dword [ebx + 0x1f0]
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x1f4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
mov dword [ebx + 0x1f0], eax
inc eax
mov dword [esp + 0x34], 1
mov dword [ebx + 0x1f4], eax
mov dword [esp + 0x20], edi
test esi, esi
je 0xa3a3db
cmp byte [edi + 0x40], 0
jne 0xa3a3db
cmp dword [ebx + 0x44], 0
jne 0xa3a3db
push 0
push 0
push 0
push 0x15
mov eax, ebx
call fcn.00a1a2d0
add esp, 0x10
test eax, eax
jne 0xa3a3db
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 4
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
ja 0xa3893b
mov edx, dword [esi + 0x38]
push edx
push edi
call fcn.00a12fa0
mov eax, 0xfffe
add esp, 8
and word [esi + 6], ax
mov dword [esi + 0x38], 0
push 0
push esi
push ebx
call fcn.00a38010
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x28]
mov eax, dword [esi]
add esp, 0xc
cmp dword [ebx + 0x44], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x68], eax
jne 0xa3a299
cmp byte [edi + 0x40], 0
jne 0xa3a299
mov ecx, esi
movzx eax, word [ecx + 6]
shr eax, 2
and eax, 1
mov edi, ebx
mov dword [esp + 0x3c], eax
call fcn.00a34450
mov esi, eax
mov dword [esp + 0x54], esi
test esi, esi
je 0xa3a295
mov ecx, dword [esp + 0x68]
cmp dword [ecx], 1
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
jle 0xa389bf
cmp eax, 6
je 0xa389ad
cmp eax, 7
jne 0xa389bf
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
call fcn.009e9ff0
add esp, 4
jmp 0xa3a295
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x3c], eax
jne 0xa38e95
jmp 0xa389d7
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
movzx edi, byte [edx]
cmp eax, edi
jge 0xa38e95
lea eax, [eax + eax*8]
lea eax, [edx + eax*8 + 8]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], eax
test eax, eax
je 0xa38e84
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0xa38a2d
test byte [ecx + 0x24], 4
jne 0xa38e84
mov edx, dword [ecx + 0x1c]
push 0
push eax
push edx
push 0x11
mov eax, esi
call fcn.00a02a40
add esp, 0x10
jmp 0xa38e84
mov ecx, dword [ebp + 0xc]
call fcn.00a11e80
add dword [ebx + 0x1ec], eax
mov eax, dword [esp + 0x1c]
movzx edi, word [eax + 6]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
shr edi, 2
and edi, 1
push edi
push ecx
push edx
push ebx
call 0xa36b30
add esp, 0x10
test eax, eax
je 0xa38a85
test edi, edi
je 0xa38a78
mov eax, dword [ebp + 0xc]
or word [eax + 6], 4
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], 0xffffffff
jmp 0xa38e50
mov eax, dword [esp + 0x50]
cmp byte [eax], 1
jne 0xa38cf2
mov edx, dword [ebp + 0xc]
mov ecx, 0x100
test word [edx + 6], cx
jne 0xa38cf2
mov eax, ecx
mov ecx, dword [esp + 0x20]
test word [ecx + 0x3c], ax
jne 0xa38cf2
mov edi, dword [esp + 0x14]
mov ecx, 1
add dword [ebx + 0x4c], ecx
mov eax, dword [ebx + 0x4c]
mov dword [edi + 0x1c], eax
add dword [ebx + 0x4c], ecx
mov edx, dword [ebx + 0x4c]
push 0xffffffffffffffff
mov eax, ebx
mov dword [esp + 0x5c], edx
call fcn.00a20270
add esp, 4
push 0x10
mov eax, esi
call fcn.00a02aa0
mov ecx, dword [esi + 0x1c]
mov eax, dword [edi + 0x2c]
add esp, 4
cmp dword [esi + 0x20], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], ecx
jg 0xa38b14
mov edi, esi
call fcn.00a029c0
test eax, eax
je 0xa38b10
mov dword [esp + 0x18], 1
jmp 0xa38b3f
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 4]
xor edx, edx
inc dword [esi + 0x1c]
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x48]
mov byte [eax], 0x37
mov byte [eax + 3], dl
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
xor edx, edx
cmp ecx, edx
je 0xa38b53
mov eax, dword [esi + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa38b7b
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa38ba2
mov eax, dword [esp + 0x10]
xor edx, edx
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov ecx, dword [esi + 4]
xor edx, edx
cmp ecx, edx
je 0xa38bb6
mov eax, dword [esi + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 1
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
mov cl, byte [ebx + 0x1f4]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xa8]
push edx
push eax
mov byte [esp + 0xb0], 0xa
mov byte [esp + 0xb1], 0
push ebx
mov byte [edi + 0x28], cl
call fcn.00a38860
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x20]
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x24]
or dword [edi + 0x24], 4
add esp, 0xc
cmp dword [esi + 0x1c], eax
jbe 0xa38c2c
mov edx, dword [esi + 4]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xb0]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x1c], eax
jbe 0xa38c46
mov edx, dword [esi + 4]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xb4]
mov dword [edx + ecx*4 + 0xc], eax
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa38c65
mov edi, esi
call fcn.00a029c0
mov edi, dword [esp + 0x14]
test eax, eax
jne 0xa38c94
mov eax, dword [esp + 0x10]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov ecx, 1
add dword [esi + 0x1c], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0xa38c96
xor ecx, ecx
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], eax
jg 0xa38cba
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa38ce1
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x48]
mov byte [eax], 0x14
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x18]
dec eax
mov edx, esi
call fcn.00a02fe0
jmp 0xa38e45
inc dword [ebx + 0x4c]
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x14]
mov dword [eax + 0x1c], edx
mov ecx, dword [esi + 0x1c]
cmp dword [esi + 0x20], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x10], ecx
jg 0xa38d34
mov edi, esi
call fcn.00a029c0
test eax, eax
je 0xa38d2c
mov dword [esp + 0x5c], 1
jmp 0xa38d5d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
mov edi, dword [esi + 4]
inc dword [esi + 0x1c]
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
xor edi, edi
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
inc ecx
test byte [edi + 0x24], 2
mov dword [edi + 0x18], ecx
jne 0xa38d7a
mov eax, ebx
call fcn.00a13580
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dl, byte [ebx + 0x1f4]
mov dword [esp + 0xac], eax
xor eax, eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xa8]
push eax
push ecx
mov byte [esp + 0xb0], 9
mov byte [esp + 0xb1], 0
push ebx
mov byte [edi + 0x28], dl
call fcn.00a38860
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x10]
mov ecx, dword [eax + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], 0
mov dword [edx + 0x1c], ecx
je 0xa38de2
mov eax, dword [esp + 0x28]
mov edx, esi
call fcn.00a02fe0
mov ecx, dword [esi + 0x1c]
cmp dword [esi + 0x20], ecx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], ecx
jg 0xa38e0b
mov edi, esi
call fcn.00a029c0
test eax, eax
je 0xa38e07
mov ecx, 1
jmp 0xa38e32
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 4]
xor edx, edx
inc dword [esi + 0x1c]
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x48]
mov byte [eax], 0x12
mov byte [eax + 3], dl
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [esp + 0x5c]
cmp dword [esi + 0x1c], eax
jbe 0xa38e45
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + edx*4 + 4], ecx
mov dword [ebx + 0x3c], 0
mov byte [ebx + 0x13], 0
mov edi, dword [esp + 0x20]
cmp byte [edi + 0x40], 0
jne 0xa3a299
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00a11e80
sub dword [ebx + 0x1ec], eax
mov edx, dword [ebp + 0x10]
cmp byte [edx], 4
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x50], ecx
jbe 0xa38e84
mov eax, dword [edi + 0x38]
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0xc]
inc dword [esp + 0x30]
cmp dword [ecx + 0x3c], 0
je 0xa389d3
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x48], eax
mov al, byte [ecx + 6]
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0x30]
and al, 1
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x14], edx
mov byte [esp + 0x9c], al
je 0xa38f25
cmp dword [ecx + 0x44], 0
jne 0xa38f03
xor edx, edx
xor esi, esi
mov eax, ecx
mov edi, edi
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
mov edx, eax
mov eax, dword [eax + 0x3c]
inc esi
test eax, eax
jne 0xa38ed0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x68]
test eax, eax
je 0xa38f03
cmp esi, eax
jle 0xa38f03
push str.too_many_terms_in_compound_SELECT
mov edi, ebx
call fcn.009e9ff0
add esp, 4
jmp 0xa3a295
mov eax, dword [ebp + 0x10]
push eax
push ecx
push ebx
call fcn.00a347c0
mov ecx, dword [esp + 0xc4]
add esp, 0xc
mov dword [ebx + 0x1f0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call fcn.00a16850
add esp, 8
test eax, eax
jne 0xa38f4e
mov eax, dword [esp + 0x20]
test byte [eax + 0x3c], 4
jne 0xa38f4e
mov dword [esp + 0x2c], 0
mov edi, dword [ebp + 0xc]
mov cl, byte [edi + 6]
and cl, 5
cmp cl, 1
jne 0xa39079
mov edx, edi
mov eax, dword [edx]
mov edi, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
call fcn.00a16850
mov edi, dword [ebp + 0xc]
add esp, 8
test eax, eax
jne 0xa39079
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push edx
mov ecx, 0xfffe
and word [edi + 6], cx
push eax
call fcn.00a12830
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 9
jne 0xa38fd0
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push 0
push edx
push eax
push 0x35
mov eax, esi
call fcn.00a02a40
add esp, 0x10
mov eax, esi
call fcn.00a02ca0
push eax
mov dword [esp + 0xe0], eax
push edi
mov eax, ebx
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0x7fffffff
call fcn.00a34480
add esp, 8
cmp dword [edi + 8], 0
jne 0xa39018
cmp dword [esp + 0x40], 0
jl 0xa39018
mov eax, dword [esp + 0x40]
mov ecx, esi
call fcn.00a03330
mov byte [eax], 0x36
or word [edi + 6], 0x40
test byte [edi + 6], 1
je 0xa390c6
mov eax, dword [ebx + 0x48]
mov edi, eax
push 0xfffffffffffffffa
inc eax
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x48], eax
mov eax, dword [ecx]
push ebx
mov dword [esp + 0xac], edi
call fcn.00a330f0
add esp, 8
push eax
mov edx, edi
push 0x35
xor eax, eax
xor ecx, ecx
mov edi, esi
call fcn.00a02b30
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
je 0xa3906f
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
mov byte [esp + 0x9d], 3
jmp 0xa390ce
cmp dword [esp + 0x2c], 0
je 0xa38fa7
mov edi, dword [esp + 0x2c]
push ebx
mov eax, edi
call fcn.00a330f0
mov ecx, dword [ebx + 0x48]
mov dword [edi + 4], ecx
inc dword [ebx + 0x48]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
add esp, 4
push 0xfffffffffffffffa
push eax
add ecx, 2
push 0x35
xor eax, eax
mov edi, esi
call fcn.00a02b30
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0x40], eax
mov dword [edx + 0x18], eax
mov edi, edx
jmp 0xa38faf
mov byte [esp + 0x9d], 0
xor edi, edi
cmp dword [esp + 0x3c], edi
jne 0xa391cb
cmp dword [esp + 0x14], edi
jne 0xa391cb
movzx eax, byte [esp + 0x9c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x28]
neg eax
push edi
sbb eax, eax
and eax, 0x400
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
push ebx
call fcn.00a47240
mov edi, eax
add esp, 0x1c
test edi, edi
je 0xa3a295
mov ax, word [edi + 0x20]
call fcn.009eb170
mov ecx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0x24]
ja 0xa3913d
jb 0xa39137
cmp eax, dword [ecx + 0x20]
jae 0xa3913d
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
cmp byte [esp + 0x9c], 0
je 0xa39155
mov al, byte [edi + 0x27]
test al, al
je 0xa39155
mov byte [esp + 0x9d], al
cmp dword [esp + 0x2c], 0
je 0xa3916a
cmp byte [edi + 0x24], 0
je 0xa3916a
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x40]
test eax, eax
jl 0xa39191
cmp dword [esp + 0x2c], 0
jne 0xa39191
push esi
mov ebx, eax
call fcn.00a03190
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [edx + 0x18], 0xffffffff
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
mov edx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x74]
lea eax, [esp + 0xa8]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 0
push 0
push edx
push eax
push ebx
call fcn.00a32950
push edi
call fcn.00a47ab0
add esp, 0x2c
jmp 0xa3a22c
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
cmp dword [esp + 0x14], edi
je 0xa39237
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, edi
mov ecx, dword [ecx + 8]
jle 0xa39200
add ecx, 0x16
lea ebx, [ebx]
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x18
cmp eax, edi
jg 0xa391f0
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, edi
mov ecx, dword [ecx + 8]
jle 0xa39220
add ecx, 0x16
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x18
cmp eax, edi
jg 0xa39210
mov edx, dword [ebp + 0xc]
mov eax, 0x64
cmp dword [edx + 0x24], edi
ja 0xa3922f
cmp dword [edx + 0x20], eax
jbe 0xa39244
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], edi
jmp 0xa39244
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], edi
mov eax, esi
call fcn.00a02ca0
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x74]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc8], ecx
cmp eax, edi
je 0xa392ba
mov edx, dword [eax]
inc edx
mov dword [esp + 0x80], edx
jmp 0xa392c1
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
lea ecx, [esp + 0xbc]
push ecx
mov dword [esp + 0x88], eax
call fcn.00a16ce0
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0xc0]
add esp, 4
push edx
call fcn.00a16ce0
mov ecx, dword [esp + 0x4c]
xor edi, edi
add esp, 4
cmp ecx, edi
je 0xa3930e
lea eax, [esp + 0xbc]
push eax
call fcn.00a16c90
add esp, 4
cmp dword [esp + 0x98], edi
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x30], edi
jle 0xa39372
lea esp, [esp]
or byte [esp + 0xd8], 8
mov edx, dword [esp + 0x94]
mov eax, dword [edi + edx]
mov ebx, dword [eax + 0x14]
lea ecx, [esp + 0xbc]
push ecx
call fcn.00a16ce0
mov eax, dword [esp + 0x34]
and byte [esp + 0xdc], 0xf7
inc eax
add esp, 4
add edi, 0x10
cmp eax, dword [esp + 0x98]
mov dword [esp + 0x30], eax
jl 0xa39330
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x40], 0
jne 0xa3a292
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa39ee5
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x48]
mov dword [esp + 0x78], ecx
inc ecx
push edx
mov dword [edx + 0x48], ecx
call fcn.00a330f0
mov ecx, dword [esp + 0x7c]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x80]
push 0
push eax
push ecx
push 0x36
mov eax, esi
mov dword [esp + 0x4c], edi
call fcn.00a02a40
mov ebx, dword [esi + 4]
mov edx, dword [esi]
add esp, 0x10
mov dword [esp + 0x10], eax
test ebx, ebx
je 0xa39412
cmp byte [edx + 0x40], 0
jne 0xa39412
test eax, eax
jge 0xa393df
mov eax, dword [esi + 0x1c]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*4 + 0x10]
lea ebx, [ebx + eax*4]
movsx eax, byte [ebx + 1]
mov edi, edx
call fcn.00a03000
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [ebx + 0x10], ecx
cmp eax, ecx
jne 0xa39409
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], cl
jmp 0xa39420
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xfa
jmp 0xa39420
mov ecx, edi
mov eax, 0xfffffffa
mov edi, edx
call fcn.00a03000
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
inc eax
lea edi, [eax + 1]
mov dword [esp + 0x60], eax
lea eax, [edi + 1]
mov dword [esp + 0x70], eax
mov dword [ebx + 0x4c], eax
mov eax, esi
mov dword [esp + 0x6c], edi
call fcn.00a02ca0
inc dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x64], eax
mov eax, esi
mov dword [esp + 0x58], ecx
call fcn.00a02ca0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x4c]
lea edx, [eax + 1]
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
add eax, edx
mov dword [ebx + 0x4c], eax
mov ecx, dword [ecx]
add ecx, eax
lea edx, [eax + 1]
mov dword [ebx + 0x4c], ecx
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x4c], eax
jg 0xa3949e
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa394c2
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
inc dword [esi + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
xor ecx, ecx
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x4c], eax
jg 0xa394dd
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39505
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi]
lea edx, [ecx + eax - 1]
push edx
push eax
push 0
push 0x1a
mov eax, esi
call fcn.00a02a40
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
push 0
push eax
push ecx
push 0x11
mov eax, esi
call fcn.00a02a40
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x70]
push 0
push 0x100
push 0
push edi
push edx
push eax
push ebx
call fcn.00a47240
add esp, 0x3c
mov dword [esp + 0x4c], eax
test eax, eax
je 0xa3a292
cmp byte [eax + 0x24], 0
je 0xa39571
mov dword [esp + 0x28], 0
jmp 0xa39858
cmp byte [esp + 0x9c], 0
je 0xa39589
mov ecx, dword [ebp + 0xc]
test byte [ecx + 6], 1
mov eax, str.DISTINCT
je 0xa3958e
mov eax, str.GROUP_BY
mov ecx, ebx
call fcn.00a331a0
mov eax, dword [edi]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x18], eax
mov ecx, eax
mov dword [esp + 0x34], eax
test edx, edx
jle 0xa395d5
mov edi, dword [esp + 0x88]
add edi, 0xc
cmp dword [edi], eax
jl 0xa395c9
inc ecx
inc eax
add edi, 0x18
sub edx, 1
jne 0xa395c3
mov dword [esp + 0x34], ecx
mov eax, dword [ebx + 0x3c]
cmp ecx, eax
mov edi, dword [ebx + 0x40]
mov dword [esp + 0x44], edi
jg 0xa395f0
lea edx, [edi + ecx]
sub eax, ecx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x3c], eax
jmp 0xa395ff
mov eax, dword [ebx + 0x4c]
lea edi, [eax + 1]
add eax, ecx
mov dword [esp + 0x44], edi
mov dword [ebx + 0x4c], eax
mov edx, ebx
call fcn.00a149f0
mov edx, dword [esp + 0x14]
push edi
push ebx
xor cl, cl
call fcn.00a15e60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x80]
push 0
add edi, eax
push edi
push ecx
push 0x42
mov eax, esi
call fcn.00a02a40
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp dword [esp + 0x8c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], 0
jle 0xa396cf
mov eax, dword [esp + 0x44]
mov ecx, edx
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
xor edi, edi
mov edx, dword [esp + 0x18]
cmp dword [edi + eax + 0xc], edx
jl 0xa396ba
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + eax + 4]
push 0
push ecx
mov ecx, dword [edi + eax + 8]
push edx
mov edx, dword [edi + eax]
push ecx
push edx
mov eax, ebx
call fcn.00a14930
add esp, 0x14
cmp dword [esp + 0x1c], eax
je 0xa396a6
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push eax
push 0x1f
mov eax, esi
call fcn.00a02a40
add esp, 0x10
mov eax, 1
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x30]
inc ecx
add edi, 0x18
cmp ecx, dword [esp + 0x8c]
mov dword [esp + 0x30], ecx
jl 0xa39663
mov al, byte [ebx + 0x13]
test al, al
jne 0xa396de
inc dword [ebx + 0x4c]
mov edi, dword [ebx + 0x4c]
jmp 0xa396ea
dec al
movzx edx, al
mov byte [ebx + 0x13], al
mov edi, dword [ebx + edx*4 + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
push edi
push eax
push ecx
push 0x2d
mov eax, esi
mov dword [esp + 0x2c], edi
call fcn.00a02a40
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x88]
add esp, 0x10
cmp dword [esi + 0x20], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
jg 0xa3972f
mov edi, esi
call fcn.00a029c0
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0xa39757
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x30]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x68
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
test edi, edi
je 0xa39780
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0xa39780
xor eax, eax
lea ecx, [ebx + 0x68]
cmp dword [ecx + 0x10], edi
je 0xa397d1
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0xa39768
movzx eax, dl
mov dword [ebx + eax*4 + 0x1c], edi
inc byte [ebx + 0x13]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
push ecx
mov eax, edi
mov esi, ebx
call fcn.00a14810
add esp, 4
cmp edi, dword [esi + 0x3c]
jle 0xa397a4
mov edx, dword [esp + 0x44]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edx
mov eax, dword [esp + 0x4c]
push eax
call fcn.00a47ab0
mov ecx, dword [esi + 0x48]
mov al, byte [esi + 0x13]
add esp, 4
lea edx, [ecx + 1]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x7c], ecx
mov dword [esi + 0x48], edx
test al, al
jne 0xa397d7
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
jmp 0xa397e3
mov byte [ecx + 8], 1
jmp 0xa39780
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + edx*4 + 0x1c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x54]
push edx
push eax
push ecx
mov dword [esp + 0x50], eax
push 0x37
mov eax, edi
call fcn.00a02a40
mov ebx, dword [edi + 0x1c]
mov ecx, dword [esp + 0x88]
add esp, 0x10
cmp dword [edi + 0x20], ebx
mov dword [esp + 0x34], ecx
jg 0xa3981a
call fcn.00a029c0
test eax, eax
jne 0xa39846
mov eax, dword [edi + 4]
inc dword [edi + 0x1c]
mov ecx, dword [esp + 0x34]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x65
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, esi
mov byte [esp + 0x75], 1
call fcn.00a149f0
mov esi, dword [esp + 0x54]
mov ebx, edx
mov eax, dword [esi + 0x1c]
mov edx, ebx
mov dword [esp + 0x30], eax
call fcn.00a149f0
cmp dword [esp + 0x28], 0
je 0xa39885
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
push 0
push ecx
push edx
push 0x5d
mov eax, esi
call fcn.00a02a40
add esp, 0x10
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [eax], edi
mov dword [esp + 0x18], edi
jle 0xa3993c
cmp dword [esp + 0x28], 0
je 0xa39907
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x34], eax
jg 0xa398bd
mov edi, esi
call fcn.00a029c0
mov edi, dword [esp + 0x18]
test eax, eax
jne 0xa398ef
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
lea ecx, [edi + edx]
mov byte [eax], 0x2b
mov byte [eax + 3], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
test edi, edi
jne 0xa3992b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0xa3992b
mov eax, dword [esi + 0x1c]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 0x20
jmp 0xa3992b
mov eax, dword [esp + 0x5c]
lea ecx, [edi + eax]
mov eax, dword [esp + 0x14]
push ecx
mov byte [esp + 0x78], 1
mov ecx, dword [eax + 8]
lea edx, [edi + edi*2]
mov edx, dword [ecx + edx*8]
push edx
push ebx
call fcn.00a15df0
add esp, 0xc
mov eax, dword [esp + 0x14]
inc edi
cmp edi, dword [eax]
mov dword [esp + 0x18], edi
jl 0xa39897
mov eax, dword [esp + 0x3c]
test eax, eax
je 0xa39946
inc dword [eax]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esi + 0x1c]
cmp dword [esi + 0x20], ebx
mov edx, dword [ecx]
mov dword [esp + 0x34], edx
jg 0xa3996a
mov edi, esi
call fcn.00a029c0
test eax, eax
je 0xa3996a
mov ebx, 1
jmp 0xa3999d
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov byte [eax], 0x26
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov eax, ebx
test ecx, ecx
je 0xa399e6
cmp byte [edi + 0x40], 0
jne 0xa399e6
test ebx, ebx
jge 0xa399b6
mov eax, dword [esi + 0x1c]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.00a03000
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [ebx + 0x10], ecx
cmp eax, ecx
jne 0xa399dd
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], cl
jmp 0xa399f4
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xfa
jmp 0xa399f4
mov ecx, dword [esp + 0x3c]
mov eax, 0xfffffffa
call fcn.00a03000
mov ebx, dword [esi + 0x1c]
cmp dword [esi + 0x20], ebx
mov dword [esp + 0x3c], ebx
jg 0xa39a0b
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39a32
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
xor edx, edx
lea ecx, [ebx + 1]
mov byte [eax], 0x27
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 eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x5c]
mov edi, dword [ebp + 8]
push ecx
call fcn.00a14a40
mov esi, dword [esp + 0x58]
mov ebx, dword [esi + 0x1c]
add esp, 4
cmp dword [esi + 0x20], ebx
jg 0xa39a63
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39a90
mov eax, dword [esi + 4]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x70]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x64]
xor ebx, ebx
mov byte [eax], 0x11
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0xa39a92
xor ebx, ebx
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x24], eax
jg 0xa39aad
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39ad6
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x6c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x40]
mov byte [eax], 0x80
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x24], eax
jg 0xa39af1
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39b1a
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x58]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x38]
mov byte [eax], 0x11
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jl 0xa39b33
mov ecx, dword [esi + 0x1c]
cmp ecx, eax
jbe 0xa39b33
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.00a383a0
mov eax, dword [esi + 0x1c]
add esp, 8
cmp dword [esi + 0x20], eax
mov dword [esp + 0x24], eax
jg 0xa39b5f
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39b89
mov eax, dword [esp + 0x24]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov ecx, 1
add dword [esi + 0x1c], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov byte [eax], 0x17
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x28], ebx
je 0xa39be1
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov edx, dword [esp + 0x78]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
jg 0xa39bb6
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39c33
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
mov byte [eax], 5
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0xa39c33
mov edx, dword [esp + 0x4c]
push edx
call fcn.00a47ab0
mov ecx, dword [esi + 4]
add esp, 4
cmp ecx, ebx
je 0xa39c33
mov eax, dword [esp + 0x10]
mov edi, dword [esi]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x10]
call fcn.00a03000
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax], 0x97
mov eax, dword [esi + 0x1c]
dec eax
cmp dword [esp + 0x10], eax
jne 0xa39c33
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa39c4e
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39c77
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
mov byte [eax], 0x11
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa39c92
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39cb7
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x40]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
jg 0xa39cd6
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39d00
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov ecx, 1
add dword [esi + 0x1c], ecx
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov byte [eax], 0x17
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa39d1b
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39d40
mov eax, dword [esp + 0x10]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x70]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
or eax, 0xffffffff
sub eax, dword [esp + 0x64]
js 0xa39d56
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0xa39d56
mov edx, dword [esi + 0x1c]
mov dword [ecx + eax*4], edx
mov edi, dword [esi + 0x1c]
cmp dword [esi + 0x20], edi
mov dword [esp + 0x18], edi
jg 0xa39d71
mov edi, esi
call fcn.00a029c0
mov edi, dword [esp + 0x18]
test eax, eax
jne 0xa39d99
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x60]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
lea ecx, [edi + 2]
mov byte [eax], 0x80
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa39db8
mov edi, esi
call fcn.00a029c0
mov edi, dword [esp + 0x18]
test eax, eax
jne 0xa39ddd
mov eax, dword [esp + 0x10]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x70]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 8]
lea edx, [esp + 0x74]
push edx
call fcn.00a38280
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebp + 8]
add esp, 4
push 8
inc edi
push edi
push eax
push ecx
call fcn.00a163d0
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x40]
push edi
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 8]
push ebx
push ebx
push ecx
push eax
push edx
call fcn.00a32950
mov eax, dword [esi + 0x1c]
add esp, 0x38
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa39e46
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa39e6b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x70]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
or eax, 0xffffffff
sub eax, dword [esp + 0x38]
js 0xa39e81
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0xa39e81
mov edx, dword [esi + 0x1c]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.00a38080
mov eax, dword [esi + 0x1c]
add esp, 8
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa39eb3
mov edi, esi
call fcn.00a029c0
mov esi, dword [esp + 0x54]
test eax, eax
jne 0xa3a216
xor ebx, ebx
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x54]
lea eax, [eax + edx*4]
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0xa3a216
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x74]
mov dword [esp + 0x64], 0
call fcn.00a371c0
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0xa3a097
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 0x44]
mov ecx, dword [edi]
call fcn.00a31430
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x38], ecx
inc ecx
mov dword [edi + 0x48], ecx
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
xor esi, esi
push eax
mov eax, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], edx
call fcn.00a20270
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x20]
mov edx, dword [esp + 0x14]
add esp, 4
push eax
push esi
push ecx
push edx
mov eax, edi
call fcn.00a1a360
add esp, 0x10
test byte [ebx + 0x2c], 0x20
je 0xa39f69
mov eax, ebx
call fcn.00a1b9c0
mov esi, eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0xa39f9d
test byte [eax + 0x38], 4
jne 0xa39f92
movzx ecx, word [eax + 0x30]
cmp cx, word [ebx + 0x2a]
jge 0xa39f92
cmp dword [eax + 0x24], 0
jne 0xa39f92
test esi, esi
je 0xa39f90
cmp cx, word [esi + 0x30]
jge 0xa39f92
mov esi, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0xa39f70
mov dword [esp + 0x60], esi
test esi, esi
je 0xa39fb7
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x6c], eax
push esi
mov eax, edi
call fcn.00a209e0
add esp, 4
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x38]
push 1
push 0x32
push esi
call fcn.00a02c30
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0xa3a020
mov ecx, dword [esi + 4]
mov edi, dword [esi]
test ecx, ecx
je 0xa3a012
cmp byte [edi + 0x40], 0
jne 0xa3a012
mov eax, dword [esi + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea ebx, [ecx + edx*4]
mov ecx, dword [ebx + 0x10]
call fcn.00a03000
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xfa
mov ebx, dword [esp + 0x24]
jmp 0xa3a020
mov ecx, dword [esp + 0x28]
mov eax, 0xfffffffa
call fcn.00a03000
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x38]
push 0
push edx
push eax
push 0x2e
mov eax, esi
call fcn.00a02a40
mov eax, dword [esi + 0x1c]
add esp, 0x10
cmp dword [esi + 0x20], eax
mov dword [esp + 0x10], eax
jg 0xa3a055
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa3a081
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x38
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 8]
push ebx
call fcn.00a38760
mov esi, dword [esp + 0x58]
jmp 0xa3a1c6
mov edx, dword [ebp + 0xc]
xor edi, edi
xor bl, bl
cmp dword [edx + 0x34], 0
mov dword [esp + 0x38], edi
jne 0xa3a0fd
lea edi, [esp + 0x38]
lea eax, [esp + 0x74]
call fcn.00a37140
mov bl, al
test bl, bl
je 0xa3a0f9
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
push 0
push eax
push ecx
call fcn.00a12830
mov edi, eax
add esp, 0xc
mov dword [esp + 0x64], edi
test edi, edi
je 0xa3a0fd
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x40], 0
jne 0xa3a0fd
mov ecx, dword [edi + 8]
cmp bl, 1
setne al
mov byte [ecx + 0xc], al
mov edx, dword [edi + 8]
mov eax, dword [edx]
mov byte [eax], 0x99
jmp 0xa3a0fd
mov edi, dword [esp + 0x38]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.00a38080
mov edx, dword [esp + 0x30]
movzx ax, bl
push 0
movzx ecx, ax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 8]
push 0
push edi
push edx
push eax
push ecx
call fcn.00a47240
mov edi, eax
add esp, 0x24
mov dword [esp + 0x4c], edi
test edi, edi
jne 0xa3a14f
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00a12fa0
add esp, 8
jmp 0xa3a292
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.00a383a0
add esp, 8
cmp byte [edi + 0x24], 0
je 0xa3a1ac
mov eax, dword [esp + 0x4c]
mov ebx, dword [esi + 0x1c]
cmp dword [esi + 0x20], ebx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x10], ecx
jg 0xa3a184
mov edi, esi
call fcn.00a029c0
test eax, eax
jne 0xa3a1ac
mov eax, dword [esi + 4]
inc dword [esi + 0x1c]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x4c]
push eax
call fcn.00a47ab0
mov eax, dword [ebp + 8]
add esp, 4
lea ecx, [esp + 0x74]
push ecx
call fcn.00a38280
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov ebx, dword [ebp + 8]
add esp, 4
push 8
push edi
push edx
push ebx
mov dword [esp + 0x3c], 0
call fcn.00a163d0
mov eax, dword [ebp + 0x10]
push edi
push edi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push ecx
push eax
push ebx
call fcn.00a32950
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x58]
push edx
push eax
call fcn.00a12fa0
add esp, 0x40
or eax, 0xffffffff
sub eax, dword [esp + 0x40]
js 0xa3a22c
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0xa3a22c
mov edx, dword [esi + 0x1c]
mov dword [ecx + eax*4], edx
cmp byte [esp + 0x9d], 3
mov edi, dword [ebp + 8]
jne 0xa3a245
mov eax, str.DISTINCT
mov ecx, edi
call fcn.00a331a0
cmp dword [esp + 0x2c], 0
je 0xa3a271
mov eax, str.ORDER_BY
mov ecx, edi
call fcn.00a331a0
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
push edx
push esi
push eax
push edi
call fcn.00a333b0
add esp, 0x14
or eax, 0xffffffff
sub eax, dword [esp + 0xdc]
js 0xa3a28a
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0xa3a28a
mov edx, dword [esi + 0x1c]
mov dword [ecx + eax*4], edx
mov dword [esp + 0x34], 0
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0xb8]
mov dword [ebx + 0x1f0], eax
test esi, esi
jne 0xa3a2c9
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 5
jne 0xa3a2c9
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x50]
push edx
push eax
push ebx
call fcn.00a33bd0
add esp, 0xc
mov eax, dword [esp + 0x88]
test eax, eax
je 0xa3a341
cmp dword [edi + 0x200], 0
je 0xa3a312
cmp eax, dword [edi + 0x10c]
jb 0xa3a2fe
cmp eax, dword [edi + 0x110]
jae 0xa3a2fe
movzx eax, word [edi + 0xf0]
mov ecx, dword [edi + 0x200]
add dword [ecx], eax
jmp 0xa3a341
push eax
call dword [0xb24a48]
mov ecx, dword [edi + 0x200]
add esp, 4
add dword [ecx], eax
jmp 0xa3a341
cmp eax, dword [edi + 0x10c]
jb 0xa3a338
cmp eax, dword [edi + 0x110]
jae 0xa3a338
mov ecx, dword [edi + 0x108]
mov dword [eax], ecx
dec dword [edi + 0xf4]
mov dword [edi + 0x108], eax
jmp 0xa3a341
push eax
call fcn.009e7f60
add esp, 4
mov eax, dword [esp + 0x94]
test eax, eax
je 0xa3a3d2
cmp dword [edi + 0x200], 0
je 0xa3a39c
cmp eax, dword [edi + 0x10c]
jb 0xa3a381
cmp eax, dword [edi + 0x110]
jae 0xa3a381
movzx eax, word [edi + 0xf0]
mov edi, dword [edi + 0x200]
add dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [0xb24a48]
mov edi, dword [edi + 0x200]
add esp, 4
add dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [edi + 0x10c]
jb 0xa3a3c9
cmp eax, dword [edi + 0x110]
jae 0xa3a3c9
mov edx, dword [edi + 0x108]
mov dword [eax], edx
dec dword [edi + 0xf4]
mov dword [edi + 0x108], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.009e7f60
add esp, 4
mov eax, esi
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