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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffea8
mov ebx, eax
mov esi, edx
mov dword [esp], ecx
mov dword [esp + 0x30], 1
mov eax, dword [ebx + 0x224]
mov dword [esp + 0x44], eax
mov edx, dword [ebx + 0x228]
inc dword [ebx + 0x228]
mov dword [ebx + 0x224], edx
test esi, esi
mov ecx, dword [ebx]
mov dword [esp + 0x40], ecx
je 0x4acb97
mov ecx, dword [esp + 0x40]
cmp byte [ecx + 0x1e], 0
jne 0x4acb97
cmp dword [ebx + 0x40], 0
je 0x4acba1
mov eax, 1
jmp 0x4add5c
push 0
push 0
xor ecx, ecx
mov edx, 0x15
mov eax, ebx
call fcn.004bcce8
test eax, eax
je 0x4acbc1
mov eax, 1
jmp 0x4add5c
lea eax, [esp + 0xf8]
mov ecx, 0x2c
xor edx, edx
call fcn.00478478
mov ecx, dword [esp]
xor eax, eax
mov al, byte [ecx]
cmp eax, 4
jg 0x4acbf7
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x40]
call fcn.004b9f98
xor edx, edx
mov dword [esi + 0x18], edx
and word [esi + 6], 0xfffe
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.004ac7d8
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], ecx
mov eax, dword [esi]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x40], 0
jne 0x4add0c
mov edx, dword [esp + 0x40]
cmp byte [edx + 0x1e], 0
je 0x4acc2f
jmp 0x4add0c
test byte [esi + 6], 4
setne cl
and ecx, 1
mov eax, ebx
mov dword [esp + 0xc], ecx
call fcn.004aa2ec
mov edi, eax
test edi, edi
je 0x4add0c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a9300
test eax, eax
je 0x4acc67
jmp 0x4add0c
xor ebp, ebp
jmp 0x4acd84
mov eax, ebp
shl eax, 3
sub eax, ebp
shl eax, 3
add eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x4c], 0
je 0x4acd83
mov ecx, dword [esp + 0x48]
cmp byte [ecx + 0x14], 0
jne 0x4acd83
mov eax, esi
call fcn.004b92b0
add dword [ebx + 0x218], eax
mov edx, dword [esp + 0x4c]
test byte [edx + 6], 4
setne cl
and ecx, 1
mov dword [esp + 0x50], ecx
mov ecx, ebp
mov eax, dword [esp + 0xc]
push eax
mov eax, ebx
mov edx, dword [esp + 0x54]
push edx
mov edx, esi
call fcn.004ab9ec
test eax, eax
je 0x4accf8
cmp dword [esp + 0x50], 0
je 0x4accf3
mov dword [esp + 0xc], 1
or word [esi + 6], 4
or ebp, 0xffffffff
jmp 0x4acd4d
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x124]
mov edx, 9
call fcn.004a8ba8
mov ecx, dword [esp + 0x48]
mov al, byte [ebx + 0x228]
mov byte [ecx + 0x18], al
lea ecx, [esp + 0x124]
mov edx, dword [esp + 0x4c]
mov eax, ebx
call fcn.004acb48
mov edx, dword [esp + 0x48]
mov byte [edx + 0x14], 1
mov ecx, dword [esp + 0x4c]
fld qword [ecx + 0x44]
call fcn.00478090
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + 0xc]
mov dword [ecx + 0x18], eax
mov ecx, dword [esp + 0x40]
cmp byte [ecx + 0x1e], 0
je 0x4acd5c
jmp 0x4add0c
mov eax, esi
call fcn.004b92b0
sub dword [ebx + 0x218], eax
mov edx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov ecx, dword [esp]
xor eax, eax
mov al, byte [ecx]
cmp eax, 4
jle 0x4acd83
mov edx, dword [esi + 0x18]
mov dword [esp + 0x1c], edx
inc ebp
cmp dword [esi + 0x1c], 0
jne 0x4acd99
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx]
cmp ebp, eax
jl 0x4acc6e
mov edx, dword [esi]
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov edx, dword [esi + 0x14]
mov dword [esp + 0x24], edx
test byte [esi + 6], 1
setne cl
and ecx, 1
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x1c], 0
je 0x4ace4f
cmp dword [esi + 0x24], 0
jne 0x4ace2c
xor eax, eax
mov dword [esp + 0x54], eax
xor edx, edx
mov dword [esp + 0x58], edx
mov eax, esi
test eax, eax
je 0x4acdfd
mov dword [eax + 0x24], esi
mov edx, dword [esp + 0x54]
mov dword [eax + 0x20], edx
mov dword [esp + 0x54], eax
mov eax, dword [eax + 0x1c]
inc dword [esp + 0x58]
test eax, eax
jne 0x4acde4
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0x58]
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x5c], 0
je 0x4ace2c
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x5c]
jle 0x4ace2c
push str.too_many_terms_in_compound_SELECT
push ebx
call fcn.004d8128
add esp, 8
jmp 0x4add0c
mov ecx, dword [esp]
mov edx, esi
mov eax, ebx
call fcn.004aa4d0
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x224], ecx
mov eax, dword [esp + 0x30]
jmp 0x4add5c
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x10]
call fcn.004bc708
test eax, eax
jne 0x4ace6f
mov edx, dword [esp + 0x40]
test byte [edx + 0xc], 0x20
jne 0x4ace6f
xor ecx, ecx
mov dword [esp + 0x1c], ecx
movzx ecx, word [esi + 6]
and ecx, 5
dec ecx
jne 0x4aceab
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
call fcn.004bc708
test eax, eax
jne 0x4aceab
and word [esi + 6], 0xfffe
xor ecx, ecx
mov edx, dword [esi]
mov eax, dword [esp + 0x40]
call fcn.004b9a7c
mov dword [esi + 0x10], eax
xor eax, eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
je 0x4acefd
mov edx, dword [esp + 0x1c]
mov eax, ebx
call fcn.004a96cc
mov dword [esp + 0x60], eax
mov edx, dword [ebx + 0x44]
inc dword [ebx + 0x44]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
add eax, 2
push eax
push 0
mov edx, dword [esp + 0x68]
mov eax, edi
push edx
push 0xfffffffffffffff0
mov ecx, dword [esp + 0x2c]
mov edx, 0x29
mov ecx, dword [ecx + 8]
call fcn.004c763c
mov dword [esp + 0x34], eax
mov dword [esi + 0x40], eax
jmp 0x4acf05
mov dword [esp + 0x34], 0xffffffff
mov edx, dword [esp]
xor ecx, ecx
mov cl, byte [edx]
cmp ecx, 9
jne 0x4acf2b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push eax
mov edx, dword [esp + 4]
mov ecx, dword [edx + 4]
mov edx, 0x29
mov eax, edi
call fcn.004c7628
mov eax, edi
call fcn.004c76ec
mov dword [esp + 0x3c], eax
xor edx, edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], 0x43e00000
mov ecx, dword [esp + 0x3c]
mov edx, esi
mov eax, ebx
call fcn.004aa318
test byte [esi + 6], 1
je 0x4acf96
mov ecx, dword [ebx + 0x44]
mov eax, ebx
inc dword [ebx + 0x44]
mov dword [esp + 0x2c], ecx
mov edx, dword [esi]
call fcn.004a96cc
mov dword [esp + 0x64], eax
push 0
push 0
mov eax, edi
mov ecx, dword [esp + 0x6c]
mov edx, 0x29
push ecx
push 0xfffffffffffffff0
mov ecx, dword [esp + 0x3c]
call fcn.004c763c
mov dword [esp + 0x38], eax
mov dl, 0x10
mov eax, edi
call fcn.004c7948
jmp 0x4acfa1
or ecx, 0xffffffff
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0xc], 0
jne 0x4ad1ed
cmp dword [esp + 0x20], 0
jne 0x4ad1ed
cmp dword [esp + 0x28], 0
je 0x4acfc2
mov eax, dword [esi]
jmp 0x4acfc4
xor eax, eax
mov dword [esp + 0x68], eax
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [esp + 0x6c]
push ecx
push 0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ebx
call fcn.004b8288
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4add0c
mov ecx, dword [esp + 8]
fld qword [ecx + 0x2c]
fld qword [esi + 0x44]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x4ad017
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x44], eax
mov eax, dword [edx + 0x30]
mov dword [esi + 0x48], eax
cmp dword [esp + 0x34], 0
jl 0x4ad03c
cmp dword [esp + 0x1c], 0
jne 0x4ad03c
mov ecx, 1
mov edx, dword [esp + 0x34]
mov eax, edi
call fcn.004c7aac
mov dword [esi + 0x40], 0xffffffff
mov edx, dword [esp + 8]
cmp byte [edx + 8], 0
je 0x4ad1af
mov edx, dword [esp + 0x38]
mov eax, edi
call fcn.004c7c70
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], 0xffffffff
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + 8]
cmp ecx, 2
jne 0x4ad1a8
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x74], eax
mov edx, dword [ebx + 0x48]
inc edx
mov dword [esp + 0x78], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
add eax, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
add ecx, ecx
add dword [ebx + 0x48], ecx
mov eax, dword [esp + 0x6c]
mov byte [eax], 7
mov edx, dword [esp + 0x6c]
mov dword [edx + 4], 1
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], eax
push 1
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
mov eax, ebx
call fcn.004bbf4c
mov eax, edi
call fcn.004c7844
mov edx, dword [esp + 0x10]
add eax, dword [edx]
mov edx, 0x1a
add eax, 3
mov dword [esp + 0x70], eax
mov eax, edi
mov ecx, dword [esp + 0x70]
dec ecx
push ecx
mov ecx, dword [esp + 0x78]
call fcn.004c7628
xor ebp, ebp
jmp 0x4ad156
lea eax, [ebp + ebp*4]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0xc]
mov edx, dword [ecx + eax*4]
mov eax, ebx
call fcn.004b8f70
mov dword [esp + 0x80], eax
mov eax, edi
mov ecx, dword [esp + 0x70]
mov edx, 0x4b
push ecx
mov ecx, dword [esp + 0x80]
add ecx, ebp
push ecx
mov ecx, dword [esp + 0x80]
add ecx, ebp
call fcn.004c75ac
push 0xfffffffffffffffc
mov ecx, dword [esp + 0x84]
or edx, 0xffffffff
mov eax, edi
call fcn.004c7b00
mov dl, 0x80
mov eax, edi
call fcn.004c7948
inc ebp
mov ecx, dword [esp + 0x10]
cmp ebp, dword [ecx]
jl 0x4ad0f9
mov ecx, dword [esp + 8]
mov edx, 1
mov eax, dword [ecx + 0x14]
xor ecx, ecx
push eax
mov eax, edi
call fcn.004c7628
mov ecx, dword [esp + 0x74]
mov edx, 7
push ecx
xor ecx, ecx
mov eax, edi
call fcn.004c7628
mov ecx, dword [esp + 0x7c]
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov eax, edi
push edx
mov edx, 0xd
mov ecx, dword [esp + 0x80]
call fcn.004c75ac
jmp 0x4ad1af
mov ecx, dword [esp + 0x6c]
mov byte [ecx], 0x89
push 0
push 0
mov eax, dword [esp + 0x24]
push eax
mov edx, dword [esp + 0x38]
push edx
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x14]
push edx
mov edx, esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x18]
push eax
mov eax, ebx
mov ecx, dword [esp + 0x2c]
call fcn.004a9328
mov eax, dword [esp + 8]
call fcn.004b8ba8
jmp 0x4adcbe
cmp dword [esp + 0x20], 0
je 0x4ad250
mov edx, dword [esi]
mov eax, dword [esi]
mov edx, dword [edx]
mov eax, dword [eax + 0xc]
test edx, edx
jle 0x4ad20f
mov word [eax + 0x10], 0
dec edx
add eax, 0x14
test edx, edx
jg 0x4ad201
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov edx, dword [edx]
mov eax, dword [eax + 0xc]
test edx, edx
jle 0x4ad22e
mov word [eax + 0x10], 0
dec edx
add eax, 0x14
test edx, edx
jg 0x4ad220
fld qword [esi + 0x44]
fld dword [0x4add68]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x4ad25c
xor edx, edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], 0x40590000
jmp 0x4ad25c
xor ecx, ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], 0x3ff00000
mov eax, edi
call fcn.004c76ec
mov dword [esp + 0x98], eax
lea eax, [esp + 0x134]
mov ecx, 0x24
xor edx, edx
call fcn.00478478
mov dword [esp + 0x134], ebx
lea eax, [esp + 0xf8]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x138], ecx
mov dword [esp + 0x150], eax
cmp dword [esp + 0x20], 0
je 0x4ad2ad
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
inc ecx
jmp 0x4ad2af
xor ecx, ecx
mov dword [esp + 0x104], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x100], eax
lea eax, [esp + 0x134]
mov edx, dword [esp + 0x10]
call fcn.004bca50
lea eax, [esp + 0x134]
mov edx, dword [esp + 0x1c]
call fcn.004bca50
cmp dword [esp + 0x24], 0
je 0x4ad2f8
lea eax, [esp + 0x134]
mov edx, dword [esp + 0x24]
call fcn.004bca2c
mov ecx, dword [esp + 0x10c]
xor ebp, ebp
mov dword [esp + 0x114], ecx
jmp 0x4ad329
mov eax, ebp
mov edx, dword [esp + 0x118]
shl eax, 4
mov ecx, dword [edx + eax]
lea eax, [esp + 0x134]
mov edx, dword [ecx + 0x10]
call fcn.004bca50
inc ebp
cmp ebp, dword [esp + 0x11c]
jl 0x4ad30a
mov ecx, dword [esp + 0x40]
cmp byte [ecx + 0x1e], 0
jne 0x4add0c
cmp dword [esp + 0x20], 0
je 0x4ad9bc
mov ecx, dword [ebx + 0x44]
mov eax, ebx
inc dword [ebx + 0x44]
mov dword [esp + 0xfc], ecx
mov edx, dword [esp + 0x20]
call fcn.004a96cc
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x104]
push ecx
push 0
mov eax, dword [esp + 0xa4]
push eax
push 0xfffffffffffffff0
mov ecx, dword [esp + 0x10c]
mov edx, 0x29
mov eax, edi
call fcn.004c763c
mov dword [esp + 0xb4], eax
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0x8c], ecx
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x90], eax
mov eax, edi
inc dword [ebx + 0x48]
mov edx, dword [ebx + 0x48]
mov dword [esp + 0xa8], edx
call fcn.004c76ec
mov dword [esp + 0xa4], eax
mov eax, edi
inc dword [ebx + 0x48]
mov edx, dword [ebx + 0x48]
mov dword [esp + 0xbc], edx
call fcn.004c76ec
mov dword [esp + 0xb8], eax
mov edx, dword [ebx + 0x48]
inc edx
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
add dword [ebx + 0x48], ecx
mov eax, dword [ebx + 0x48]
inc eax
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov edx, 7
add dword [ebx + 0x48], ecx
xor ecx, ecx
mov eax, dword [esp + 0x90]
push eax
mov eax, edi
call fcn.004c7628
mov ecx, dword [esp + 0x8c]
mov edx, 7
push ecx
xor ecx, ecx
mov eax, edi
call fcn.004c7628
mov ecx, dword [esp + 0xb8]
mov edx, 2
push ecx
mov eax, edi
mov ecx, dword [esp + 0xc0]
call fcn.004c7628
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ebx
call fcn.004b8288
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4add0c
cmp dword [esp + 0x20], 0
jne 0x4ad49a
mov ecx, dword [esi + 0x10]
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x94], eax
jmp 0x4ad6a5
cmp dword [esp + 0x28], 0
je 0x4ad4ae
test byte [esi + 6], 1
jne 0x4ad4ae
mov edx, str.DISTINCT
jmp 0x4ad4b3
mov edx, str.GROUP_BY
mov eax, ebx
call fcn.004a97a0
mov dword [esp + 0x94], 1
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov dword [esp + 0xcc], ecx
mov eax, dword [esp + 0xcc]
inc eax
mov dword [esp + 0xc8], eax
mov edx, dword [esp + 0xcc]
inc edx
mov dword [esp + 4], edx
xor ebp, ebp
mov eax, dword [esp + 0x108]
add eax, 0xc
jmp 0x4ad512
mov edx, dword [eax]
cmp edx, dword [esp + 4]
jl 0x4ad50e
inc dword [esp + 0xc8]
inc dword [esp + 4]
inc ebp
add eax, 0x18
cmp ebp, dword [esp + 0x10c]
jl 0x4ad4fb
mov edx, dword [esp + 0xc8]
mov eax, ebx
call fcn.004bcad4
mov dword [esp + 0xc0], eax
mov eax, ebx
call fcn.004bafcc
push 0
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.004bbf4c
mov edx, dword [esp + 0xc0]
mov eax, edi
add edx, dword [esp + 0xcc]
push edx
mov edx, 0x35
mov ecx, dword [esp + 0x100]
call fcn.004c7628
mov ecx, dword [esp + 0xcc]
inc ecx
xor ebp, ebp
mov dword [esp + 4], ecx
jmp 0x4ad5f6
mov eax, ebp
shl eax, 3
lea eax, [eax + eax*2]
add eax, dword [esp + 0x108]
mov edx, dword [eax + 0xc]
cmp edx, dword [esp + 4]
jl 0x4ad5f5
mov ecx, dword [esp + 4]
add ecx, dword [esp + 0xc0]
mov dword [esp + 0xd0], ecx
mov edx, dword [eax + 4]
push edx
mov ecx, dword [esp + 0xd4]
push ecx
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, ebx
call fcn.004baf4c
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0xd0]
cmp ecx, dword [esp + 0xd4]
je 0x4ad5f1
mov eax, dword [esp + 0xd0]
mov edx, 0xf
push eax
mov eax, edi
mov ecx, dword [esp + 0xd8]
call fcn.004c7628
inc dword [esp + 4]
inc ebp
cmp ebp, dword [esp + 0x10c]
jl 0x4ad57d
mov eax, ebx
call fcn.004bca7c
mov dword [esp + 0xc4], eax
mov eax, edi
mov edx, dword [esp + 0xc8]
push edx
mov edx, 0x1e
mov ecx, dword [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0xc8]
call fcn.004c75ac
mov ecx, dword [esp + 0xc4]
mov edx, 0x46
push ecx
mov eax, edi
mov ecx, dword [esp + 0x100]
call fcn.004c7628
mov edx, dword [esp + 0xc4]
mov eax, ebx
call fcn.004bca98
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc0]
mov eax, ebx
call fcn.004bcaf4
mov eax, dword [esp + 8]
call fcn.004b8ba8
mov edx, dword [esp + 0x98]
mov eax, edi
push edx
mov edx, 0x40
mov ecx, dword [esp + 0x100]
call fcn.004c7628
mov byte [esp + 0xf9], 1
mov eax, ebx
call fcn.004bafcc
mov eax, edi
call fcn.004c7844
mov dword [esp + 0xb0], eax
mov eax, ebx
call fcn.004bafcc
xor edx, edx
mov dword [esp + 4], edx
jmp 0x4ad721
cmp dword [esp + 0x94], 0
je 0x4ad6f2
mov ecx, dword [esp + 4]
mov edx, 0x1c
push ecx
mov eax, edi
mov ecx, dword [esp + 0x8c]
add ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x104]
call fcn.004c75ac
jmp 0x4ad71d
mov byte [esp + 0xf8], 1
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0xc]
lea ecx, [ecx + ecx*4]
mov eax, ebx
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x88]
add ecx, dword [esp + 4]
call fcn.004bbd50
inc dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, dword [esp + 4]
jg 0x4ad6c2
mov edx, dword [esp + 0x88]
push edx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
push eax
mov edx, dword [esp + 0xa4]
push edx
push 0xfffffffffffffffa
mov ecx, dword [esp + 0x94]
mov edx, 0x18
mov eax, edi
call fcn.004c763c
mov eax, edi
call fcn.004c7844
mov dword [esp + 0xa0], eax
push 0
mov edx, dword [esp + 0xa4]
mov eax, edi
inc edx
push edx
mov edx, 0x19
mov ecx, dword [esp + 0xa8]
inc ecx
call fcn.004c75ac
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, ebx
call fcn.004bb000
mov ecx, dword [esp + 0xa4]
mov edx, 2
push ecx
mov eax, edi
mov ecx, dword [esp + 0xac]
call fcn.004c7628
mov ecx, dword [esp + 0x98]
mov edx, 0x71
push ecx
mov eax, edi
mov ecx, dword [esp + 0x94]
call fcn.004c7628
mov ecx, dword [esp + 0xb8]
mov edx, 2
push ecx
mov eax, edi
mov ecx, dword [esp + 0xc0]
call fcn.004c7628
mov edx, dword [esp + 0xa0]
mov eax, edi
call fcn.004c795c
lea edx, [esp + 0xf8]
mov eax, ebx
call fcn.004ac93c
mov ecx, dword [esp + 0x8c]
mov edx, 7
push ecx
mov ecx, 1
mov eax, edi
call fcn.004c7628
cmp dword [esp + 0x94], 0
je 0x4ad84f
mov ecx, dword [esp + 0xb0]
mov edx, 0x43
push ecx
mov eax, edi
mov ecx, dword [esp + 0x100]
call fcn.004c7628
jmp 0x4ad86b
mov eax, dword [esp + 8]
call fcn.004b8ba8
mov ecx, 1
mov edx, dword [esp + 0xb4]
mov eax, edi
call fcn.004c7aac
mov edx, dword [esp + 0xa4]
mov eax, edi
push edx
mov edx, 2
mov ecx, dword [esp + 0xac]
call fcn.004c7628
mov ecx, dword [esp + 0x98]
mov edx, 1
push ecx
xor ecx, ecx
mov eax, edi
call fcn.004c7628
mov eax, edi
call fcn.004c7844
mov dword [esp + 0xac], eax
mov eax, edi
mov edx, dword [esp + 0x90]
mov ecx, 1
push edx
mov edx, 7
call fcn.004c7628
mov ecx, dword [esp + 0xa8]
mov edx, 3
mov eax, edi
call fcn.004c761c
mov edx, dword [esp + 0xa4]
mov eax, edi
call fcn.004c7744
mov eax, edi
call fcn.004c7844
mov dword [esp + 0xa4], eax
mov eax, edi
mov edx, dword [esp + 0xa4]
add edx, 2
push edx
mov edx, 0x71
mov ecx, dword [esp + 0x90]
call fcn.004c7628
mov ecx, dword [esp + 0xa8]
mov edx, 3
mov eax, edi
call fcn.004c761c
lea edx, [esp + 0xf8]
mov eax, ebx
call fcn.004ac8f0
push 8
mov eax, ebx
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x28]
inc ecx
call fcn.004bc304
push 0
push 0
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x10]
push eax
mov eax, ebx
mov edx, dword [esp + 0xb8]
inc edx
push edx
mov edx, esi
mov ecx, dword [esp + 0xc4]
push ecx
mov ecx, dword [esi]
call fcn.004a9328
mov ecx, dword [esp + 0xa8]
mov edx, 3
mov eax, edi
call fcn.004c761c
mov edx, dword [esp + 0xb8]
mov eax, edi
call fcn.004c7744
lea edx, [esp + 0xf8]
mov eax, ebx
call fcn.004ac828
mov ecx, dword [esp + 0xbc]
mov edx, 3
mov eax, edi
call fcn.004c761c
jmp 0x4adcb0
xor ecx, ecx
mov dword [esp + 0xd8], ecx
lea edx, [esp + 0xf8]
mov eax, esi
call fcn.004ac088
mov dword [esp + 0xdc], eax
test eax, eax
je 0x4adb31
mov edx, dword [esp + 0xdc]
mov eax, dword [ebx]
mov edx, dword [edx + 0x44]
call fcn.004992a8
mov dword [esp + 0xe0], eax
mov ecx, dword [ebx + 0x44]
inc dword [ebx + 0x44]
mov dword [esp + 0xe4], ecx
xor ecx, ecx
mov dword [esp + 0xe8], ecx
xor ebp, ebp
mov eax, dword [esp + 0xdc]
mov edx, dword [eax + 0x14]
mov eax, ebx
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0xe0]
call fcn.0049ced4
push 0
mov ecx, dword [esp + 0xe0]
mov ecx, dword [ecx]
push ecx
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0xe8]
mov eax, ebx
call fcn.004997e8
mov ecx, dword [esp + 0xdc]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4ada7e
cmp byte [eax + 0x1a], 0
jne 0x4ada77
test ebp, ebp
je 0x4ada75
mov edx, dword [eax + 4]
cmp edx, dword [ebp + 4]
jge 0x4ada77
mov ebp, eax
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4ada63
test ebp, ebp
je 0x4adaab
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0xdc]
cmp eax, dword [edx + 8]
jge 0x4adaab
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xec], ecx
mov edx, ebp
mov eax, ebx
call fcn.0049d294
mov dword [esp + 0xe8], eax
mov ecx, dword [esp + 0xec]
mov edx, 0x26
push ecx
mov eax, edi
mov ecx, dword [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0xec]
call fcn.004c75ac
cmp dword [esp + 0xe8], 0
je 0x4adaeb
push 0xfffffffffffffff0
mov ecx, dword [esp + 0xec]
or edx, 0xffffffff
mov eax, edi
call fcn.004c7b00
mov ecx, dword [esp + 0x118]
mov edx, 0x1f
mov eax, dword [ecx + 8]
push eax
mov eax, edi
mov ecx, dword [esp + 0xe8]
call fcn.004c7628
mov ecx, dword [esp + 0xe4]
mov edx, 0x2b
mov eax, edi
call fcn.004c761c
mov ecx, ebp
mov edx, dword [esp + 0xdc]
mov eax, ebx
call fcn.004acae4
jmp 0x4adc5e
xor ecx, ecx
mov eax, esi
mov dword [esp + 0xf0], ecx
call fcn.004abffc
mov byte [esp + 0xf4], al
cmp byte [esp + 0xf4], 0
je 0x4adbbe
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
xor ecx, ecx
mov eax, dword [esp + 0x40]
call fcn.004b9a7c
mov dword [esp + 0xf0], eax
mov edx, dword [esp + 0xf0]
mov dword [esp + 0xd8], edx
cmp dword [esp + 0xf0], 0
je 0x4adbbe
mov ecx, dword [esp + 0x40]
cmp byte [ecx + 0x1e], 0
jne 0x4adbbe
xor eax, eax
mov al, byte [esp + 0xf4]
dec eax
je 0x4adba0
mov dl, 1
jmp 0x4adba2
xor edx, edx
mov eax, dword [esp + 0xf0]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0xc], dl
mov ecx, dword [esp + 0xf0]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov byte [edx], 0x98
lea edx, [esp + 0xf8]
mov eax, ebx
call fcn.004ac828
lea ecx, [esp + 0xf0]
push ecx
push 0
xor ecx, ecx
mov cl, byte [esp + 0xfc]
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ebx
call fcn.004b8288
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jne 0x4adc0f
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0x40]
call fcn.004b9f98
jmp 0x4add0c
lea edx, [esp + 0xf8]
mov eax, ebx
call fcn.004ac93c
cmp dword [esp + 0xf0], 0
jne 0x4adc47
cmp byte [esp + 0xf4], 0
je 0x4adc47
mov ecx, dword [esp + 8]
mov edx, 1
mov eax, edi
mov ecx, dword [ecx + 0x18]
push ecx
xor ecx, ecx
call fcn.004c7628
mov eax, dword [esp + 8]
call fcn.004b8ba8
lea edx, [esp + 0xf8]
mov eax, ebx
call fcn.004ac8f0
xor edx, edx
mov dword [esp + 0x1c], edx
push 8
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x28]
mov eax, ebx
call fcn.004bc304
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [esp + 0x10]
mov edx, esi
push ecx
mov ecx, dword [esp + 0xac]
push ecx
mov eax, dword [esp + 0xb0]
push eax
mov eax, ebx
mov ecx, dword [esi]
call fcn.004a9328
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0x40]
call fcn.004b9f98
mov edx, dword [esp + 0x98]
mov eax, edi
call fcn.004c7744
cmp dword [esp + 0x2c], 0
jl 0x4adcd1
mov edx, str.DISTINCT
mov eax, ebx
call fcn.004a97a0
cmp dword [esp + 0x1c], 0
je 0x4adcfb
mov edx, str.ORDER_BY
mov eax, ebx
call fcn.004a97a0
mov ecx, dword [esp + 0x10]
mov edx, esi
mov ecx, dword [ecx]
push ecx
mov ecx, edi
mov eax, dword [esp + 4]
push eax
mov eax, ebx
call fcn.004a9858
mov edx, dword [esp + 0x3c]
mov eax, edi
call fcn.004c7744
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x224], ecx
cmp dword [esp + 0x30], 0
jne 0x4add38
mov eax, dword [esp]
xor edx, edx
mov dl, byte [eax]
cmp edx, 5
jne 0x4add38
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ebx
call fcn.004a9d60
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x40]
call fcn.004de094
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x40]
call fcn.004de094
mov eax, dword [esp + 0x30]
add esp, 0x158
pop ebp
pop edi
pop esi
pop ebx
ret