Function at 0x46197b
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
push ebx
mov ebx, ecx
xor ecx, ecx
inc ecx
mov dword [esp + 0x40], ebx
push esi
push edi
mov eax, dword [ebx + 0x19c]
mov edi, edx
mov dword [esp + 0xb8], eax
mov eax, dword [ebx + 0x1a0]
mov dword [ebx + 0x19c], eax
inc eax
mov dword [ebx + 0x1a0], eax
mov eax, dword [ebx]
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], eax
test edi, edi
je 0x462bbc
cmp byte [eax + 0x45], 0
jne 0x462bbc
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x462bbc
push eax
push eax
push eax
push 0x15
pop edx
mov ecx, ebx
call fcn.0044e34f
add esp, 0xc
test eax, eax
je 0x4619fc
xor eax, eax
inc eax
jmp 0x462bbe
push 0x30
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.0047b750
mov eax, dword [ebp + 8]
add esp, 0xc
mov esi, dword [esp + 0x30]
cmp byte [eax], 8
ja 0x461a2e
mov edx, dword [edi + 0x2c]
mov ecx, esi
call fcn.00448b14
and dword [edi + 0x2c], 0
and dword [edi + 8], 0xfffffffe
push 0
mov edx, edi
mov ecx, ebx
call fcn.00461493
pop ecx
push 0x20
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.0047b750
mov eax, dword [edi + 0x2c]
add esp, 0xc
cmp dword [ebx + 0x24], 0
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x1c], eax
jne 0x462b89
cmp byte [esi + 0x45], 0
jne 0x462b89
mov eax, dword [edi + 8]
mov ecx, ebx
shr eax, 3
and eax, 1
mov dword [esp + 0x2c], eax
call fcn.0045eb3f
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x462b89
mov eax, dword [ebp + 8]
cmp byte [eax], 9
jne 0x461aa3
mov edx, edi
mov ecx, ebx
call fcn.0045e5c7
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x14], edx
cmp dword [edi + 0x30], edx
jne 0x461b68
mov ecx, dword [esp + 0x1c]
cmp edx, dword [ecx]
jge 0x461b68
imul eax, edx, 0x50
mov esi, dword [eax + ecx + 0x1c]
mov eax, dword [eax + ecx + 0x18]
mov dword [esp + 0x3c], eax
mov eax, esi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x20]
test eax, eax
je 0x461b56
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
movsx ecx, word [ecx + 0x2a]
cmp ecx, dword [eax]
mov eax, dword [esp + 0x34]
jne 0x461b8b
mov eax, dword [eax + 8]
mov ecx, ebx
shr eax, 3
and eax, 1
push eax
push dword [esp + 0x30]
mov dword [esp + 0x20], eax
push edx
mov edx, edi
call fcn.004601c1
add esp, 0xc
test eax, eax
je 0x461b2e
cmp dword [esp + 0x18], 0
je 0x461b29
push 8
pop eax
or dword [edi + 8], eax
mov dword [esp + 0x2c], 1
or edx, 0xffffffff
jmp 0x461b32
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x1c], ecx
cmp byte [eax + 0x45], 0
jne 0x462b89
mov eax, dword [ebp + 8]
cmp byte [eax], 8
jbe 0x461b59
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
inc edx
cmp dword [edi + 0x30], 0
mov dword [esp + 0x14], edx
je 0x461ab6
cmp dword [edi + 0x30], 0
je 0x461bad
push eax
mov edx, edi
mov ecx, ebx
call fcn.0045f052
pop ecx
mov ecx, dword [esp + 0xb8]
mov dword [ebx + 0x19c], ecx
jmp 0x462bbe
mov eax, dword [eax]
push dword [eax]
mov eax, dword [esp + 0x40]
push dword [eax]
movsx eax, word [eax + 0x2a]
push eax
push str.expected__d_columns_for__s_but_got__d
push ebx
call fcn.00425127
add esp, 0x14
jmp 0x462b89
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x34], eax
cmp dword [ecx], eax
jle 0x461e71
imul eax, eax, 0x50
add eax, 8
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x461bef
push dword [ecx + 4]
push 0x4a3288
push dword [ecx + 8]
mov ecx, ebx
push 0x14
pop edx
call fcn.0044e34f
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
je 0x461e5c
cmp dword [ecx + 0x18], 0
je 0x461c25
test byte [ecx + 0x28], 0x10
jne 0x461e5c
push dword [ecx + 0x18]
push dword [ecx + 0x1c]
mov ecx, esi
push 0xe
pop edx
call fcn.00439d92
pop ecx
pop ecx
jmp 0x461e5c
mov ecx, edi
call fcn.00447bcf
mov edx, dword [esp + 0x10]
add dword [ebx + 0x198], eax
test byte [edx + 0x24], 0x20
jne 0x461c53
push dword [edx + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, ebx
push dword [edi + 0x20]
call fcn.004606ff
mov edx, dword [esp + 0x18]
pop ecx
pop ecx
cmp dword [esp + 0x34], 0
jne 0x461d32
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
je 0x461c71
test byte [eax + 0x7c], 0xa
je 0x461d32
test byte [edi + 8], 2
jne 0x461d32
mov eax, dword [esp + 0x30]
mov ecx, 0x100
test word [eax + 0x40], cx
jne 0x461d32
mov ecx, esi
call fcn.0043a10e
mov ecx, dword [esp + 0x20]
lea esi, [eax + 1]
mov eax, dword [ebx + 0x2c]
push esi
inc eax
push 0
push eax
mov dword [ebx + 0x2c], eax
mov dword [edx + 0x1c], eax
push 0xf
pop edx
call fcn.00439d0e
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc8]
add esp, 0xc
mov dword [eax + 0x18], esi
push dword [eax + 0x1c]
push 0xd
pop edx
call fcn.0045cf3f
mov ecx, dword [esp + 0x14]
add esp, 4
mov al, byte [ebx + 0x1a0]
mov edx, dword [esp + 0x24]
mov byte [ecx + 0x2c], al
lea eax, [esp + 0xbc]
push eax
mov ecx, ebx
call fcn.0046197b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
pop ecx
mov ecx, dword [edx + 0x10]
mov ax, word [eax + 6]
mov word [ecx + 0x2c], ax
mov eax, dword [esp + 0xc4]
or dword [edx + 0x28], 0x10
mov ecx, dword [esp + 0x20]
mov dword [edx + 0x20], eax
mov edx, dword [edx + 0x1c]
call fcn.00439f41
lea edx, [esi - 1]
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0043a243
jmp 0x461e3a
xor eax, eax
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
inc eax
push eax
push 0
mov dword [ebx + 0x2c], eax
mov dword [edx + 0x1c], eax
push 0x38
pop edx
call fcn.00439d92
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
inc eax
test byte [ecx + 0x28], 8
mov dword [ecx + 0x18], eax
jne 0x461d75
push 0x14
pop edx
mov ecx, esi
call fcn.00439d70
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov edx, ecx
mov ecx, dword [esp + 0x1c]
call fcn.00461913
mov dword [esp + 0x18], eax
test eax, eax
je 0x461dbd
push dword [eax + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, esi
push dword [eax + 0x30]
push 0x6a
pop edx
call fcn.00439d92
mov edx, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov al, byte [edx + 0x2c]
mov byte [ecx + 0x2c], al
mov eax, dword [edx + 0x14]
mov ecx, dword [esp + 0x24]
mov ax, word [eax + 6]
mov word [ecx + 6], ax
jmp 0x461df7
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xbc]
push dword [eax + 0x30]
push 0xc
pop edx
call fcn.0045cf3f
mov ecx, dword [esp + 0x14]
add esp, 4
mov al, byte [ebx + 0x1a0]
mov edx, dword [esp + 0x24]
mov byte [ecx + 0x2c], al
lea eax, [esp + 0xbc]
push eax
mov ecx, ebx
call fcn.0046197b
pop ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
mov ax, word [eax + 6]
mov word [ecx + 0x2c], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x461e1b
mov edx, eax
mov ecx, esi
call fcn.0043a243
mov eax, dword [esp + 0x10]
mov ecx, esi
push dword [eax + 0x1c]
push 0x34
pop edx
call fcn.00439d7e
mov edx, dword [esp + 0x44]
pop ecx
push eax
mov ecx, esi
call fcn.0043a1fb
pop ecx
mov ecx, ebx
call fcn.0044c0c5
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x45], 0
jne 0x462b89
mov ecx, edi
call fcn.00447bcf
sub dword [ebx + 0x198], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [ecx]
jl 0x461bbf
mov eax, dword [edi + 0x20]
xor ecx, ecx
mov edx, dword [edi]
inc ecx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x4c], eax
mov al, byte [edi + 8]
and al, cl
mov dword [esp + 0x24], edx
mov byte [esp + 0xf], al
mov byte [esp + 0xbc], al
mov eax, dword [edi + 8]
and al, 9
cmp al, cl
jne 0x461ed2
mov ecx, dword [esp + 0x68]
push 0xffffffffffffffff
call fcn.0044baf5
pop ecx
test eax, eax
jne 0x461ed2
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
and dword [edi + 8], 0xfffffffe
push eax
call fcn.00448455
pop ecx
mov dword [esp + 0x10], eax
mov dword [edi + 0x24], eax
mov edx, dword [esp + 0x68]
test edx, edx
je 0x461f24
mov eax, dword [esp + 0x24]
mov ecx, ebx
push dword [eax]
push 0
call fcn.0045dfaa
mov edx, dword [ebx + 0x28]
mov ecx, eax
push 0xfffffffffffffff7
push ecx
mov dword [esp + 0x80], edx
lea eax, [edx + 1]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x34]
push 0
mov ecx, dword [eax]
mov eax, dword [esp + 0x7c]
inc ecx
mov eax, dword [eax]
add eax, ecx
mov ecx, esi
push eax
push edx
push 0x6c
pop edx
call fcn.00439e58
add esp, 0x1c
mov dword [esp + 0x7c], eax
jmp 0x461f29
or dword [esp + 0x7c], 0xffffffff
mov eax, dword [ebp + 8]
cmp byte [eax], 0xc
jne 0x461f46
mov ecx, dword [esp + 0x24]
push dword [ecx]
mov ecx, esi
push dword [eax + 4]
push 0x6c
pop edx
call fcn.00439d92
pop ecx
pop ecx
mov ecx, esi
call fcn.00439f5e
mov ecx, 0x4000
mov dword [esp + 0xdc], eax
test dword [edi + 8], ecx
jne 0x461f67
mov ecx, 0x140
mov word [edi + 6], cx
push eax
mov edx, edi
mov ecx, ebx
call fcn.0045eb4e
cmp dword [edi + 0xc], 0
pop ecx
jne 0x461f92
mov edx, dword [esp + 0x7c]
test edx, edx
js 0x461f92
push 0x6d
mov ecx, esi
call fcn.0043a1ec
or byte [esp + 0x88], 1
pop ecx
test byte [edi + 8], 1
je 0x461fea
mov esi, dword [ebx + 0x28]
push 0xfffffffffffffff7
push ecx
push 0
lea eax, [esi + 1]
mov dword [esp + 0xcc], esi
mov dword [ebx + 0x28], eax
mov ecx, ebx
mov edx, dword [edi]
push 0
call fcn.0045dfaa
add esp, 0xc
push eax
push 0
push 0
push esi
mov esi, dword [esp + 0x34]
mov ecx, esi
push 0x6c
pop edx
call fcn.00439e58
add esp, 0x14
mov dword [esp + 0xc4], eax
mov ecx, esi
push 8
pop eax
mov edx, eax
call fcn.0043a22b
push 3
pop eax
jmp 0x461fec
xor al, al
cmp dword [esp + 0x2c], 0
mov byte [esp + 0xbd], al
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
jne 0x46211b
test eax, eax
jne 0x46211b
xor ecx, ecx
mov eax, 0x100
cmp byte [esp + 0xf], cl
mov edx, 0x4000
cmovne ecx, eax
mov ax, word [edi + 8]
and ax, dx
mov edx, dword [esp + 0x1c]
or cx, ax
movsx eax, word [edi + 6]
push eax
movzx ecx, cx
push ecx
push dword [edi]
mov ecx, ebx
push dword [esp + 0x74]
push dword [esp + 0x48]
call fcn.0046dc16
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x462b89
call fcn.00469e6e
cmp ax, word [edi + 6]
jge 0x462069
mov word [edi + 6], ax
cmp byte [esp + 0xf], 0
je 0x462095
call fcn.00469e73
mov edx, dword [esp + 0x34]
mov ecx, eax
test ecx, ecx
movzx eax, cl
mov ecx, dword [esp + 0x4c]
movzx edx, dl
cmovne edx, eax
mov dword [esp + 0x34], edx
mov byte [esp + 0xbd], dl
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4620c7
call fcn.00469e78
mov edx, eax
mov dword [esp + 0x6c], edx
call fcn.00469e7d
mov byte [esp + 0x85], al
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp edx, dword [eax]
cmove eax, ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x7c]
test edx, edx
js 0x4620da
test eax, eax
jne 0x4620da
mov ecx, esi
call fcn.0043a38a
mov ecx, dword [esp + 0x4c]
call fcn.0040a704
push eax
call fcn.00469e82
push eax
mov eax, dword [ebp + 8]
mov edx, edi
push eax
lea eax, [esp + 0xc8]
mov ecx, ebx
push eax
lea eax, [esp + 0x78]
push eax
push 0xffffffffffffffff
push dword [esp + 0x3c]
call fcn.0045d876
mov ecx, dword [esp + 0x68]
add esp, 0x1c
call fcn.0046e436
jmp 0x462b22
and dword [esp + 0x44], 0
and dword [esp + 0x18], 0
test eax, eax
je 0x46216a
mov edx, dword [edi]
mov ecx, dword [edx]
test ecx, ecx
jle 0x462145
add edx, 0x1e
xor esi, esi
dec ecx
mov word [edx], si
lea edx, [edx + 0x18]
test ecx, ecx
jg 0x462134
mov esi, dword [esp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
jle 0x46215f
lea edx, [eax + 0x1e]
xor esi, esi
dec ecx
mov word [edx], si
lea edx, [edx + 0x18]
test ecx, ecx
jg 0x46214e
mov esi, dword [esp + 0x20]
push 0x42
pop ecx
cmp word [edi + 6], cx
jle 0x462170
jmp 0x46216c
xor ecx, ecx
mov word [edi + 6], cx
mov edx, dword [esp + 0x68]
mov ecx, eax
push 0xffffffffffffffff
call fcn.0044baf5
pop ecx
xor ecx, ecx
test eax, eax
push 1
pop eax
cmove ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, esi
call fcn.00439f5e
push 0x20
mov dword [esp + 0x58], eax
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.0047b750
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x94]
mov dword [esp + 0xf8], eax
add esp, 0xc
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xe4], ecx
inc eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xe0], ebx
mov dword [esp + 0x98], eax
test ecx, ecx
je 0x4621e9
mov eax, dword [ecx]
mov dword [esp + 0x94], eax
jmp 0x4621f1
and dword [esp + 0x94], 0
mov edx, dword [esp + 0x24]
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0xe0]
call fcn.0044bfc5
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0xe0]
call fcn.0044bfc5
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x46224f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x462243
lea ecx, [edi + 0x20]
push ecx
push edx
mov edx, eax
mov ecx, ebx
call fcn.004618d1
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x54]
pop ecx
pop ecx
mov dword [esp + 0x38], eax
lea ecx, [esp + 0xe0]
call fcn.0044bf97
and dword [esp + 0x14], 0
cmp dword [esp + 0xb4], 0
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xac], edx
jle 0x4622d9
mov ax, word [esp + 0xfc]
xor edi, edi
mov esi, dword [esp + 0x14]
push 8
pop ebx
or ax, bx
lea ecx, [esp + 0xe0]
mov word [esp + 0xfc], ax
mov eax, dword [esp + 0xb0]
mov edx, dword [eax + edi]
mov edx, dword [edx + 0x14]
call fcn.0044bfc5
mov ax, word [esp + 0xfc]
lea edi, [edi + 0x10]
mov ecx, 0xfff7
and ax, cx
inc esi
mov word [esp + 0xfc], ax
cmp esi, dword [esp + 0xb4]
jl 0x46227d
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x45], 0
jne 0x462b89
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x462894
mov eax, dword [ebx + 0x28]
push edx
mov dword [esp + 0x90], eax
mov edx, ecx
inc eax
mov ecx, ebx
push 0
mov dword [ebx + 0x28], eax
call fcn.0045dfaa
push 0xfffffffffffffff7
push eax
push 0
push dword [esp + 0xa8]
mov ecx, esi
mov dword [esp + 0xf0], eax
push dword [esp + 0xa4]
push 0x6d
pop edx
call fcn.00439e58
mov dword [esp + 0xf0], eax
add esp, 0x1c
mov eax, dword [ebx + 0x2c]
mov ecx, esi
inc eax
mov dword [esp + 0x48], eax
inc eax
mov dword [esp + 0x28], eax
inc eax
mov dword [ebx + 0x2c], eax
call fcn.00439f5e
inc dword [ebx + 0x2c]
mov ecx, esi
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
call fcn.00439f5e
mov ecx, dword [ebx + 0x2c]
mov edx, dword [esp + 0x10]
push dword [esp + 0x28]
mov dword [esp + 0x40], eax
lea eax, [ecx + 1]
add ecx, dword [edx]
mov dword [esp + 0x68], eax
mov dword [ebx + 0x2c], ecx
push 0
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
mov eax, dword [edx]
add eax, ecx
mov ecx, esi
push 0x38
pop edx
mov dword [ebx + 0x2c], eax
call fcn.00439d92
push dword [esp + 0x50]
mov ecx, esi
push 0
push 0x38
pop edx
call fcn.00439d92
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x74]
dec eax
add eax, ecx
push eax
push ecx
push 0
push 0x3b
pop edx
mov ecx, esi
call fcn.00439d0e
add esp, 0x1c
mov ecx, esi
push dword [esp + 0x3c]
push dword [esp + 0x18]
push 0xe
pop edx
call fcn.00439d92
mov eax, dword [esp + 0x48]
push 0
mov edx, dword [esp + 0x28]
neg eax
mov ecx, ebx
sbb eax, eax
and eax, 0x200
or ax, 0x40
movzx eax, ax
push eax
push 0
push dword [esp + 0x24]
push dword [esp + 0x50]
call fcn.0046dc16
mov edx, eax
add esp, 0x1c
mov dword [esp + 0x5c], edx
test edx, edx
je 0x462b89
mov ecx, edx
call fcn.00469e78
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jne 0x46243e
xor edi, edi
mov dword [esp + 0x58], edi
jmp 0x4625d2
cmp byte [esp + 0xf], 0
je 0x462450
test byte [edi + 8], 1
mov edx, str.DISTINCT
je 0x462455
mov edx, str.GROUP_BY
mov ecx, ebx
call fcn.0045e057
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x58], 1
mov dword [esp + 0x44], eax
mov edi, dword [esi]
mov ecx, edi
mov dword [esp + 0x38], edi
mov edx, edi
test eax, eax
jle 0x46249e
mov eax, dword [esp + 0xa4]
add eax, 0xc
cmp dword [eax], edx
jl 0x462491
inc ecx
inc edx
add eax, 0x18
dec dword [esp + 0x44]
jne 0x46248b
mov dword [esp + 0x38], ecx
mov edx, ecx
mov ecx, ebx
call fcn.0044c05d
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.0044a2be
push 0
push 0
push dword [esp + 0x24]
mov edx, esi
mov ecx, ebx
call fcn.0044b192
mov ecx, dword [esp + 0xb4]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x44], eax
test ecx, ecx
jle 0x46251a
xor esi, esi
mov edx, dword [esp + 0xa4]
cmp dword [edx + esi + 0xc], edi
jl 0x46250e
mov eax, dword [esp + 0x1c]
mov ecx, ebx
add eax, edi
push eax
push dword [edx + esi + 4]
push dword [edx + esi + 8]
mov edx, dword [edx + esi]
call fcn.0044a28c
mov ecx, dword [esp + 0xb4]
add esp, 0xc
mov eax, dword [esp + 0x44]
inc edi
inc eax
add esi, 0x18
mov dword [esp + 0x44], eax
cmp eax, ecx
jl 0x4624d9
mov ecx, ebx
call fcn.0044bffb
mov ecx, dword [esp + 0x20]
mov esi, eax
push esi
push dword [esp + 0x3c]
push dword [esp + 0x24]
push 0x63
pop edx
call fcn.00439d0e
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push esi
push dword [esp + 0x90]
push 0x7d
pop edx
call fcn.00439d92
mov edx, esi
mov ecx, ebx
call fcn.0044c01a
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
push esi
call fcn.0044c093
mov ecx, dword [esp + 0x68]
add esp, 0xc
call fcn.0046e436
mov edx, dword [ebx + 0x28]
mov ecx, ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x90], edx
lea eax, [edx + 1]
mov dword [ebx + 0x28], eax
call fcn.0044bffb
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
push eax
push edx
push 0x6f
pop edx
mov dword [esp + 0x24], eax
call fcn.00439d0e
add esp, 0xc
mov ecx, esi
push dword [esp + 0x54]
push dword [esp + 0x90]
push 0x23
pop edx
call fcn.00439d92
pop ecx
pop ecx
mov ecx, ebx
mov byte [esp + 0x89], 1
call fcn.0044a2be
mov edx, dword [esp + 0x5c]
xor edi, edi
inc edi
cmp dword [esp + 0x40], 0
je 0x462602
mov eax, dword [esp + 0x30]
test byte [eax + 0x40], 4
jne 0x462602
test edi, edi
jne 0x4625f2
mov ecx, edx
call fcn.0046d3a1
test eax, eax
je 0x462602
mov edx, dword [esp + 0x7c]
mov ecx, esi
and dword [esp + 0x68], 0
call fcn.0043a38a
mov ecx, esi
call fcn.0043a10e
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.0044a2be
test edi, edi
je 0x462634
push dword [esp + 0x44]
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x94]
push 0x79
pop edx
call fcn.00439d0e
add esp, 0xc
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [edi], ecx
jle 0x462695
lea edx, [edi + 8]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x2c]
add eax, ecx
cmp dword [esp + 0x58], 0
push eax
je 0x46266b
push ecx
push dword [esp + 0x4c]
mov ecx, esi
push 0x60
pop edx
call fcn.00439d0e
add esp, 0xc
jmp 0x46267d
mov byte [esp + 0x8c], 1
mov ecx, ebx
mov edx, dword [edx]
call fcn.0044b0a0
pop ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
inc ecx
add edx, 0x18
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], edx
cmp ecx, dword [edi]
jl 0x462649
mov ecx, dword [esp + 0xd8]
push 0xfffffffffffffff7
call fcn.0045dfa1
push eax
push dword [edi]
mov ecx, esi
push dword [esp + 0x38]
push dword [esp + 0x74]
push 0x5e
pop edx
call fcn.00439e58
add esp, 0x14
mov ecx, esi
call fcn.0043a10e
mov edi, dword [esp + 0x20]
mov esi, eax
mov ecx, edi
lea eax, [esi + 1]
push eax
push 0
push eax
push 0x12
pop edx
call fcn.00439d0e
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push dword [eax]
push dword [esp + 0x68]
call fcn.0044a308
push dword [esp + 0x68]
mov eax, dword [esp + 0x34]
mov ecx, edi
inc eax
push eax
push 0xe
pop edx
call fcn.00439d92
push dword [esp + 0x64]
mov ecx, edi
push dword [esp + 0x3c]
push 0x2e
pop edx
call fcn.00439d92
push dword [esp + 0x54]
mov ecx, edi
push dword [esp + 0x30]
push 0xe
pop edx
call fcn.00439d92
mov edx, esi
mov esi, edi
mov ecx, esi
call fcn.0043a243
lea edx, [esp + 0xa8]
mov ecx, ebx
call fcn.004615dc
push dword [esp + 0x68]
mov ecx, esi
push 1
push 0x38
pop edx
call fcn.00439d92
add esp, 0x28
cmp dword [esp + 0x58], 0
je 0x462775
push dword [esp + 0x38]
mov ecx, esi
push dword [esp + 0x90]
push 3
pop edx
call fcn.00439d92
pop ecx
pop ecx
jmp 0x46278c
mov ecx, dword [esp + 0x5c]
call fcn.0046e436
mov edx, dword [esp + 0xd4]
mov ecx, esi
call fcn.0043a38a
push dword [esp + 0x60]
mov eax, dword [esp + 0x2c]
mov ecx, esi
inc eax
push eax
push 0xe
pop edx
call fcn.00439d92
mov edx, dword [esp + 0x5c]
mov ecx, esi
call fcn.00439da7
mov ecx, esi
call fcn.0043a10e
push dword [esp + 0x30]
mov edi, eax
push 1
push 0x38
pop edx
call fcn.00439d92
mov eax, dword [esp + 0x38]
mov ecx, esi
inc eax
push eax
push 0x34
pop edx
call fcn.00439d7e
mov edx, dword [esp + 0x74]
add esp, 0x14
mov ecx, esi
call fcn.00439fa0
call fcn.0043a10e
mov esi, eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x4c]
push 0x2e
pop edx
call fcn.00439d92
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
inc eax
push eax
push 0x34
pop edx
call fcn.00439d7e
add esp, 0xc
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.00461583
push 0x10
inc esi
push esi
push dword [esp + 0x54]
push ebx
call fcn.0044b5f2
mov eax, dword [ebp + 8]
mov ecx, ebx
push edi
mov edi, dword [esp + 0x64]
mov edx, edi
push esi
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x88]
push eax
push 0xffffffffffffffff
push dword [edi]
call fcn.0045d876
mov eax, dword [esp + 0x54]
add esp, 0x2c
mov esi, dword [esp + 0x20]
inc eax
mov ecx, esi
push eax
push 0x34
pop edx
call fcn.00439d7e
mov edx, dword [esp + 0x40]
pop ecx
mov ecx, esi
call fcn.00439fa0
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.004614eb
push dword [esp + 0x14]
mov ecx, esi
push 0x34
pop edx
call fcn.00439d7e
pop ecx
jmp 0x462b17
and dword [esp + 0x3c], 0
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.00460828
mov dword [esp + 0x28], eax
test eax, eax
je 0x4629e3
mov edx, dword [eax + 0x48]
mov ecx, dword [ebx]
call fcn.0045c88a
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x14], eax
inc eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x1c]
mov edx, ecx
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.004522df
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov edx, dword [esp + 0x18]
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.0044e3f8
mov edx, dword [esp + 0x34]
add esp, 0xc
test byte [edx + 0x24], 0x20
je 0x46291e
mov ecx, edx
call fcn.0044ee3e
mov ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x462922
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 8]
test eax, eax
je 0x46295a
test byte [eax + 0x38], 4
jne 0x46294b
movzx edi, word [eax + 0x30]
cmp di, word [edx + 0x2e]
jge 0x46294b
cmp dword [eax + 0x24], 0
jne 0x46294b
test ecx, ecx
je 0x462949
cmp di, word [ecx + 0x30]
jge 0x46294b
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x462929
mov edi, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x462972
mov eax, dword [ecx + 0x2c]
mov edx, ecx
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.0045277b
mov dword [esp + 0x48], eax
push 1
push dword [esp + 0x1c]
mov ecx, esi
push dword [esp + 0x48]
push dword [esp + 0x20]
push 0x68
pop edx
call fcn.00439f0f
mov eax, dword [esp + 0x58]
add esp, 0x10
test eax, eax
je 0x4629a4
push 0xfffffffffffffff7
push eax
or edx, 0xffffffff
mov ecx, esi
call fcn.0043a44a
pop ecx
pop ecx
mov eax, dword [esp + 0xb0]
mov ecx, esi
push dword [eax + 8]
push dword [esp + 0x18]
push 0x64
pop edx
call fcn.00439d92
push dword [esp + 0x1c]
mov ecx, esi
push 0x70
pop edx
call fcn.00439d7e
mov eax, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esp + 0x28]
mov ecx, ebx
push eax
call fcn.004617d0
pop ecx
jmp 0x462ad7
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], eax
mov byte [esp + 0xf], al
cmp dword [edi + 0x28], eax
jne 0x462a4d
lea edx, [esp + 0x50]
lea ecx, [esp + 0x88]
call fcn.004607c4
mov byte [esp + 0xf], al
test al, al
je 0x462a45
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
push 0
call fcn.00448455
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], ecx
cmp byte [eax + 0x45], 0
jne 0x462a4d
cmp byte [esp + 0xf], 1
setne al
mov byte [ecx + 0x14], al
mov eax, dword [ecx + 8]
mov byte [eax], 0x98
jmp 0x462a4d
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.004614eb
mov al, byte [esp + 0xf]
mov ecx, ebx
mov edx, dword [esp + 0x1c]
push 0
movzx eax, al
push eax
push 0
push dword [esp + 0x20]
push dword [esp + 0x48]
call fcn.0046dc16
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x462a97
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
call fcn.00448b14
jmp 0x462b89
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.004615dc
mov ecx, dword [esp + 0x18]
call fcn.00469e78
test eax, eax
jle 0x462ac4
call fcn.0040a704
mov edx, eax
mov ecx, esi
call fcn.00439da7
mov ecx, dword [esp + 0x18]
call fcn.0046e436
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.00461583
and dword [esp + 0x68], 0
push 0x10
push dword [esp + 0x58]
push dword [esp + 0x54]
push ebx
call fcn.0044b5f2
mov eax, dword [esp + 0x64]
mov edx, edi
push eax
push eax
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
push 0
push 0
push 0xffffffffffffffff
push dword [edi]
call fcn.0045d876
mov edx, dword [esp + 0x68]
add esp, 0x2c
mov ecx, dword [esp + 0x30]
call fcn.00448b14
mov edx, dword [esp + 0x54]
mov ecx, esi
call fcn.00439fa0
cmp byte [esp + 0x34], 3
jne 0x462b35
mov edx, str.DISTINCT
mov ecx, ebx
call fcn.0045e057
cmp dword [esp + 0x68], 0
je 0x462b6f
cmp dword [esp + 0x6c], 0
mov eax, str.ORDER_BY
mov edx, str.RIGHT_PART_OF_ORDER_BY
mov ecx, ebx
cmovle edx, eax
call fcn.0045e057
mov eax, dword [esp + 0x24]
mov edx, edi
push dword [ebp + 8]
mov ecx, ebx
push dword [eax]
lea eax, [esp + 0x70]
push eax
call fcn.0045e0f9
add esp, 0xc
mov edx, dword [esp + 0xdc]
mov ecx, esi
call fcn.00439fa0
xor eax, eax
cmp dword [ebx + 0x24], eax
setg al
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xa4]
mov dword [ebx + 0x19c], ecx
mov ecx, dword [esp + 0x30]
call fcn.00423004
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x30]
call fcn.00423004
mov eax, dword [esp + 0x58]
jmp 0x462bbe
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret