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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x118
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x74], eax
push edi
mov edi, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x1e4]
mov dword [esp + 0xc8], eax
mov eax, dword [esi + 0x1e8]
mov dword [esi + 0x1e4], eax
inc eax
mov dword [esi + 0x1e8], eax
mov eax, dword [esi]
mov dword [esp + 0x34], 1
mov dword [esp + 0x58], eax
test edi, edi
je 0x4d8ccc
cmp byte [eax + 0x36], 0
jne 0x4d8ccc
cmp dword [esi + 0x44], 0
jne 0x4d8ccc
push 0
push 0
push 0
mov edx, 0x15
call fcn.004bc410
add esp, 0xc
test eax, eax
jne 0x4d8ccc
mov eax, dword [esp + 0x78]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movq qword [esp + 0xb0], xmm0
cmp byte [eax], 4
ja 0x4d7177
mov edx, dword [edi + 0x38]
mov ecx, dword [esp + 0x58]
call fcn.004b4e00
mov eax, 0xfffe
mov dword [edi + 0x38], 0
and word [edi + 6], ax
push 0
mov edx, edi
mov ecx, esi
call fcn.004d6670
mov eax, dword [edi + 0x38]
add esp, 4
cmp dword [esi + 0x44], 0
mov ecx, dword [edi]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4d8c6b
mov edx, dword [esp + 0x58]
cmp byte [edx + 0x36], 0
jne 0x4d8c6b
movzx eax, word [edi + 6]
mov ecx, esi
shr eax, 2
and eax, 1
mov dword [esp + 0x8c], eax
call fcn.004d28c0
mov edi, eax
mov dword [esp + 0x80], edi
test edi, edi
je 0x4d8c63
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x78]
cmp dword [edx], 1
movzx eax, byte [eax]
jle 0x4d720b
cmp eax, 6
je 0x4d71f8
cmp eax, 7
jne 0x4d720b
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push esi
call fcn.0048a980
add esp, 8
jmp 0x4d8c63
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x14], edx
cmp dword [ecx + 0x3c], edx
jne 0x4d7281
mov eax, dword [esp + 0x1c]
mov edi, edi
movsx eax, word [eax]
cmp edx, eax
jge 0x4d7281
mov esi, dword [esp + 0x1c]
mov eax, edx
shl eax, 6
mov dword [esp + 0x5c], eax
mov esi, dword [eax + esi + 0x18]
test esi, esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x2c]
je 0x4d7272
mov edx, dword [esp + 0x1c]
cmp dword [eax + edx + 0x1c], 0
je 0x4d7302
push dword [eax + edx + 0x1c]
mov ecx, edi
push dword [eax + edx + 0x20]
mov edx, 2
call fcn.004a3d20
mov ecx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc edx
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x14], edx
je 0x4d7220
mov edx, dword [ecx + 0x34]
mov eax, dword [ecx]
mov dword [esp + 0x88], edx
movzx edx, word [ecx + 6]
mov dword [esp + 0x20], eax
and edx, 1
cmp dword [ecx + 0x3c], 0
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], edx
je 0x4d74f2
cmp dword [ecx + 0x44], 0
jne 0x4d74c1
xor edi, edi
mov eax, ecx
xor edx, edx
mov dword [eax + 0x40], edi
inc edx
mov dword [eax + 0x44], ecx
mov edi, eax
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x4d72c8
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4d74c1
cmp edx, eax
jle 0x4d74c1
push str.too_many_terms_in_compound_SELECT
push esi
call fcn.0048a980
add esp, 8
jmp 0x4d8c63
call fcn.004b3c10
add dword [esi + 0x1e0], eax
mov ecx, esi
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x90]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004d5730
add esp, 0xc
test eax, eax
je 0x4d7365
cmp dword [esp + 0x3c], 0
je 0x4d7359
mov eax, dword [esp + 0x18]
mov dword [esp + 0x8c], 1
or word [eax + 6], 4
or eax, 0xffffffff
mov dword [esp + 0x14], eax
jmp 0x4d747c
mov edx, dword [esp + 0x5c]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esi + 0x4c], eax
mov dword [edx + ecx + 0x20], eax
mov edx, 7
push eax
push 0
mov ecx, edi
call fcn.004a3d20
mov ecx, dword [esp + 0x64]
add esp, 8
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
inc eax
cmp byte [ecx + edx + 0x26], 0
mov dword [ecx + edx + 0x1c], eax
jne 0x4d73c1
mov ecx, esi
call fcn.004b51e0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + edx + 0x28]
mov dword [esp + 0x110], eax
mov al, byte [esi + 0x1e8]
mov word [esp + 0x10c], 9
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov byte [ecx + edx + 0x27], al
lea eax, [esp + 0x10c]
mov edx, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.004d70a0
mov eax, dword [esp + 0x28]
add esp, 4
movsd xmm0, qword [eax + 0x20]
call fcn.00533591
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + esi + 0x14]
mov esi, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4d7441
mov edx, eax
mov ecx, edi
call fcn.004a41f0
mov eax, dword [esp + 0x5c]
mov edx, 3
mov ecx, dword [esp + 0x1c]
push dword [eax + ecx + 0x20]
mov ecx, edi
call fcn.004a3cc0
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [edi + 0x1c], eax
jbe 0x4d7471
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov byte [esi + 0x13], 0
mov dword [esi + 0x3c], 0
mov eax, dword [esp + 0x58]
cmp byte [eax + 0x36], 0
jne 0x4d8c63
mov ecx, dword [esp + 0x18]
call fcn.004b3c10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
sub dword [esi + 0x1e0], eax
mov eax, dword [ecx + 0x28]
cmp byte [edx], 4
mov dword [esp + 0x1c], eax
jbe 0x4d74b8
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x14]
jmp 0x4d7276
push dword [esp + 0x78]
mov edx, ecx
mov ecx, esi
call fcn.004d2b10
mov edx, dword [esp + 0xcc]
add esp, 4
mov dword [esi + 0x1e4], edx
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x4c]
mov ecx, eax
call fcn.004b8500
test eax, eax
jne 0x4d751d
mov eax, dword [esp + 0x58]
mov ecx, 0
test byte [eax + 0x18], 0x20
mov eax, dword [esp + 0x4c]
cmove eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 6]
and al, 5
cmp al, 1
jne 0x4d766d
mov edx, dword [ecx]
mov ecx, dword [esp + 0x4c]
call fcn.004b8500
test eax, eax
jne 0x4d766d
mov eax, dword [esp + 0x18]
mov ecx, 0xfffe
push 0
and word [eax + 6], cx
mov edx, dword [eax]
mov ecx, dword [esp + 0x5c]
call fcn.004b4620
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x70], ecx
mov dword [eax + 0x30], ecx
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x78]
cmp byte [eax], 9
jne 0x4d75a2
mov edx, dword [esp + 0x20]
mov ecx, edi
push dword [edx]
mov edx, 0x2a
push dword [eax + 4]
call fcn.004a3d20
add esp, 8
mov ecx, edi
call fcn.004a3fb0
movsd xmm0, qword [0x593298]
mov ecx, eax
mov eax, dword [esp + 0x18]
mov edx, eax
mov dword [esp + 0xcc], ecx
push ecx
mov ecx, esi
movsd qword [eax + 0x20], xmm0
call fcn.004d2930
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp dword [ecx + 8], 0
jne 0x4d75f7
mov eax, dword [esp + 0x24]
test eax, eax
js 0x4d75f7
mov edx, eax
mov ecx, edi
call fcn.004a44d0
mov ecx, dword [esp + 0x18]
mov byte [eax], 0x2b
or word [ecx + 6], 0x40
test byte [ecx + 6], 1
je 0x4d76c0
mov eax, dword [esi + 0x48]
mov dword [esp + 0x5c], eax
inc eax
mov dword [esi + 0x48], eax
mov edx, dword [ecx]
mov ecx, esi
call fcn.004d1680
push 0xfffffffffffffff0
push eax
push 0
push 0
push dword [esp + 0x6c]
mov edx, 0x2a
mov ecx, edi
call fcn.004a3d90
mov ecx, dword [edi + 4]
add esp, 0x14
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x4d7645
mov eax, dword [edi + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x8c], 0
mov eax, dword [esp + 0x14]
jne 0x4d7986
test eax, eax
jne 0x4d7986
cmp dword [esp + 0x48], eax
je 0x4d76d5
mov eax, dword [ecx]
jmp 0x4d76d7
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4d7579
mov edx, eax
mov ecx, esi
call fcn.004d1680
mov edx, dword [esp + 0x4c]
mov ecx, eax
mov eax, dword [esi + 0x48]
push 0xfffffffffffffff0
push ecx
mov dword [edx + 4], eax
mov ecx, edi
inc dword [esi + 0x48]
mov eax, dword [edx]
push 0
add eax, 2
push eax
push dword [edx + 4]
mov edx, 0x2a
call fcn.004a3d90
mov ecx, eax
add esp, 0x14
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov dword [eax + 0x18], ecx
jmp 0x4d7581
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
jmp 0x4d7649
xor eax, eax
mov edx, dword [esp + 0x1c]
mov ecx, esi
push 0
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x74]
call fcn.004e3d90
add esp, 0x10
mov dword [esp + 0x48], eax
test eax, eax
je 0x4d8c63
movsd xmm1, qword [eax + 0x30]
mov eax, dword [esp + 0x18]
movsd xmm0, qword [eax + 0x20]
comisd xmm0, xmm1
jbe 0x4d7716
movsd qword [eax + 0x20], xmm1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x4c], ecx
test eax, eax
js 0x4d773e
test ecx, ecx
jne 0x4d773e
mov edx, eax
mov ecx, edi
call fcn.004a4320
mov eax, dword [esp + 0x18]
mov dword [eax + 0x18], 0xffffffff
mov eax, dword [esp + 0x48]
mov cl, byte [eax + 8]
mov byte [esp + 0x13], cl
test cl, cl
je 0x4d794d
mov edx, dword [esp + 0x38]
mov ecx, edi
call fcn.004a44d0
cmp byte [esp + 0x13], 2
mov ecx, eax
mov dword [esp + 0x5c], 0xffffffff
jne 0x4d7946
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x14], eax
push 1
lea edx, [eax + 1]
mov eax, dword [esp + 0x24]
push edx
mov eax, dword [eax]
lea edi, [eax + edx]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x1c]
lea eax, [edi + eax*2]
mov dword [esi + 0x4c], eax
mov eax, edi
mov byte [ecx], 7
mov dword [ecx + 4], 1
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.004b7c50
mov edi, dword [esp + 0x88]
mov edx, 0x1b
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0x1c]
mov eax, dword [eax]
add ecx, 3
add eax, ecx
mov ecx, edi
mov dword [esp + 0x3c], eax
dec eax
push eax
push dword [esp + 0x20]
call fcn.004a3d20
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x38], 0
cmp dword [eax], 0
jle 0x4d78fb
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov eax, dword [esp + 0x74]
inc edx
sub eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x3c], eax
mov edi, edi
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 8]
mov edx, dword [ecx + edx]
mov ecx, esi
call fcn.004b36d0
mov ecx, dword [esp + 0x24]
mov edx, 0x4b
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
add eax, ecx
push eax
push dword [esp + 0x38]
push ecx
mov ecx, edi
call fcn.004a3c00
mov ecx, dword [edi + 4]
add esp, 0xc
mov eax, dword [edi]
mov dword [esp + 0x84], ecx
test ecx, ecx
je 0x4d78ae
cmp byte [eax + 0x36], 0
jne 0x4d78ae
mov eax, dword [edi + 0x1c]
dec eax
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 0x10]
movsx edx, byte [ecx + eax*4 + 1]
mov ecx, dword [edi]
mov dword [esp + 0x54], eax
call fcn.004a4210
mov eax, dword [esp + 0x88]
add esp, 4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x88]
mov dword [eax + ecx*4 + 0x10], 0
test edx, edx
jne 0x4d78a3
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], dl
jmp 0x4d78c5
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], 0xfc
jmp 0x4d78c5
mov edx, dword [esp + 0x88]
mov ecx, eax
push edx
mov edx, 0xfffffffc
call fcn.004a4210
add esp, 4
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4d78d7
mov eax, dword [edi + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x80
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
inc eax
mov ecx, dword [esp + 0x7c]
inc dword [esp + 0x24]
add ecx, 0x14
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], ecx
cmp eax, dword [edx]
jl 0x4d7810
mov eax, dword [esp + 0x48]
mov edx, 1
mov ecx, edi
push dword [eax + 0x14]
push 0
call fcn.004a3d20
push dword [esp + 0x1c]
mov edx, 7
mov ecx, edi
push 0
call fcn.004a3d20
mov eax, dword [esp + 0x30]
mov edx, 0xd
mov ecx, edi
push dword [eax]
mov eax, dword [esp + 0x28]
push dword [esp + 0x88]
inc eax
push eax
call fcn.004a3c00
add esp, 0x1c
jmp 0x4d7949
mov byte [ecx], 0x95
mov eax, dword [esp + 0x48]
push dword [eax + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push dword [eax + 0x14]
push dword [esp + 0x80]
push dword [esp + 0x68]
push dword [esp + 0x5c]
push 0
push 0
push dword [esp + 0x3c]
call fcn.004d1230
mov ecx, dword [esp + 0x68]
add esp, 0x20
call fcn.004e4970
jmp 0x4d8c00
mov dword [esp + 0x50], 0
mov dword [esp + 0x30], 0
test eax, eax
je 0x4d79fc
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
jle 0x4d79bd
add edx, 0x10
xor edi, edi
lea edx, [edx + 0x14]
dec eax
mov word [edx - 0x14], di
test eax, eax
jg 0x4d79a8
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
jle 0x4d79e2
add edx, 0x10
lea ecx, [ecx]
xor esi, esi
lea edx, [edx + 0x14]
dec eax
mov word [edx - 0x14], si
test eax, eax
jg 0x4d79d0
mov esi, dword [esp + 0x2c]
movsd xmm0, qword [ecx + 0x20]
movsd xmm1, qword [0x593228]
comisd xmm0, xmm1
jbe 0x4d7a09
movsd qword [ecx + 0x20], xmm1
jmp 0x4d7a09
movsd xmm0, qword [0x5931d8]
movsd qword [ecx + 0x20], xmm0
mov ecx, edi
call fcn.004a3fb0
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
movdqa xmmword [esp + 0xd0], xmm0
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x90]
movdqa xmmword [esp + 0xe0], xmm0
mov dword [esp + 0xd0], esi
mov dword [esp + 0xdc], eax
test ecx, ecx
je 0x4d7a5d
mov eax, dword [ecx]
inc eax
mov dword [esp + 0x9c], eax
jmp 0x4d7a68
mov dword [esp + 0x9c], 0
mov edx, dword [esp + 0x20]
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0xd0]
call fcn.004b8910
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0xd0]
call fcn.004b8910
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4d7ad8
xorps xmm0, xmm0
lea ecx, [esp + 0xd0]
movdqa xmmword [esp + 0xf0], xmm0
mov edx, eax
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0xf0]
mov dword [esp + 0xf0], 0x4b8630
mov dword [esp + 0xf4], fcn.0040f5b0
call fcn.004b1d10
cmp dword [esp + 0xb4], 0
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xac], eax
jle 0x4d7b4a
mov al, byte [esp + 0xec]
xor esi, esi
xor edi, edi
jmp 0x4d7b00
or al, 8
lea ecx, [esp + 0xd0]
mov byte [esp + 0xec], al
mov eax, dword [esp + 0xb0]
mov edx, dword [eax + esi]
mov edx, dword [edx + 0x10]
call fcn.004b8910
mov al, byte [esp + 0xec]
lea esi, [esi + 0x10]
and al, 0xf7
inc edi
mov byte [esp + 0xec], al
cmp edi, dword [esp + 0xb4]
jl 0x4d7b00
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x58]
cmp byte [eax + 0x36], 0
jne 0x4d8c63
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4d885b
mov eax, dword [esi + 0x48]
mov edx, ecx
mov dword [esp + 0x94], eax
mov ecx, esi
inc eax
mov dword [esi + 0x48], eax
call fcn.004d1680
push 0xfffffffffffffff0
push eax
push 0
push dword [esp + 0xa8]
mov edx, 0x2b
mov dword [esp + 0x54], eax
push dword [esp + 0xa4]
mov ecx, edi
call fcn.004a3d90
inc dword [esi + 0x4c]
add esp, 0x14
mov dword [esp + 0x28], eax
mov ecx, edi
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x64], eax
add eax, 2
mov dword [esi + 0x4c], eax
call fcn.004a3fb0
inc dword [esi + 0x4c]
mov ecx, edi
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x38], eax
call fcn.004a3fb0
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
lea eax, [ecx + 1]
add ecx, dword [edx]
mov dword [esp + 0x84], eax
mov dword [esi + 0x4c], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov eax, dword [edx]
mov edx, 7
add eax, ecx
mov ecx, edi
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x64]
inc eax
push eax
push 0
call fcn.004a3d20
push dword [esp + 0x6c]
mov edx, 7
mov ecx, edi
push 0
call fcn.004a3d20
mov eax, dword [esp + 0x24]
mov edx, 0xa
mov ecx, dword [esp + 0x94]
mov eax, dword [eax]
dec eax
add eax, ecx
push eax
push ecx
push 0
mov ecx, edi
call fcn.004a3c00
add esp, 0x1c
mov edx, 2
mov ecx, edi
push dword [esp + 0x7c]
push dword [esp + 0x3c]
call fcn.004a3d20
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x78]
push 0
push 0
push eax
push dword [esp + 0x7c]
mov ecx, esi
call fcn.004e3d90
add esp, 0x18
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4d8c63
mov eax, dword [esp + 0x70]
mov dword [esp + 0x8c], eax
test eax, eax
jne 0x4d7ca5
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 0x30]
mov dword [esp + 0x8c], eax
jmp 0x4d80cb
cmp dword [esp + 0x48], 0
je 0x4d7cbb
mov eax, dword [esp + 0x18]
mov edx, str.DISTINCT
test byte [eax + 6], 1
je 0x4d7cc0
mov edx, str.GROUP_BY
mov ecx, esi
call fcn.004d1760
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], 1
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
inc eax
mov dword [esp + 0x30], eax
mov edx, eax
mov dword [esp + 0x68], eax
mov ecx, eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x50], eax
test eax, eax
jle 0x4d7d13
mov eax, dword [esp + 0xa4]
add eax, 0xc
nop
cmp dword [eax], ecx
jl 0x4d7d06
inc edx
inc ecx
add eax, 0x18
dec dword [esp + 0x50]
jne 0x4d7d00
mov dword [esp + 0x68], edx
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], eax
cmp edx, ecx
jg 0x4d7d2d
add eax, edx
sub ecx, edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], ecx
jmp 0x4d7d3c
mov eax, dword [esi + 0x4c]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x14], ecx
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.004b65f0
mov edx, dword [esp + 0x70]
push 0
push dword [esp + 0x18]
call fcn.004b7c50
mov eax, dword [esp + 0x9c]
add esp, 8
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x34], eax
cmp dword [edi + 0x20], eax
jg 0x4d7d7b
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d7dba
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 4]
lea edx, [eax + eax*4]
inc dword [edi + 0x1c]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x80]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x6c]
mov word [ecx + edx*4], 0x37
mov byte [ecx + edx*4 + 3], 0
mov dword [ecx + edx*4 + 8], eax
mov dword [ecx + edx*4 + 0xc], 0
mov dword [ecx + edx*4 + 0x10], 0
cmp dword [esp + 0xa8], 0
mov dword [esp + 0x50], 0
jle 0x4d7ead
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x34], eax
jmp 0x4d7df0
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x30]
cmp dword [edx + eax + 0xc], esi
mov esi, dword [esp + 0x2c]
jl 0x4d7e90
push 0
push ecx
push dword [edx + eax + 4]
mov ecx, esi
push dword [edx + eax + 8]
mov edx, dword [edx + eax]
call fcn.004b6550
mov ecx, dword [esp + 0x80]
add esp, 0x10
mov dword [esp + 0x40], eax
cmp ecx, eax
je 0x4d7e83
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x6c], eax
cmp dword [edi + 0x20], eax
jg 0x4d7e4b
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d7e7f
mov eax, dword [esp + 0x6c]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x70]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x70]
inc dword [esp + 0x30]
inc ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x50]
add eax, 0x18
inc edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], edx
cmp edx, dword [esp + 0xa8]
jl 0x4d7df0
mov al, byte [esi + 0x13]
test al, al
jne 0x4d7ebc
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
jmp 0x4d7ec8
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
cmp dword [edi + 0x20], eax
jg 0x4d7ee7
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d7f1b
mov eax, dword [esp + 0x40]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x1f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
cmp dword [edi + 0x20], eax
jg 0x4d7f41
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d7f77
mov eax, dword [esp + 0x40]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x60
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d7f7b
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4d7fb0
mov al, byte [esi + 0x13]
mov byte [esp + 0x13], al
cmp al, 8
jae 0x4d7fb0
xor ecx, ecx
lea eax, [esi + 0x64]
nop
cmp dword [eax + 0x10], edx
je 0x4d7fac
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x4d7f90
movzx eax, byte [esp + 0x13]
mov dword [esi + eax*4 + 0x1c], edx
inc byte [esi + 0x13]
jmp 0x4d7fb0
mov byte [eax + 8], 1
push dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.004b6360
mov eax, dword [esp + 0x6c]
add esp, 4
cmp eax, dword [esi + 0x3c]
jle 0x4d7fd5
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0x3c]
call fcn.004e4970
mov eax, dword [esi + 0x48]
mov dword [esp + 0x50], eax
mov dword [esp + 0x98], eax
inc eax
mov dword [esi + 0x48], eax
mov al, byte [esi + 0x13]
test al, al
jne 0x4d8003
inc dword [esi + 0x4c]
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x30], ecx
jmp 0x4d8013
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
cmp dword [edi + 0x20], eax
jg 0x4d802e
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8062
mov eax, dword [esp + 0x40]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x68]
mov word [eax + ecx*4], 0x2c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
cmp dword [edi + 0x20], eax
jg 0x4d8088
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d80bc
mov eax, dword [esp + 0x40]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, esi
mov byte [esp + 0x91], 1
call fcn.004b65f0
mov eax, dword [edi + 0x1c]
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.004b65f0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4d813f
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
cmp dword [edi + 0x20], eax
jg 0x4d8107
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d813b
mov eax, dword [esp + 0x40]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x3e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x8c]
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [edx], ecx
jle 0x4d8205
test eax, eax
je 0x4d81c7
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
cmp dword [edi + 0x20], eax
jg 0x4d8173
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d81ab
mov eax, dword [esp + 0x40]
mov ecx, dword [edi + 4]
lea edx, [eax + eax*4]
inc dword [edi + 0x1c]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + edx*4 + 8], eax
add eax, dword [esp + 0x24]
mov word [ecx + edx*4], 0x1d
mov byte [ecx + edx*4 + 3], 0
mov dword [ecx + edx*4 + 0xc], eax
mov dword [ecx + edx*4 + 0x10], 0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x4d81ed
mov edx, dword [edi + 4]
test edx, edx
je 0x4d81ed
mov eax, dword [edi + 0x1c]
lea eax, [eax + eax*4]
mov byte [edx + eax*4 - 0x11], 0x20
jmp 0x4d81ed
mov eax, dword [esp + 0x24]
mov byte [esp + 0x90], 1
add eax, ecx
mov edx, dword [edx + 8]
push eax
lea eax, [ecx + ecx*4]
mov ecx, esi
mov edx, dword [edx + eax*4]
call fcn.004b7910
mov ecx, dword [esp + 0x34]
add esp, 4
mov edx, dword [esp + 0x8c]
inc ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
cmp ecx, dword [edx]
jl 0x4d8154
mov eax, dword [edx]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x40], edx
cmp dword [edi + 0x20], edx
jg 0x4d822d
mov ecx, edi
call fcn.004a3b80
test eax, eax
je 0x4d8229
mov edx, 1
jmp 0x4d8268
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
inc dword [edi + 0x1c]
mov esi, dword [esp + 0x84]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x18
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffa
push dword [esp + 0x48]
mov ecx, edi
call fcn.004a4360
mov eax, dword [edi + 0x1c]
add esp, 8
mov dword [esp + 0x34], eax
cmp dword [edi + 0x20], eax
jg 0x4d8293
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d82c4
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 4]
lea esi, [eax + eax*4]
inc dword [edi + 0x1c]
inc eax
mov word [ecx + esi*4], 0x19
mov byte [ecx + esi*4 + 3], 0
mov dword [ecx + esi*4 + 4], eax
mov dword [ecx + esi*4 + 8], 0
mov dword [ecx + esi*4 + 0xc], eax
mov dword [ecx + esi*4 + 0x10], 0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x8c]
mov ecx, esi
mov edx, dword [esp + 0x24]
push dword [eax]
push dword [esp + 0x88]
call fcn.004b6800
mov eax, dword [edi + 0x1c]
add esp, 8
mov dword [esp + 0x44], eax
cmp dword [edi + 0x20], eax
jg 0x4d82fd
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d833f
mov eax, dword [esp + 0x44]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
add edx, 2
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x44], eax
cmp dword [edi + 0x20], eax
jg 0x4d835a
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8393
mov eax, dword [esp + 0x44]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x2c]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 0x78
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x44], eax
cmp dword [edi + 0x20], eax
jg 0x4d83ae
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d83e2
mov eax, dword [esp + 0x44]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x34]
test eax, eax
js 0x4d83fb
mov edx, dword [edi + 0x1c]
cmp edx, eax
jbe 0x4d83fb
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], edx
lea edx, [esp + 0x90]
mov ecx, esi
call fcn.004d6a80
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x44], eax
cmp dword [edi + 0x20], eax
jg 0x4d8424
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8458
mov eax, dword [esp + 0x44]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4d84c0
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x44], eax
cmp dword [edi + 0x20], eax
jg 0x4d848a
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d850a
mov eax, dword [esp + 0x44]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x68]
mov word [eax + ecx*4], 0x51
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d850a
mov ecx, dword [esp + 0x3c]
call fcn.004e4970
mov eax, dword [edi + 4]
mov dword [esp + 0x44], eax
test eax, eax
je 0x4d850a
mov ecx, dword [esp + 0x28]
lea esi, [ecx + ecx*4]
mov ecx, dword [edi]
push dword [eax + esi*4 + 0x10]
movsx edx, byte [eax + esi*4 + 1]
call fcn.004a4210
mov eax, dword [esp + 0x48]
xorps xmm0, xmm0
add esp, 4
movdqu xmmword [eax + esi*4], xmm0
mov dword [eax + esi*4 + 0x10], 0
mov byte [eax + esi*4], 0x95
mov esi, dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d8525
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8567
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
add edx, 2
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d8582
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d85b6
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x34], eax
cmp dword [edi + 0x20], eax
jg 0x4d85d1
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d860a
mov eax, dword [esp + 0x34]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x2c]
inc edx
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d8625
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8667
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
add edx, 2
mov esi, dword [esp + 0x2c]
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4d8680
mov eax, dword [esp + 0x74]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x1c]
mov dword [ecx], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x20], eax
jg 0x4d869b
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d86d2
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
lea edx, [eax + eax*4]
inc dword [edi + 0x1c]
add eax, 2
mov esi, dword [esp + 0x64]
mov dword [ecx + edx*4 + 4], esi
mov esi, dword [esp + 0x2c]
mov word [ecx + edx*4], 0x78
mov byte [ecx + edx*4 + 3], 0
mov dword [ecx + edx*4 + 8], eax
mov dword [ecx + edx*4 + 0xc], 0
mov dword [ecx + edx*4 + 0x10], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d86ed
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d872f
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
add edx, 2
mov esi, dword [esp + 0x2c]
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea edx, [esp + 0x90]
mov ecx, esi
call fcn.004d6970
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x88]
inc esi
mov ecx, dword [esp + 0x2c]
push 8
push esi
call fcn.004b80c0
push dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov edx, eax
push esi
push dword [esp + 0x88]
mov esi, dword [esp + 0x40]
mov ecx, esi
push dword [esp + 0x70]
push dword [esp + 0x64]
push 0
push 0
push dword [eax]
call fcn.004d1230
mov eax, dword [edi + 0x1c]
add esp, 0x28
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d879e
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d87dc
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
add edx, 2
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4d87f5
mov eax, dword [esp + 0x7c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x1c]
mov dword [ecx], eax
lea edx, [esp + 0x90]
mov ecx, esi
call fcn.004d6700
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d8822
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8be7
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d8be7
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x90]
mov dword [esp + 0x84], 0
call fcn.004d5d50
mov dword [esp + 0x24], eax
test eax, eax
je 0x4d8a99
mov ecx, dword [esi]
mov edx, dword [eax + 0x44]
call fcn.004cfcf0
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x7c], eax
inc eax
mov dword [esi + 0x48], eax
mov eax, dword [edx + 0x14]
mov edx, ecx
mov dword [esp + 0x34], ecx
mov ecx, esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x3c], eax
call fcn.004c1120
mov eax, dword [esp + 0x24]
mov ecx, esi
mov edx, dword [esp + 0x34]
push dword [eax]
push 0
push dword [eax + 0x14]
call fcn.004bc4a0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4d892e
xor esi, esi
cmp byte [ecx + 0x2e], 0
jne 0x4d88fb
test esi, esi
je 0x4d88f9
mov eax, dword [ecx + 0x24]
cmp eax, dword [esi + 0x24]
jge 0x4d88fb
mov esi, ecx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4d88e7
mov dword [esp + 0x74], esi
test esi, esi
mov esi, dword [esp + 0x2c]
je 0x4d892e
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 0x24]
cmp eax, dword [edx + 8]
jge 0x4d892e
mov eax, dword [ecx + 0x28]
mov edx, ecx
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.004c16f0
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d8949
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d897d
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x27
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4d89d6
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4d89c6
cmp byte [eax + 0x36], 0
jne 0x4d89c6
mov eax, dword [edi + 0x1c]
dec eax
lea esi, [eax + eax*4]
push dword [ecx + esi*4 + 0x10]
movsx edx, byte [ecx + esi*4 + 1]
mov ecx, dword [edi]
call fcn.004a4210
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dword [eax + esi*4 + 0x10], ecx
mov byte [eax + esi*4 + 1], 0xfa
mov esi, dword [esp + 0x30]
jmp 0x4d89d3
push edx
mov edx, 0xfffffff0
mov ecx, eax
call fcn.004a4210
add esp, 4
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d89ff
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8a33
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x20
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x20], eax
jg 0x4d8a4e
mov ecx, edi
call fcn.004a3b80
test eax, eax
jne 0x4d8a82
mov eax, dword [esp + 0x28]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x7c]
mov word [eax + ecx*4], 0x2d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x74]
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.004d6f90
add esp, 4
jmp 0x4d8b94
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], 0
call fcn.004d5ce0
mov byte [esp + 0x13], al
test al, al
je 0x4d8aff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
push 0
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
call fcn.004b4620
mov edx, eax
add esp, 4
mov dword [esp + 0x84], edx
mov dword [esp + 0x38], edx
test edx, edx
je 0x4d8aff
mov eax, dword [esp + 0x58]
cmp byte [eax + 0x36], 0
jne 0x4d8aff
mov eax, dword [edx + 8]
cmp byte [esp + 0x13], 1
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov byte [eax], 0x98
lea edx, [esp + 0x90]
mov ecx, esi
call fcn.004d6700
movzx eax, byte [esp + 0x13]
mov ecx, esi
mov edx, dword [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x74]
call fcn.004e3d90
add esp, 0x10
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4d8b49
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x58]
call fcn.004b4e00
jmp 0x4d8c63
lea edx, [esp + 0x90]
mov ecx, esi
call fcn.004d6a80
cmp dword [esp + 0x38], 0
jne 0x4d8b7d
cmp byte [esp + 0x13], 0
je 0x4d8b7d
mov eax, dword [esp + 0x3c]
mov edx, 1
mov ecx, edi
push dword [eax + 0x18]
push 0
call fcn.004a3d20
add esp, 8
mov ecx, dword [esp + 0x3c]
call fcn.004e4970
lea edx, [esp + 0x90]
mov ecx, esi
call fcn.004d6970
mov edx, dword [esp + 0x88]
mov ecx, esi
push 8
push dword [esp + 0x64]
mov dword [esp + 0x54], 0
call fcn.004b80c0
mov eax, dword [esp + 0x68]
mov ecx, esi
push eax
push eax
push dword [esp + 0x88]
mov eax, dword [esp + 0x2c]
mov edx, eax
push 0xffffffffffffffff
push 0
push 0
push 0
push dword [eax]
call fcn.004d1230
mov edx, dword [esp + 0xac]
add esp, 0x28
mov ecx, dword [esp + 0x58]
call fcn.004b4e00
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4d8c00
mov eax, dword [esp + 0x60]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x1c]
mov dword [ecx], eax
cmp dword [esp + 0x5c], 0
jl 0x4d8c13
mov edx, str.DISTINCT
mov ecx, esi
call fcn.004d1760
cmp dword [esp + 0x4c], 0
je 0x4d8c3f
mov edx, str.ORDER_BY
mov ecx, esi
call fcn.004d1760
mov eax, dword [esp + 0x20]
mov ecx, esi
push dword [esp + 0x78]
mov edx, dword [esp + 0x1c]
push dword [eax]
push edi
call fcn.004d1980
add esp, 0xc
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4d8c5b
mov eax, dword [esp + 0xcc]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x1c]
mov dword [ecx], eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0xc8]
mov dword [esi + 0x1e4], edx
test edi, edi
jne 0x4d8c96
mov edx, dword [esp + 0x78]
cmp byte [edx], 5
jne 0x4d8c96
push ecx
mov edx, eax
mov ecx, esi
call fcn.004d22b0
add esp, 4
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x58]
call fcn.004887b0
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x58]
call fcn.004887b0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret