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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1cc]
push esi
mov esi, dword [ebx]
mov dword [esp + 0xd0], eax
mov eax, dword [ebx + 0x1d0]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x1cc], eax
inc eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
mov dword [ebx + 0x1d0], eax
mov dword [esp + 0x20], esi
test edi, edi
je 0x4a0849
cmp byte [esi + 0x41], 0
jne 0x4a0849
cmp dword [ebx + 0x40], 0
jne 0x4a0849
push 0
push 0
push 0
push 0x15
mov eax, ebx
call fcn.0047fd60
add esp, 0x10
test eax, eax
jne 0x4a0849
push 0x30
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.005de050
mov edx, dword [ebp + 0x10]
add esp, 0xc
cmp byte [edx], 8
ja 0x49ea69
mov eax, dword [edi + 0x30]
push eax
push esi
call fcn.00477f90
mov ecx, 0xfffe
add esp, 8
and word [edi + 6], cx
mov dword [edi + 0x30], 0
push 0
push edi
push ebx
call fcn.0049e260
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x20]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
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 + 0x6c], edx
mov dword [esp + 0x4c], ecx
cmp dword [ebx + 0x40], eax
jne 0x4a06b3
cmp byte [esi + 0x41], al
jne 0x4a06b3
movzx eax, word [edi + 6]
mov edx, dword [edi]
shr eax, 3
and eax, 1
cmp dword [edx], 1
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
jle 0x49eaf1
cmp eax, 0xa
je 0x49eade
cmp eax, 0xb
jne 0x49eaf1
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push ebx
call fcn.004483c0
add esp, 8
jmp 0x4a06b3
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [edi + 0x34], eax
jne 0x49eb8a
jmp 0x49eb0a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
cmp eax, dword [ecx]
jge 0x49eb8a
lea eax, [eax + eax*4]
add eax, eax
mov eax, dword [ecx + eax*8 + 0x1c]
test eax, eax
je 0x49eb7c
movzx esi, word [eax + 6]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shr esi, 3
and esi, 1
push esi
push ecx
push edx
push ebx
mov eax, edi
call fcn.0049c710
add esp, 0x10
test eax, eax
je 0x49eb58
test esi, esi
je 0x49eb50
or word [edi + 6], 8
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x41], 0
mov eax, dword [edi + 0x20]
mov dword [esp + 0x4c], eax
jne 0x4a06b1
mov edx, dword [ebp + 0x10]
cmp byte [edx], 8
jbe 0x49eb7c
mov eax, dword [edi + 0x30]
mov dword [esp + 0x6c], eax
inc dword [esp + 0x14]
cmp dword [edi + 0x34], 0
je 0x49eb02
mov eax, ebx
call fcn.00499e70
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4a056f
cmp dword [edi + 0x34], 0
je 0x49ebc9
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, edi
mov edx, ebx
call fcn.0049a850
mov edx, dword [esp + 0xd8]
add esp, 4
mov dword [ebx + 0x1cc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
cmp dword [eax], 0
mov dword [esp + 0x14], 0
jle 0x49ee52
mov ebx, eax
add ebx, 0x20
mov eax, dword [ebx - 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x49ee3a
mov eax, dword [ebx]
test eax, eax
je 0x49ec16
test byte [ebx + 0x10], 4
jne 0x49ee3a
mov ecx, dword [ebx + 4]
push eax
push ecx
push 0xf
call fcn.00463f20
add esp, 0xc
jmp 0x49ee36
mov eax, dword [ebp + 0xc]
lea edi, [esp + 0x48]
mov dword [esp + 0x48], 0
call fcn.004769e0
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 8]
add dword [eax + 0x1c8], edx
test byte [ebx + 0xc], 0x20
jne 0x49ec5a
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ecx
call fcn.0049cdb0
add esp, 0x10
mov edx, dword [esp + 0x4c]
cmp dword [edx], 1
jne 0x49ed2e
mov eax, dword [ebp + 0xc]
test byte [eax + 6], 2
jne 0x49ed2e
mov edx, dword [esp + 0x20]
mov ecx, 0x100
test word [edx + 0x3c], cx
jne 0x49ed2e
mov edi, dword [esi + 0x20]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
inc edi
push edi
inc eax
push 0
push eax
mov dword [ecx + 0x48], eax
push 0x11
mov dword [ebx + 4], eax
call fcn.00463e10
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x9c], eax
xor eax, eax
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov dword [ebx], edi
mov cl, byte [eax + 0x1d0]
push esi
push eax
mov word [esp + 0xa4], 0xd
mov byte [ebx + 0x14], cl
call fcn.0049e9b0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
add esp, 0x1c
push eax
push ecx
call fcn.004497d0
mov edx, dword [ebx - 8]
mov esi, dword [esp + 0x18]
mov word [edx + 0x26], ax
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x98]
or dword [ebx + 0x10], 4
push ecx
push 0x12
mov dword [ebx + 8], eax
call fcn.00463ec0
add esp, 0x10
lea eax, [edi - 1]
mov edx, esi
call fcn.00464430
jmp 0x49edf6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
inc eax
push eax
push 0
mov dword [ecx + 0x48], eax
push 0x17
mov dword [esp + 0x54], 0
mov dword [ebx + 4], eax
call fcn.00463f20
mov edi, eax
add esp, 0xc
test byte [ebx + 0x10], 2
lea edx, [edi + 1]
mov dword [ebx], edx
jne 0x49ed69
mov eax, dword [ebp + 8]
call fcn.004785d0
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x18]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x8c], eax
xor eax, eax
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x1d0]
push esi
push eax
mov word [esp + 0x94], 0xc
mov byte [ebx + 0x14], cl
call fcn.0049e9b0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
add esp, 0xc
push eax
push ecx
call fcn.004497d0
mov edx, dword [ebx - 8]
mov esi, dword [esp + 0x18]
mov word [edx + 0x26], ax
mov eax, dword [esp + 0x50]
add esp, 8
test eax, eax
je 0x49edd9
mov edx, esi
call fcn.00464430
mov eax, dword [ebx + 4]
push eax
push 0x10
call fcn.00463ec0
add esp, 8
cmp dword [esi + 0x20], edi
jbe 0x49edf6
mov edx, dword [esi + 4]
lea ecx, [edi + edi*4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
mov dword [eax + 0x38], 0
mov byte [eax + 0x13], 0
cmp byte [esi + 0x41], 0
jne 0x4a06b3
mov eax, dword [ebp + 0xc]
lea edi, [esp + 0x48]
mov dword [esp + 0x48], 0
call fcn.004769e0
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp + 8]
sub dword [eax + 0x1c8], ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
inc eax
add ebx, 0x50
mov dword [esp + 0x14], eax
cmp eax, dword [edx]
jl 0x49ebe3
mov eax, dword [edi + 0x24]
mov ebx, dword [edi]
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x50], eax
mov al, byte [edi + 6]
and al, 1
mov byte [esp + 0x88], al
movzx eax, byte [edi + 6]
and al, 9
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], edx
cmp al, 1
jne 0x49eeb8
mov edi, dword [esp + 0x6c]
push 0xffffffffffffffff
push ebx
call fcn.0047bdf0
add esp, 8
test eax, eax
jne 0x49eeb8
mov edx, dword [esp + 0x20]
mov edi, dword [ebp + 0xc]
push eax
mov ecx, 0xfffe
and word [edi + 6], cx
push ebx
push edx
call fcn.004776c0
add esp, 0xc
mov dword [edi + 0x28], eax
mov dword [esp + 0x28], eax
cmp dword [esp + 0x6c], 0
je 0x49ef14
mov eax, dword [esp + 0x58]
mov edi, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
push edi
xor ebx, ebx
call fcn.004988c0
mov ecx, dword [edi + 0x44]
add esp, 4
push 0xfffffffffffffffa
push eax
mov eax, dword [esp + 0x60]
lea edx, [ecx + 1]
mov dword [edi + 0x44], edx
mov edx, dword [eax]
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
push ebx
lea edx, [edx + eax + 1]
push edx
push ecx
push 0x39
mov dword [esp + 0x8c], ecx
call fcn.00463f80
mov esi, dword [esp + 0x28]
add esp, 0x18
mov dword [esp + 0x80], eax
jmp 0x49ef1f
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x49ef46
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
push 0x39
call fcn.00463f20
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov eax, esi
call fcn.00464180
push eax
mov dword [esp + 0xfc], eax
push edi
mov eax, ebx
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], SysReAllocStringLen
call fcn.00499ec0
add esp, 8
cmp dword [edi + 8], 0
jne 0x49ef97
cmp dword [esp + 0x80], 0
jl 0x49ef97
mov eax, dword [esp + 0x80]
mov ecx, esi
call fcn.004647f0
or byte [esp + 0x84], 1
mov byte [eax], 0x3a
test byte [edi + 6], 1
je 0x49effe
mov eax, dword [ebx + 0x44]
mov edi, eax
push 0xfffffffffffffffa
inc eax
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x44], eax
mov eax, dword [ecx]
push ebx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x98], edi
call fcn.004988c0
add esp, 8
push eax
push ebx
push ebx
push edi
push 0x39
call fcn.00463f80
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 4]
add esp, 0x18
test eax, eax
je 0x49efed
mov ecx, dword [ecx + 0x20]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
mov esi, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
mov byte [esp + 0x89], 3
jmp 0x49f006
mov byte [esp + 0x89], 0
mov edi, dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp dword [esp + 0x18], eax
jne 0x49f10f
cmp edi, eax
jne 0x49f10f
push eax
movzx eax, byte [esp + 0x8c]
neg eax
sbb eax, eax
mov ecx, edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x54]
and eax, 0x400
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
push ebx
call fcn.004af6d0
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x50], edi
test edi, edi
je 0x4a056f
mov ax, word [edi + 0x20]
call fcn.00449880
mov ecx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0x1c]
ja 0x49f07d
jb 0x49f077
cmp eax, dword [ecx + 0x18]
jae 0x49f07d
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
cmp byte [esp + 0x88], 0
je 0x49f095
mov al, byte [edi + 0x28]
test al, al
je 0x49f095
mov byte [esp + 0x89], al
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x49f0b5
movsx eax, byte [edi + 0x24]
mov dword [esp + 0x70], eax
cmp eax, dword [ecx]
jne 0x49f0b5
mov dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x80]
test eax, eax
js 0x49f0d4
test ecx, ecx
jne 0x49f0d4
mov ebx, eax
mov edi, esi
call fcn.004645f0
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x50]
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x94]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x7c]
push eax
push 0xffffffffffffffff
push ecx
push edx
push ebx
call fcn.00497de0
add esp, 0x24
push edi
call fcn.004b0010
add esp, 4
jmp 0x4a062a
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x49f179
mov ecx, dword [edx]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
test eax, eax
jle 0x49f13d
add ecx, 0x16
lea ecx, [ecx]
xor ebx, ebx
mov word [ecx], bx
dec eax
add ecx, 0x18
test eax, eax
jg 0x49f130
mov eax, dword [edi]
mov ecx, dword [edi + 4]
test eax, eax
jle 0x49f15d
add ecx, 0x16
lea esp, [esp]
xor edi, edi
mov word [ecx], di
dec eax
add ecx, 0x18
test eax, eax
jg 0x49f150
cmp dword [edx + 0x1c], 0
mov eax, 0x64
ja 0x49f16d
cmp dword [edx + 0x18], eax
jbe 0x49f183
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], 0
jmp 0x49f183
mov dword [edx + 0x18], 1
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
call fcn.0047bdf0
add esp, 8
test eax, eax
jne 0x49f1a2
mov dword [esp + 0x1c], 1
mov edi, dword [esi + 0x18]
mov ebx, dword [edi + 0x6c]
lea edx, [ebx - 1]
lea ecx, [ebx + 1]
mov dword [edi + 0x6c], ecx
test ebx, edx
jne 0x49f1d3
mov esi, dword [edi]
lea eax, [ebx*8 + 4]
push 0
push eax
mov eax, dword [edi + 0x70]
call fcn.00445c60
mov esi, dword [esp + 0x18]
add esp, 8
mov dword [edi + 0x70], eax
mov edi, dword [edi + 0x70]
test edi, edi
je 0x49f1e1
mov dword [edi + ebx*4], 0xffffffff
mov ecx, dword [esp + 0x4c]
or eax, 0xffffffff
sub eax, ebx
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xd8], eax
mov eax, dword [eax + 0x48]
inc eax
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xa4]
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe4], edx
test eax, eax
je 0x49f265
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
jmp 0x49f270
mov dword [esp + 0xb0], 0
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x58]
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0xc0], edx
call fcn.0047c310
mov ebx, dword [esp + 0x70]
lea ecx, [esp + 0xdc]
add esp, 4
push ecx
call fcn.0047c310
mov ecx, dword [esp + 0x4c]
xor edi, edi
add esp, 4
cmp ecx, edi
je 0x49f315
xor eax, eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
push ecx
lea eax, [esp + 0x100]
lea edx, [esp + 0xdc]
push eax
mov dword [esp + 0x104], 0x47bff0
mov dword [esp + 0x108], fcn.0049e110
mov dword [esp + 0x11c], edx
call fcn.004745a0
add esp, 8
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xc8], ecx
cmp dword [esp + 0xd0], edi
jle 0x49f376
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0xcc]
or word [esp + 0xf4], 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + eax]
mov ebx, dword [ecx + 0x14]
lea edx, [esp + 0xd8]
push edx
call fcn.0047c310
add dword [esp + 0x30], 0x10
mov eax, 0xfff7
and word [esp + 0xf8], ax
inc edi
add esp, 4
cmp edi, dword [esp + 0xd0]
jl 0x49f330
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x48]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xb8], ecx
cmp byte [edx + 0x41], 0
jne 0x4a056f
cmp dword [esp + 0x28], 0
je 0x4a0239
mov eax, dword [edi + 0x44]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xa8], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x28]
push edi
xor ebx, ebx
call fcn.004988c0
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x20]
add esp, 4
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
cmp dword [edx + 0x54], eax
jg 0x49f401
push esi
call fcn.00463d80
add esp, 4
test eax, eax
je 0x49f401
mov eax, 1
mov dword [esp + 0x2c], eax
jmp 0x49f435
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x34]
inc dword [esi + 0x20]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x3a
mov eax, ecx
mov dword [esp + 0x2c], ecx
cmp dword [esi + 4], ebx
je 0x49f488
mov edx, dword [esi]
cmp byte [edx + 0x41], bl
jne 0x49f488
cmp eax, ebx
jge 0x49f449
mov eax, dword [esi + 0x20]
dec eax
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx + 0x10]
call fcn.00464450
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], ebx
cmp eax, ebx
jne 0x49f47b
mov eax, ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x49f498
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfa
jmp 0x49f498
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
mov eax, 0xfffffffa
call fcn.00464450
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x54], eax
inc eax
mov dword [esp + 0x9c], eax
inc eax
mov dword [edi + 0x48], eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x6c]
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
lea edx, [eax - 1]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
test eax, edx
jne 0x49f4f9
mov edi, dword [esp + 0x3c]
mov esi, dword [edi]
lea ecx, [eax*8 + 4]
mov eax, dword [edi + 0x70]
push ebx
push ecx
call fcn.00445c60
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x70], eax
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [ecx + 0x70]
cmp ecx, ebx
je 0x49f507
mov dword [ecx + eax*4], 0xffffffff
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
or ecx, 0xffffffff
sub ecx, eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x34], edx
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
lea edx, [eax - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], eax
test eax, edx
jne 0x49f564
mov edi, dword [esp + 0x18]
mov esi, dword [edi]
lea ecx, [eax*8 + 4]
mov eax, dword [edi + 0x70]
push ebx
push ecx
call fcn.00445c60
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x70], eax
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x44]
add esp, 8
mov ecx, dword [ecx + 0x70]
cmp ecx, ebx
je 0x49f572
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x28]
lea edx, [eax + 1]
add eax, dword [ecx]
mov dword [esp + 0x18], edx
mov dword [edi + 0x48], eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
add ecx, eax
mov dword [edi + 0x48], ecx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x30], eax
cmp dword [edx + 0x54], eax
jg 0x49f5bc
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49f5e3
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x9c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
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 word [eax], 0x17
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x54], eax
jg 0x49f603
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49f627
mov eax, dword [esp + 0x30]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x54]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x17
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx - 1]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x54], eax
jg 0x49f659
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49f681
mov eax, dword [esp + 0x30]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x1a
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x54], eax
jg 0x49f6a1
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49f6c9
mov eax, dword [esp + 0x30]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x34]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x3c]
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 word [eax], 0xf
mov eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 0x800
mov ecx, 0x100
or ax, cx
mov ecx, dword [esp + 0x50]
push ebx
movzx edx, ax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x54]
push ebx
push eax
push ecx
push edx
push edi
call fcn.004af6d0
add esp, 0x1c
mov dword [esp + 0x50], eax
cmp eax, ebx
je 0x4a056f
movsx ecx, byte [eax + 0x24]
mov edx, dword [esp + 0x28]
cmp ecx, dword [edx]
jne 0x49f71f
xor ebx, ebx
mov dword [esp + 0x5c], ebx
jmp 0x49fab1
cmp byte [esp + 0x88], 0
je 0x49f737
mov eax, dword [ebp + 0xc]
test byte [eax + 6], 1
mov eax, str.DISTINCT
je 0x49f73c
mov eax, str.GROUP_BY
mov ecx, edi
call fcn.00498950
cmp dword [esp + 0xc4], 0
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx]
mov dword [esp + 0x5c], 1
mov eax, ebx
mov dword [esp + 0x30], ebx
mov ecx, ebx
jle 0x49f799
mov edx, dword [esp + 0xc0]
add edx, 0xc
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x44], edx
lea esp, [esp]
mov edx, dword [esp + 0x24]
cmp dword [edx], ecx
jl 0x49f78a
inc eax
inc ecx
add dword [esp + 0x24], 0x18
dec dword [esp + 0x44]
jne 0x49f780
mov dword [esp + 0x30], eax
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x44], edx
cmp eax, ecx
jg 0x49f7b3
add edx, eax
sub ecx, eax
mov dword [edi + 0x3c], edx
mov dword [edi + 0x38], ecx
jmp 0x49f7c2
mov ecx, dword [edi + 0x48]
lea edx, [ecx + 1]
add ecx, eax
mov dword [esp + 0x44], edx
mov dword [edi + 0x48], ecx
mov eax, edi
call fcn.00479e80
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
push eax
push edi
xor cl, cl
call fcn.0047b230
add esp, 8
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
jle 0x49f8af
add ebx, dword [esp + 0x44]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x24], 0
lea ebx, [ebx]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + edx + 0xc]
cmp ecx, dword [esp + 0x10]
jl 0x49f894
mov edi, dword [ebp + 8]
push 0
mov ecx, edx
mov edx, dword [eax + ecx + 4]
push ebx
push edx
mov edx, dword [eax + ecx + 8]
mov eax, dword [eax + ecx]
push edx
push eax
call fcn.00479de0
mov ecx, eax
add esp, 0x14
mov dword [esp + 0xc], ecx
cmp ebx, ecx
je 0x49f885
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], edi
jg 0x49f862
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49f885
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea eax, [edi + edi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x20
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc0]
mov edi, dword [ebp + 8]
inc ebx
mov ecx, dword [esp + 0x14]
add dword [esp + 0x24], 0x18
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0xc4]
jl 0x49f810
mov al, byte [edi + 0x13]
test al, al
jne 0x49f8be
inc dword [edi + 0x48]
mov ebx, dword [edi + 0x48]
jmp 0x49f8ca
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebx, dword [edi + eax*4 + 0x18]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x49f8ea
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49f917
mov eax, dword [esp + 0xc]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x44]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0
mov word [eax], 0x31
mov eax, dword [esp + 0xa8]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x49f942
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49f969
mov eax, dword [esp + 0xc]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x6e
test ebx, ebx
je 0x49f998
mov dl, byte [edi + 0x13]
cmp dl, 8
jae 0x49f998
xor eax, eax
lea ecx, [edi + 0x74]
lea ebx, [ebx]
cmp dword [ecx + 0xc], ebx
je 0x49f9ed
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x49f980
movzx edx, dl
mov dword [edi + edx*4 + 0x18], ebx
inc byte [edi + 0x13]
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov eax, ebx
call fcn.00479a80
mov eax, dword [esp + 0x30]
cmp eax, dword [ebx + 0x38]
jle 0x49f9bb
mov ecx, eax
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], edi
mov edx, dword [esp + 0x50]
push edx
call fcn.004b0010
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0xb0], eax
inc eax
mov dword [ebx + 0x44], eax
mov al, byte [ebx + 0x13]
add esp, 4
test al, al
jne 0x49f9f3
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x24], eax
jmp 0x49fa03
mov byte [ecx + 6], 1
jmp 0x49f998
dec al
movzx ecx, al
mov byte [ebx + 0x13], al
mov edx, dword [ebx + ecx*4 + 0x18]
mov dword [esp + 0x24], edx
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], edi
jg 0x49fa1b
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fa4c
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x3c
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xc], edx
cmp dword [eax + 0x54], edi
jg 0x49fa6f
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fa9a
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x6b
mov eax, ebx
mov byte [esp + 0xa5], 1
call fcn.00479e80
mov edi, eax
mov eax, dword [esp + 0x50]
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
je 0x49fb1e
mov ecx, dword [esp + 0x20]
test byte [ecx + 0x3c], 4
jne 0x49fb1e
cmp dword [esp + 0x5c], ebx
jne 0x49facc
cmp byte [eax + 0x25], bl
je 0x49fb1e
mov edx, dword [esp + 0x80]
mov dword [esp + 0x6c], ebx
cmp edx, dword [esi + 0x20]
jge 0x49fb1e
mov ecx, dword [esi + 4]
mov eax, edx
mov edx, dword [esi]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0xc], ecx
mov ecx, dword [ecx + 0x10]
call fcn.00464450
mov eax, dword [esp + 0xc]
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], 0x9f
mov eax, dword [esi + 0x20]
dec eax
cmp dword [esp + 0x80], eax
jne 0x49fb1e
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x20]
mov eax, edi
mov dword [esp + 0x30], edx
call fcn.00479e80
cmp dword [esp + 0x5c], ebx
je 0x49fb89
mov eax, dword [esp + 0xa8]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x49fb5d
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fb89
mov eax, dword [esp + 0xc]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x65
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
cmp dword [eax], ebx
jle 0x49fc34
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x5c], ebx
je 0x49fbf1
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov dword [esp + 0xc], eax
cmp dword [edx + 0x54], eax
jg 0x49fbc3
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fc1a
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
add ecx, dword [esp + 0x64]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x2f
jmp 0x49fc1a
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x64]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
mov byte [esp + 0xa8], 1
mov eax, dword [edx + 4]
mov edx, dword [eax + ecx]
push edx
push edi
call fcn.0047b050
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], 0x18
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [eax]
jl 0x49fb9d
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x49fc3e
inc dword [ecx]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], ecx
cmp dword [edx + 0x54], ecx
jg 0x49fc6b
push esi
call fcn.00463d80
add esp, 4
test eax, eax
je 0x49fc67
mov eax, 1
jmp 0x49fc99
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
mov byte [eax + 3], bl
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x2a
mov eax, ecx
cmp dword [esi + 4], ebx
je 0x49fcea
mov edx, dword [esi]
cmp byte [edx + 0x41], bl
jne 0x49fcea
cmp eax, ebx
jge 0x49fcad
mov eax, dword [esi + 0x20]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
lea ecx, [eax + ecx*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx + 0x10]
call fcn.00464450
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x10], ebx
mov eax, edx
cmp dword [esp + 0x40], ebx
jne 0x49fcdd
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x49fcfa
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
jmp 0x49fcfa
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
mov eax, 0xfffffffa
call fcn.00464450
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
cmp dword [edx + 0x54], eax
jg 0x49fd1e
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fd43
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
inc ecx
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x2b
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov edi, dword [edi + 8]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x49fd70
push edi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fd9c
mov eax, dword [esp + 0xc]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x64]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x1e
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x64]
mov eax, dword [ebp + 8]
call fcn.00479a80
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], edi
jg 0x49fdc4
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fdef
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x68]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0xa0]
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 word [eax], 0xf
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], edi
jg 0x49fe07
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fe32
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x9c]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x60]
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 word [eax], 0x8a
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], edi
jg 0x49fe4a
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fe72
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x3c]
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 word [eax], 0xf
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jbe 0x49fe87
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec edx
lea ecx, [esp + 0xa4]
mov dword [eax + 0x58], edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0049e4b0
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
add esp, 8
cmp dword [eax + 0x54], edi
jg 0x49febd
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49fee6
mov eax, dword [esi + 4]
mov ecx, 1
add dword [esi + 0x20], ecx
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x17
cmp dword [esp + 0x5c], ebx
je 0x49ff39
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xc], edx
cmp dword [eax + 0x54], edi
jg 0x49ff0f
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49ff87
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
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 word [eax], 4
jmp 0x49ff87
mov eax, dword [esp + 0x50]
push eax
call fcn.004b0010
mov ecx, dword [esp + 0x30]
add esp, 4
cmp ecx, dword [esi + 0x20]
jge 0x49ff87
mov eax, ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4 + 0x10]
lea edi, [eax + edx*4]
movsx eax, byte [edi + 1]
mov edx, dword [esi]
call fcn.00464450
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov byte [edi], 0x9f
mov eax, dword [esi + 0x20]
dec eax
cmp dword [esp + 0x2c], eax
jne 0x49ff87
mov dword [esi + 0x20], eax
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x54], edi
jg 0x49ff9f
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x49ffca
mov eax, dword [esi + 4]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x68]
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0xa0]
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 word [eax], 0xf
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x54], edi
jg 0x49ffe2
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a0006
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x60]
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0xe
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x1c], edi
cmp dword [edx + 0x54], edi
jg 0x4a0022
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a004e
mov edx, dword [esi + 4]
mov ecx, 1
add dword [esi + 0x20], ecx
lea eax, [edi + edi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x9c]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x17
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], edi
jg 0x4a0066
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a008a
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x68]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
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 word [eax], 0x10
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0xa0]
js 0x4a00a6
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x4a00a6
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x54], edi
jg 0x4a00c5
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a00ec
mov eax, dword [esi + 4]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x54]
lea edx, [edi + edi*4]
lea eax, [eax + edx*4]
lea edx, [edi + 2]
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 word [eax], 0x8a
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x54], eax
jg 0x4a010c
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a0130
mov eax, dword [esp + 0xc]
inc dword [esi + 0x20]
mov ecx, dword [esp + 0x68]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
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 word [eax], 0x10
mov eax, dword [ebp + 8]
lea edx, [esp + 0xa4]
push edx
call fcn.0049e3b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebp + 8]
add esp, 4
push 0x10
inc edi
push edi
push eax
push ecx
call fcn.0047b8a0
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push edx
push edi
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x8c]
push edx
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push ecx
push eax
push edx
call fcn.00497de0
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
add esp, 0x34
cmp dword [eax + 0x54], edi
jg 0x4a019c
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a01c0
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x68]
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 word [eax], 0x10
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x3c]
js 0x4a01d9
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x4a01d9
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esi + 0x20]
dec edx
lea eax, [esp + 0xa4]
mov dword [ecx + 0x58], edx
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0049e2c0
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add esp, 8
cmp dword [edx + 0x54], edi
jg 0x4a0210
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a0607
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
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 word [eax], 0x10
jmp 0x4a0607
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x3c], 0
call fcn.0049ced0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a04bf
mov ecx, dword [eax + 0x40]
mov eax, dword [edi]
mov ebx, 0xfff0bdc0
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x4a0291
mov edx, dword [eax + 0x14]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
test edx, edx
jle 0x4a0291
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4a028d
inc ebx
add eax, 0x10
cmp ebx, edx
jl 0x4a0281
mov dword [esp + 0x2c], ebx
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
inc eax
mov dword [edi + 0x44], eax
mov edx, dword [ecx + 0x1c]
xor eax, eax
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x198]
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], eax
test edx, edx
jne 0x4a02bd
mov edx, edi
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x14c]
test ecx, eax
jne 0x4a02fe
or eax, ecx
mov ecx, dword [edx]
mov dword [edx + 0x14c], eax
mov ecx, dword [ecx + 0x10]
mov eax, ebx
add eax, eax
mov eax, dword [ecx + eax*8 + 0xc]
mov ecx, dword [eax]
mov dword [edx + ebx*4 + 0x150], ecx
cmp ebx, 1
jne 0x4a02fe
mov ebx, edx
call fcn.00485ba0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov eax, dword [eax + 0x1c]
push edx
push 0
push eax
push ebx
mov eax, edi
call fcn.0047fdf0
mov ecx, dword [esp + 0x24]
add esp, 0x10
test byte [ecx + 0x2a], 0x20
je 0x4a0346
mov edx, ecx
mov eax, dword [edx + 8]
test eax, eax
je 0x4a0342
lea esp, [esp]
mov ecx, dword [eax + 0x34]
and cl, 3
cmp cl, 2
je 0x4a0342
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4a0330
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
test eax, eax
je 0x4a0384
test byte [eax + 0x34], 4
jne 0x4a037d
movzx ecx, word [eax + 0x2c]
mov edx, dword [esp + 0x14]
cmp cx, word [edx + 0x28]
jge 0x4a037d
cmp dword [eax + 0x24], 0
jne 0x4a037d
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4a0379
cmp cx, word [edx + 0x2c]
jge 0x4a037d
mov dword [esp + 0x40], eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4a0351
cmp dword [esp + 0x40], 0
je 0x4a03a4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x28]
push eax
push edi
mov dword [esp + 0x5c], ecx
call fcn.004865c0
add esp, 8
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
push 1
push ebx
push edx
push eax
push 0x36
mov eax, esi
call fcn.004640d0
add esp, 0x14
cmp dword [esp + 0x18], 0
je 0x4a0405
mov ebx, dword [esi + 4]
mov edx, dword [esi]
test ebx, ebx
je 0x4a03f7
cmp byte [edx + 0x41], 0
jne 0x4a03f7
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4 - 5]
movsx eax, byte [ebx + ecx*4 + 1]
lea ebx, [ebx + ecx*4]
mov ecx, dword [ebx + 0x10]
call fcn.00464450
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x10], edx
mov byte [ebx + 1], 0xfa
jmp 0x4a0405
mov ecx, dword [esp + 0x18]
mov eax, 0xfffffffa
call fcn.00464450
mov eax, dword [esp + 0xcc]
mov ebx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
cmp dword [edx + 0x54], ebx
jg 0x4a042b
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a0456
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x32
mov ebx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], ebx
jg 0x4a046e
push esi
call fcn.00463d80
add esp, 4
test eax, eax
jne 0x4a04a9
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
xor ebx, ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x3d
mov eax, dword [esp + 0x40]
mov ecx, edi
call fcn.0049e8a0
jmp 0x4a05c3
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov ecx, edi
xor ebx, ebx
call fcn.0049e8a0
jmp 0x4a05c3
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x3b], bl
cmp dword [eax + 0x2c], ebx
jne 0x4a052b
lea edi, [esp + 0x34]
lea eax, [esp + 0xa4]
call fcn.0049ce60
mov byte [esp + 0x3b], al
test al, al
je 0x4a0524
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push ebx
push ecx
push edi
call fcn.004776c0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x4a0528
cmp byte [edi + 0x41], 0
jne 0x4a0528
cmp byte [esp + 0x3b], 1
mov eax, dword [ebx + 4]
setne dl
mov byte [eax + 0xc], dl
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov byte [edx], 0x9a
jmp 0x4a0528
mov ebx, dword [esp + 0x34]
mov edi, dword [ebp + 8]
lea eax, [esp + 0xa4]
push eax
push edi
call fcn.0049e2c0
movzx edx, byte [esp + 0x43]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push 0
push edx
push 0
push ebx
push eax
push ecx
push edi
call fcn.004af6d0
mov ebx, eax
add esp, 0x24
test ebx, ebx
jne 0x4a0578
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00477f90
add esp, 8
mov esi, dword [esp + 0x20]
jmp 0x4a06b3
lea ecx, [esp + 0xa4]
push ecx
push edi
call fcn.0049e4b0
add esp, 8
cmp byte [ebx + 0x24], 0
jle 0x4a05a6
mov edx, dword [ebx + 0x34]
push edx
push 0
push 0xe
call fcn.00463f20
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.004b0010
lea eax, [esp + 0xa8]
add esp, 4
push eax
mov eax, edi
call fcn.0049e3b0
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x48]
push 0x10
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x64]
push ebx
push ecx
push edi
call fcn.0047b8a0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ebx
push ebx
push edx
push 0
push 0
push 0xffffffffffffffff
push ecx
push eax
push edi
call fcn.00497de0
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x54]
add esp, 0x34
push edx
push eax
call fcn.00477f90
add esp, 8
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x60]
js 0x4a0620
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x4a0620
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esi + 0x20]
mov ebx, dword [ebp + 8]
dec edx
mov dword [ecx + 0x58], edx
cmp byte [esp + 0x89], 3
jne 0x4a0640
mov eax, str.DISTINCT
mov ecx, ebx
call fcn.00498950
cmp dword [esp + 0x6c], 0
je 0x4a067c
cmp dword [esp + 0x70], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x4a0658
mov eax, str.ORDER_BY
mov ecx, ebx
call fcn.00498950
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
push eax
push edx
lea eax, [esp + 0x74]
push eax
push ecx
push ebx
call fcn.00498b50
add esp, 0x14
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0xf8]
js 0x4a0698
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x4a0698
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esi + 0x20]
mov esi, dword [esp + 0x20]
dec edx
xor eax, eax
mov dword [ecx + 0x58], edx
cmp dword [ebx + 0x40], eax
setg al
mov dword [esp + 0x5c], eax
jmp 0x4a06b3
mov esi, ecx
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0xd4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1cc], ecx
test ebx, ebx
jne 0x4a06e6
mov edx, dword [ebp + 0x10]
cmp byte [edx], 9
jne 0x4a06e6
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.004995a0
add esp, 0xc
mov eax, dword [esp + 0xc0]
mov edi, eax
test eax, eax
je 0x4a0787
cmp dword [esi + 0x208], 0
je 0x4a0709
mov ecx, esi
call fcn.00445830
jmp 0x4a0787
cmp eax, dword [esi + 0x114]
jb 0x4a072f
cmp eax, dword [esi + 0x118]
jae 0x4a072f
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
jmp 0x4a0787
cmp dword [0x6c5330], 0
je 0x4a077d
mov eax, dword [0x6ce8d8]
test eax, eax
je 0x4a074b
push eax
call dword [0x6c5384]
add esp, 4
push edi
call dword [0x6c5360]
sub dword [0x6ce728], eax
dec dword [0x6ce74c]
add esp, 4
push edi
call dword [0x6c5358]
mov eax, dword [0x6ce8d8]
add esp, 4
test eax, eax
je 0x4a0787
push eax
call dword [0x6c538c]
jmp 0x4a0784
push eax
call dword [0x6c5358]
add esp, 4
mov eax, dword [esp + 0xcc]
mov edi, eax
test eax, eax
je 0x4a0840
cmp dword [esi + 0x208], 0
je 0x4a07b1
mov ecx, esi
call fcn.00445830
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esi + 0x114]
jb 0x4a07de
cmp eax, dword [esi + 0x118]
jae 0x4a07de
mov edx, dword [esi + 0x110]
mov dword [eax], edx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x6c5330], 0
je 0x4a0836
mov eax, dword [0x6ce8d8]
test eax, eax
je 0x4a07fa
push eax
call dword [0x6c5384]
add esp, 4
push edi
call dword [0x6c5360]
sub dword [0x6ce728], eax
dec dword [0x6ce74c]
add esp, 4
push edi
call dword [0x6c5358]
mov eax, dword [0x6ce8d8]
add esp, 4
test eax, eax
je 0x4a0840
push eax
call dword [0x6c538c]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [0x6c5358]
add esp, 4
mov eax, ebx
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