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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d0]
mov dword [esp + 0xc8], eax
mov eax, dword [esi + 0x1d4]
push edi
mov edi, dword [esi]
mov dword [esi + 0x1d0], eax
inc eax
mov dword [esp + 0x48], 1
mov dword [esi + 0x1d4], eax
mov dword [esp + 0x30], edi
test ebx, ebx
je 0x475305
cmp byte [edi + 0x40], 0
jne 0x475305
cmp dword [esi + 0x40], 0
jne 0x475305
push 0
push 0
push 0
push 0x15
mov eax, esi
call fcn.004562d0
add esp, 0x10
test eax, eax
jne 0x475305
push 0x30
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.004aaf30
mov edx, dword [ebp + 0x10]
add esp, 0xc
cmp byte [edx], 8
ja 0x4738f1
mov eax, dword [ebx + 0x30]
push eax
push edi
call fcn.0044eb50
mov ecx, 0xfffe
add esp, 8
and word [ebx + 6], cx
mov dword [ebx + 0x30], 0
push 0
push ebx
push esi
call fcn.00473150
mov edx, dword [ebx + 0x30]
mov edi, dword [ebx]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x20]
add esp, 0xc
cmp dword [esi + 0x40], 0
mov dword [esp + 0x6c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], edi
jne 0x475222
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x40], 0
jne 0x475222
movzx eax, word [ebx + 6]
shr eax, 2
and eax, 1
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.0046ee30
mov dword [esp + 0x10], eax
test eax, eax
je 0x475222
cmp dword [edi], 1
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
jle 0x4739a0
cmp eax, 0xa
je 0x47398c
cmp eax, 0xb
jne 0x4739a0
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
mov edi, esi
call fcn.004231b0
add esp, 4
jmp 0x475222
cmp dword [ebx + 0x34], 0
mov dword [esp + 0x44], 0
jne 0x473c63
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [eax]
jge 0x473c63
mov eax, ecx
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x38]
shl edx, 4
lea edi, [edx + eax + 8]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x473c55
mov eax, dword [edi + 0x18]
test eax, eax
je 0x473a0d
test byte [edi + 0x28], 4
jne 0x473c55
mov ecx, dword [edi + 0x1c]
mov esi, dword [esp + 0x10]
push eax
push ecx
push 0x11
call fcn.0043c9d0
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x473c55
mov eax, ebx
call fcn.0044d7c0
add dword [esi + 0x1cc], eax
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + 6]
mov ecx, dword [esp + 0x44]
shr eax, 2
and eax, 1
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push esi
mov eax, ebx
call fcn.004717a0
add esp, 0x10
test eax, eax
je 0x473a67
cmp dword [esp + 0x20], 0
je 0x473a5a
or word [ebx + 6], 4
mov dword [esp + 0x14], 1
mov dword [esp + 0x44], 0xffffffff
jmp 0x473c24
mov edx, dword [esp + 0x38]
cmp dword [edx], 1
jne 0x473b41
mov ecx, dword [esp + 0x30]
mov eax, 0x100
test word [ecx + 0x3c], ax
jne 0x473b41
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
inc dword [esi + 0x48]
mov esi, dword [esi + 0x48]
inc eax
push eax
push 0
push esi
mov dword [edi + 0x1c], esi
push 0x14
mov esi, ecx
mov dword [esp + 0x3c], eax
call fcn.0043c8d0
mov eax, dword [edi + 0x1c]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
mov dword [edi + 0x18], edx
mov dword [esp + 0xe4], eax
xor eax, eax
lea edx, [esp + 0xe0]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x1d4]
push edx
push esi
mov byte [esp + 0xe8], 0xd
mov byte [esp + 0xe9], 0
push eax
mov byte [edi + 0x2c], cl
call fcn.00473840
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
add esp, 0x1c
push eax
push ecx
call fcn.004244e0
mov edx, dword [edi + 0x10]
mov esi, dword [esp + 0x18]
mov word [edx + 0x1c], ax
mov ecx, dword [edi + 0x1c]
or dword [edi + 0x28], 4
mov eax, dword [esp + 0xe0]
push ecx
push 0x15
mov dword [edi + 0x20], eax
call fcn.0043c980
mov eax, dword [esp + 0x3c]
add esp, 0x10
dec eax
mov edx, esi
call fcn.0043cee0
jmp 0x473c14
inc dword [esi + 0x48]
mov esi, dword [esi + 0x48]
push esi
mov dword [edi + 0x1c], esi
mov esi, dword [esp + 0x14]
push 0
push 0x19
mov dword [esp + 0x38], 0
call fcn.0043c9d0
mov dword [esp + 0x34], eax
inc eax
add esp, 0xc
test byte [edi + 0x28], 2
mov dword [edi + 0x18], eax
jne 0x473b7d
mov eax, dword [ebp + 8]
call fcn.0044f130
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x30]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0xd4], eax
xor eax, eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0x1d4]
push ecx
push esi
mov byte [esp + 0xd8], 0xc
mov byte [esp + 0xd9], 0
push eax
mov byte [edi + 0x2c], dl
call fcn.00473840
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
add esp, 0xc
push edx
push eax
call fcn.004244e0
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x18]
mov word [ecx + 0x1c], ax
mov eax, dword [esp + 0x34]
add esp, 8
test eax, eax
je 0x473bf3
mov edx, esi
call fcn.0043cee0
mov edx, dword [edi + 0x1c]
push edx
push 0x12
call fcn.0043c980
mov ecx, dword [esp + 0x30]
add esp, 8
cmp dword [esi + 0x20], ecx
jbe 0x473c14
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 4]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebp + 8]
mov esi, eax
mov dword [eax + 0x38], 0
mov byte [eax + 0x13], 0
mov edx, dword [esp + 0x30]
cmp byte [edx + 0x40], 0
jne 0x475222
mov eax, ebx
call fcn.0044d7c0
sub dword [esi + 0x1cc], eax
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 8
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x38], eax
jbe 0x473c55
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x6c], edx
inc dword [esp + 0x44]
cmp dword [ebx + 0x34], 0
je 0x4739b2
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x2c], eax
mov al, byte [ebx + 6]
and al, 1
cmp dword [ebx + 0x34], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x18], edx
mov byte [esp + 0x88], al
je 0x473cb3
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
mov ecx, esi
call fcn.0046f7b0
mov edx, dword [esp + 0xd4]
add esp, 8
mov dword [esi + 0x1d0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 6]
and al, 5
cmp al, 1
jne 0x473df3
mov edi, dword [esp + 0x6c]
push 0xffffffffffffffff
push ecx
call fcn.00452510
add esp, 8
test eax, eax
jne 0x473df3
mov edx, dword [ebx]
push eax
mov eax, dword [esp + 0x34]
push edx
mov ecx, 0xfffe
and word [ebx + 6], cx
push eax
call fcn.0044e2d0
add esp, 0xc
mov dword [ebx + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0xc
mov edi, dword [esp + 0x10]
jne 0x473d31
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
push 0x39
mov esi, edi
call fcn.0043c9d0
mov esi, dword [ebp + 8]
add esp, 0xc
mov eax, edi
call fcn.0043cc20
push eax
mov dword [esp + 0x108], eax
push ebx
mov eax, esi
mov dword [ebx + 0x18], 0xffffffff
mov dword [ebx + 0x1c], SysReAllocString
call fcn.0046ee80
add esp, 8
cmp dword [ebx + 8], 0
jne 0x473d82
cmp dword [esp + 0x80], 0
jl 0x473d82
mov eax, dword [esp + 0x80]
mov ecx, edi
call fcn.0043d210
or byte [esp + 0x84], 1
mov byte [eax], 0x3a
test byte [ebx + 6], 1
je 0x473e50
mov eax, dword [esi + 0x44]
push 0xfffffffffffffffa
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x94], eax
inc eax
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
push 0
push esi
xor ebx, ebx
call fcn.0046dac0
mov edx, dword [esp + 0x9c]
add esp, 0xc
push eax
push ebx
push ebx
push edx
push 0x39
mov esi, edi
call fcn.0043ca30
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 4]
add esp, 0x18
test eax, eax
je 0x473de3
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 8
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [esp + 0x89], 3
jmp 0x473e58
cmp dword [esp + 0x6c], 0
je 0x473d00
mov edi, dword [esp + 0x6c]
push 0
push esi
xor ebx, ebx
mov eax, edi
call fcn.0046dac0
mov ecx, dword [esi + 0x44]
push 0xfffffffffffffffa
push eax
mov eax, dword [esp + 0x60]
lea edx, [ecx + 1]
mov dword [esi + 0x44], edx
mov edx, dword [eax]
mov eax, dword [edi]
mov esi, dword [esp + 0x20]
push ebx
lea edx, [edx + eax + 1]
push edx
push ecx
push 0x39
mov dword [esp + 0x94], ecx
call fcn.0043ca30
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esp, 0x20
mov dword [esp + 0x80], eax
jmp 0x473d0b
mov byte [esp + 0x89], 0
mov edx, dword [esp + 0x18]
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x473f5d
cmp edx, edi
jne 0x473f5d
movzx edx, byte [esp + 0x88]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x6c]
neg edx
push edi
sbb edx, edx
and edx, 0x400
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
push esi
call fcn.00482450
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x60], edi
test edi, edi
je 0x475222
mov ax, word [edi + 0x20]
call fcn.00424580
cmp edx, dword [ebx + 0x1c]
ja 0x473ec8
jb 0x473ec2
cmp eax, dword [ebx + 0x18]
jae 0x473ec8
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
cmp byte [esp + 0x88], 0
je 0x473ee0
mov al, byte [edi + 0x28]
test al, al
je 0x473ee0
mov byte [esp + 0x89], al
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x473f00
movsx ecx, byte [edi + 0x24]
mov dword [esp + 0x70], ecx
cmp ecx, dword [eax]
jne 0x473f00
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], 0
jl 0x473f25
test eax, eax
jne 0x473f25
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x10]
call fcn.0043d090
mov ebx, dword [ebp + 0xc]
mov edi, dword [esp + 0x60]
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x7c]
push edx
push 0xffffffffffffffff
push eax
push ebx
mov ebx, esi
call fcn.0046cf30
push edi
call fcn.00482d60
add esp, 0x24
xor ebx, ebx
jmp 0x474d47
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], edi
cmp edx, edi
je 0x473fc1
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, edi
mov ecx, dword [ecx + 4]
jle 0x473f8d
add ecx, 0x16
jmp 0x473f80
xor edi, edi
mov word [ecx], di
dec eax
add ecx, 0x18
cmp eax, edi
jg 0x473f80
mov eax, dword [edx]
cmp eax, edi
mov ecx, dword [edx + 4]
jle 0x473fad
add ecx, 0x16
lea esp, [esp]
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x18
cmp eax, edi
jg 0x473fa0
cmp dword [ebx + 0x1c], edi
ja 0x473fb8
cmp dword [ebx + 0x18], 0x64
jbe 0x473fcb
mov dword [ebx + 0x18], 0x64
jmp 0x473fc8
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], edi
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call fcn.00452510
add esp, 8
test eax, eax
jne 0x473fea
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x10]
call fcn.0043cc20
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe8], ecx
mov ecx, dword [esi + 0x48]
inc ecx
lea edx, [esp + 0x9c]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0xe4], esi
mov dword [esp + 0xf0], edx
mov dword [esp + 0xac], ecx
cmp edi, eax
je 0x47406b
mov edx, dword [edi]
mov dword [esp + 0xa8], edx
jmp 0x474072
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
lea ecx, [esp + 0xe4]
push ecx
mov dword [esp + 0xb8], eax
call fcn.00452a60
mov ebx, dword [esp + 0x70]
lea edx, [esp + 0xe8]
add esp, 4
push edx
call fcn.00452a60
mov ecx, dword [esp + 0x30]
xor edi, edi
add esp, 4
cmp ecx, edi
je 0x4740bf
lea eax, [esp + 0xe4]
push eax
call fcn.00452a10
add esp, 4
cmp dword [esp + 0xc8], edi
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0xc0], ecx
jle 0x474120
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xc4]
or word [esp + 0x100], 8
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax]
mov ebx, dword [ecx + 0x14]
lea edx, [esp + 0xe4]
push edx
call fcn.00452a60
add dword [esp + 0x18], 0x10
mov eax, 0xfff7
and word [esp + 0x104], ax
inc edi
add esp, 4
cmp edi, dword [esp + 0xc8]
jl 0x4740da
mov ecx, dword [esi + 0x48]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xb0], ecx
cmp byte [edx + 0x40], 0
jne 0x475222
cmp dword [esp + 0x18], 0
je 0x474db4
mov eax, dword [esi + 0x44]
mov dword [esp + 0xa0], eax
inc eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x18]
push 0
push esi
xor ebx, ebx
call fcn.0046dac0
mov ecx, dword [esp + 0xa8]
mov esi, dword [esp + 0x18]
push 0xfffffffffffffffa
push eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xb8]
push ebx
push eax
push ecx
push 0x3a
call fcn.0043ca30
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x48]
inc eax
lea esi, [eax + 1]
mov dword [esp + 0x7c], eax
lea eax, [esi + 1]
mov dword [esp + 0x34], eax
mov dword [edi + 0x48], eax
mov eax, ebx
mov dword [esp + 0x40], esi
call fcn.0043cc20
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
mov dword [esp + 0xb4], eax
mov eax, ebx
mov dword [esp + 0x48], edx
call fcn.0043cc20
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
add eax, edx
mov dword [edi + 0x48], eax
mov ecx, dword [ecx]
push esi
lea edx, [eax + 1]
add ecx, eax
push 0
push 0x19
mov esi, ebx
mov dword [esp + 0x94], edx
mov dword [edi + 0x48], ecx
call fcn.0043c9d0
mov edx, dword [esp + 0x88]
add esp, 0x2c
push edx
push 0
push 0x19
call fcn.0043c9d0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [esp + 0xa4]
add esp, 0xc
lea edx, [eax + ecx - 1]
push edx
push eax
push 0
push 0x1c
call fcn.0043c8d0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push 0x11
call fcn.0043c9d0
add esp, 0x1c
push 0
mov edx, dword [esp + 0x38]
neg edx
sbb edx, edx
and edx, 0x800
mov eax, 0x100
or dx, ax
mov eax, dword [esp + 0x20]
movzx ecx, dx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x40]
push 0
push edx
push eax
push ecx
push edi
call fcn.00482450
add esp, 0x1c
mov dword [esp + 0x60], eax
test eax, eax
je 0x475220
mov ecx, dword [esp + 0x18]
mov edx, eax
movsx eax, byte [edx + 0x24]
cmp eax, dword [ecx]
jne 0x4742a0
xor edi, edi
mov dword [esp + 0x48], edi
jmp 0x4745ea
cmp byte [esp + 0x88], 0
je 0x4742b8
mov edx, dword [ebp + 0xc]
test byte [edx + 6], 1
mov eax, str.DISTINCT
je 0x4742bd
mov eax, str.GROUP_BY
mov esi, edi
call fcn.0046db80
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], edi
mov eax, edi
test ecx, ecx
jle 0x474313
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x1c], ecx
add edx, 0xc
mov ecx, edi
jmp 0x4742f9
mov edx, dword [esp + 0x24]
cmp dword [edx], eax
jl 0x4742ff
inc ecx
inc eax
add edx, 0x18
sub dword [esp + 0x1c], 1
mov dword [esp + 0x24], edx
jne 0x4742f5
mov dword [esp + 0x4c], ecx
jmp 0x474317
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x38]
cmp ecx, eax
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x40], edx
jg 0x474331
add edx, ecx
sub eax, ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
jmp 0x474340
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x40], edx
mov dword [esi + 0x48], eax
mov edx, esi
call fcn.00450710
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
push eax
push esi
xor cl, cl
call fcn.00451940
add esp, 8
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], 0
jle 0x4743f5
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xb8]
add ecx, edi
mov dword [esp + 0x24], ecx
xor edi, edi
mov edx, dword [eax + edi + 0xc]
cmp edx, dword [esp + 0x1c]
jl 0x4743e0
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + edi + 4]
push 0
push ecx
mov ecx, dword [eax + edi + 8]
push edx
mov edx, dword [eax + edi]
push ecx
push edx
mov eax, esi
call fcn.00450650
add esp, 0x14
cmp dword [esp + 0x24], eax
je 0x4743cc
mov ecx, dword [esp + 0x24]
push ecx
push eax
push 0x22
mov esi, ebx
call fcn.0043c9d0
mov esi, dword [ebp + 8]
add esp, 0xc
mov eax, 1
add dword [esp + 0x1c], eax
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x44]
inc ecx
add edi, 0x18
cmp ecx, dword [esp + 0xbc]
mov dword [esp + 0x44], ecx
jl 0x474388
mov al, byte [esi + 0x13]
test al, al
jne 0x474404
inc dword [esi + 0x48]
mov edi, dword [esi + 0x48]
jmp 0x474410
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov edi, dword [esi + edx*4 + 0x18]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x1c], eax
jg 0x474430
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x47445f
mov eax, dword [esp + 0x1c]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x40]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x4c]
mov byte [eax], 0x31
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0xa0]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x20]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x1c], eax
jg 0x47448a
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x4744b2
mov eax, dword [esp + 0x1c]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x6d
mov byte [eax + 3], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
test edi, edi
je 0x4744db
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x4744db
xor eax, eax
lea ecx, [esi + 0x74]
cmp dword [ecx + 0xc], edi
je 0x474534
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x4744c3
movzx edx, dl
mov dword [esi + edx*4 + 0x18], edi
inc byte [esi + 0x13]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x4c]
mov esi, dword [ebp + 8]
push eax
mov eax, edi
call fcn.004504c0
add esp, 4
cmp edi, dword [esi + 0x38]
jle 0x474500
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ecx
mov edx, dword [esp + 0x60]
push edx
call fcn.00482d60
mov edi, dword [esi + 0x44]
lea eax, [edi + 1]
mov dword [esi + 0x44], eax
mov al, byte [esi + 0x13]
add esp, 4
mov dword [esp + 0x40], edi
mov dword [esp + 0xa4], edi
test al, al
jne 0x47453a
inc dword [esi + 0x48]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x24], ecx
jmp 0x47454a
mov byte [ecx + 6], 1
jmp 0x4744db
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + edx*4 + 0x18]
mov dword [esp + 0x24], eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x474562
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474591
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x4c]
mov byte [eax], 0x3c
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
mov edi, dword [esp + 0xa0]
jg 0x4745b0
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x4745d8
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x6a
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [ebp + 8]
mov byte [esp + 0x9d], 1
call fcn.00450710
xor edi, edi
cmp dword [esp + 0x34], edi
je 0x474626
mov edx, dword [esp + 0x30]
test byte [edx + 0x3c], 4
jne 0x474626
cmp dword [esp + 0x48], edi
jne 0x47460a
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x25], 0
je 0x474626
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x6c], 0
call fcn.0043d090
mov ebx, edi
xor edi, edi
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebp + 8]
mov dword [esp + 0x4c], ecx
call fcn.00450710
cmp dword [esp + 0x48], edi
je 0x474654
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xa0]
push edx
push eax
push 0x64
mov esi, ebx
call fcn.0043c9d0
add esp, 0xc
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp dword [ecx], edi
jle 0x474705
cmp dword [esp + 0x48], edi
je 0x4746ce
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x34], eax
jg 0x474688
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x4746b6
mov eax, dword [esp + 0x34]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x40]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
lea ecx, [esi + edx]
mov byte [eax], 0x2f
mov byte [eax + 3], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
cmp esi, edi
jne 0x4746f8
mov ecx, dword [ebx + 4]
cmp ecx, edi
je 0x4746f8
mov eax, dword [ebx + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 0x20
jmp 0x4746f8
mov eax, dword [esp + 0x68]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x18]
push ecx
mov byte [esp + 0xa0], 1
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
lea edx, [esi + esi*2]
mov edx, dword [ecx + edx*8]
push edx
push eax
call fcn.00451860
add esp, 0xc
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, dword [ecx]
jl 0x474662
mov eax, dword [esp + 0x64]
cmp eax, edi
je 0x47470f
inc dword [eax]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x54], esi
mov ecx, dword [ecx]
mov dword [esp + 0x34], ecx
jg 0x474734
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
je 0x474734
mov esi, 1
jmp 0x474766
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x98]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov byte [eax], 0x2a
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, esi
cmp ecx, edi
je 0x4747ae
cmp byte [edx + 0x40], 0
jne 0x4747ae
cmp esi, edi
jge 0x47477f
mov eax, dword [ebx + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.0043cf00
mov eax, dword [esp + 0x64]
mov dword [esi + 0x10], edi
cmp eax, edi
jne 0x4747a5
mov dword [esi + 0x10], edi
mov byte [esi + 1], 0
jmp 0x4747bc
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x4747bc
mov ecx, dword [esp + 0x64]
mov eax, 0xfffffffa
call fcn.0043cf00
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
mov dword [esp + 0x34], esi
jg 0x4747d8
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474800
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x34]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
inc ecx
mov byte [eax], 0x2b
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + 8]
mov edx, dword [ecx]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x1c], eax
jg 0x474830
push esi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474862
mov eax, dword [esp + 0x1c]
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 edx, dword [esp + 0x98]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov byte [eax], 0x20
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov esi, dword [ebp + 8]
push edx
call fcn.004504c0
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add esp, 4
cmp dword [eax + 0x54], esi
jg 0x47488e
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x4748bc
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x94]
mov byte [eax], 0x11
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
jg 0x4748d4
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x4748ff
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov byte [eax], 0x89
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
jg 0x474917
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474942
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
mov byte [eax], 0x11
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jbe 0x474957
mov edx, dword [ebx + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
dec eax
lea edx, [esp + 0x9c]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.004733c0
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
add esp, 8
cmp dword [ecx + 0x54], esi
jg 0x47498d
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x4749b9
mov eax, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
cmp dword [esp + 0x48], edi
je 0x474a0f
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x58], edx
jg 0x4749e2
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474a5d
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
mov byte [eax], 5
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
jmp 0x474a5d
mov eax, dword [esp + 0x60]
push eax
call fcn.00482d60
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp ecx, dword [ebx + 0x20]
jge 0x474a5d
mov eax, ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx eax, byte [esi + 1]
mov edx, dword [ebx]
call fcn.0043cf00
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov byte [esi], 0x9a
mov eax, dword [ebx + 0x20]
dec eax
cmp dword [esp + 0x58], eax
jne 0x474a5d
mov dword [ebx + 0x20], eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x474a75
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474aa3
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x94]
mov byte [eax], 0x11
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
jg 0x474abb
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474ae2
mov edx, dword [ebx + 4]
inc dword [ebx + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x54], esi
mov dword [esp + 0x58], esi
jg 0x474afe
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474b2a
mov edx, dword [ebx + 4]
mov ecx, 1
add dword [ebx + 0x20], ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x54], esi
jg 0x474b42
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474b69
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x12
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ecx, dword [ebx + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x94]
js 0x474b85
mov edx, dword [ecx + 0x70]
cmp edx, edi
je 0x474b85
mov esi, dword [ebx + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [ebx + 0x20]
dec eax
mov dword [ecx + 0x58], eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], esi
jg 0x474ba4
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474bce
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x5c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
lea edx, [esi + 2]
mov byte [eax], 0x89
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x20], eax
jg 0x474bee
push ebx
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474c15
mov eax, dword [esp + 0x20]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x12
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x9c]
push edx
mov eax, ebx
call fcn.004732b0
mov eax, dword [esp + 0x30]
add esp, 4
push 0x10
inc esi
push esi
push eax
push ebx
call fcn.00451fd0
mov ecx, dword [esp + 0x68]
mov edx, dword [ebp + 0x10]
push ecx
push esi
push edx
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x8c]
push ecx
push 0xffffffffffffffff
push edx
push eax
call fcn.0046cf30
mov esi, dword [esp + 0x40]
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
add esp, 0x30
cmp dword [eax + 0x54], edi
jg 0x474c80
push esi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474ca9
mov edx, dword [esi + 4]
inc dword [esi + 0x20]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x474cab
xor ebx, ebx
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x54]
js 0x474cc4
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x474cc4
mov edi, dword [esi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esi + 0x20]
dec edx
lea eax, [esp + 0x9c]
mov dword [ecx + 0x58], edx
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.004731c0
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add esp, 8
cmp dword [edx + 0x54], edi
jg 0x474cf7
push esi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x474d1c
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x12
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x3c]
js 0x474d3c
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x474d3c
mov edi, dword [edi + 0x20]
mov dword [edx + eax*4], edi
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
dec eax
mov dword [ecx + 0x58], eax
cmp byte [esp + 0x89], 3
jne 0x4750ee
cmp byte [esi + 0x1c2], 2
jne 0x4750ee
mov edi, dword [esi + 8]
mov esi, dword [esi]
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
call fcn.00422430
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x20]
mov edx, dword [ecx + 0x1d0]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
add esp, 8
cmp dword [eax + 0x54], esi
mov dword [esp + 0x2c], edx
jg 0x475074
push edi
call fcn.0043c840
add esp, 4
test eax, eax
je 0x475074
mov esi, 1
jmp 0x475099
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x54], 0
call fcn.00471e80
mov edi, eax
test edi, edi
je 0x474f27
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 0x44]
mov ecx, dword [ebx]
call fcn.0046b9c0
mov esi, eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x5c], eax
inc eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
mov ecx, esi
mov edx, ebx
mov dword [esp + 0x20], eax
call fcn.0045b8c0
mov ecx, dword [edi]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
push ecx
push 0
push edx
mov ebx, esi
call fcn.00456360
add esp, 0xc
test byte [edi + 0x2c], 0x20
je 0x474e32
mov eax, edi
call fcn.004575b0
mov dword [esp + 0x14], eax
jmp 0x474e36
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x474e6d
lea ecx, [ecx]
test byte [ecx + 0x38], 4
jne 0x474e62
movzx edx, word [ecx + 0x30]
cmp dx, word [edi + 0x2a]
jge 0x474e62
cmp dword [ecx + 0x24], 0
jne 0x474e62
test eax, eax
je 0x474e60
cmp dx, word [eax + 0x30]
jge 0x474e62
mov eax, ecx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x474e40
mov dword [esp + 0x14], eax
test eax, eax
je 0x474e8a
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push edx
mov ebx, eax
mov dword [esp + 0x24], ecx
call fcn.0045c180
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
push 1
push esi
mov esi, dword [esp + 0x18]
push eax
push ebx
push 0x36
mov eax, esi
call fcn.0043cb70
mov eax, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
je 0x474ef1
mov ecx, dword [esi + 4]
mov edx, dword [esi]
test ecx, ecx
je 0x474ee5
cmp byte [edx + 0x40], 0
jne 0x474ee5
mov eax, dword [esi + 0x20]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.0043cf00
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], 0xfa
mov ebx, dword [esp + 0x5c]
jmp 0x474ef1
mov ecx, eax
mov eax, 0xfffffffa
call fcn.0043cf00
mov edx, dword [esp + 0xc4]
mov eax, dword [edx + 8]
push eax
push ebx
push 0x32
call fcn.0043c9d0
add esp, 0xc
push ebx
push 0x3d
call fcn.0043c980
mov eax, dword [esp + 0x1c]
mov edx, edi
mov edi, dword [ebp + 8]
add esp, 8
call fcn.004737e0
mov esi, edi
jmp 0x475024
mov ecx, dword [ebp + 0xc]
xor edi, edi
xor bl, bl
cmp dword [ecx + 0x2c], 0
mov dword [esp + 0x28], edi
jne 0x474f90
lea edi, [esp + 0x28]
lea eax, [esp + 0x9c]
call fcn.00471e00
mov bl, al
test bl, bl
je 0x474f8c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push 0
push edx
push eax
call fcn.0044e2d0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x54], edi
test edi, edi
je 0x474f90
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x40], 0
jne 0x474f90
mov eax, dword [edi + 4]
cmp bl, 1
setne dl
mov byte [eax + 0xc], dl
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov byte [edx], 0x9a
jmp 0x474f90
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x9c]
push eax
push esi
call fcn.004731c0
mov eax, dword [esp + 0x24]
movzx cx, bl
push 0
movzx edx, cx
mov ecx, dword [esp + 0x44]
push edx
push 0
push edi
push eax
push ecx
push esi
call fcn.00482450
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x474fdb
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.0044eb50
add esp, 8
jmp 0x475222
lea ecx, [esp + 0x9c]
push ecx
push esi
call fcn.004733c0
add esp, 8
cmp byte [edi + 0x24], 0
jle 0x475009
mov edx, dword [edi + 0x34]
mov esi, dword [esp + 0x10]
push edx
push 0
push 0x10
call fcn.0043c9d0
mov esi, dword [ebp + 8]
add esp, 0xc
push edi
call fcn.00482d60
lea eax, [esp + 0xa0]
add esp, 4
push eax
mov eax, esi
call fcn.004732b0
add esp, 4
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
push 0x10
push edi
push ecx
push esi
mov dword [esp + 0x7c], 0
call fcn.00451fd0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push edi
push edi
push edx
push 0
push 0
push 0xffffffffffffffff
push ecx
push eax
mov ebx, esi
call fcn.0046cf30
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x60]
push edx
push eax
call fcn.0044eb50
add esp, 0x38
xor ebx, ebx
jmp 0x474d1f
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x9b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, esi
cmp ecx, ebx
je 0x4750df
cmp byte [edx + 0x40], bl
jne 0x4750df
cmp esi, ebx
jge 0x4750b1
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.0043cf00
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x4750d6
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4750eb
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x4750eb
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
call fcn.0043cf00
mov esi, dword [ebp + 8]
cmp dword [esp + 0x6c], ebx
je 0x4751ef
cmp dword [esp + 0x70], ebx
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x475108
mov eax, str.ORDER_BY
cmp byte [esi + 0x1c2], 2
jne 0x4751d2
mov edi, dword [esi + 8]
mov esi, dword [esi]
push eax
push str.USE_TEMP_B_TREE_FOR__s
call fcn.00422430
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x20]
mov edx, dword [ecx + 0x1d0]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
add esp, 8
cmp dword [eax + 0x54], esi
mov dword [esp + 0x2c], edx
jg 0x475158
push edi
call fcn.0043c840
add esp, 4
test eax, eax
je 0x475158
mov esi, 1
jmp 0x47517d
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x9b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, esi
cmp ecx, ebx
je 0x4751c3
cmp byte [edx + 0x40], bl
jne 0x4751c3
cmp esi, ebx
jge 0x475195
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.0043cf00
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x4751ba
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4751cf
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x4751cf
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
call fcn.0043cf00
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x74]
push ecx
push edx
push esi
call fcn.0046dc50
add esp, 0x14
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x104]
js 0x47520f
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x47520f
mov edi, dword [edi + 0x20]
mov dword [edx + eax*4], edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x20]
dec edx
mov dword [ecx + 0x58], edx
mov dword [esp + 0x48], ebx
jmp 0x475222
mov esi, edi
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0xcc]
mov dword [esi + 0x1d0], eax
test edi, edi
jne 0x475252
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 9
jne 0x475252
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
push edx
push eax
push esi
call fcn.0046e5f0
add esp, 0xc
mov eax, dword [esp + 0xb8]
mov esi, dword [esp + 0x30]
test eax, eax
je 0x4752a2
cmp dword [esi + 0x208], 0
je 0x475273
mov ecx, esi
call fcn.00420ae0
jmp 0x4752a2
cmp eax, dword [esi + 0x114]
jb 0x475299
cmp eax, dword [esi + 0x118]
jae 0x475299
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
jmp 0x4752a2
push eax
call fcn.00420a40
add esp, 4
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x4752fc
cmp dword [esi + 0x208], 0
je 0x4752c6
mov ecx, esi
call fcn.00420ae0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esi + 0x114]
jb 0x4752f3
cmp eax, dword [esi + 0x118]
jae 0x4752f3
mov edx, dword [esi + 0x110]
mov dword [eax], edx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00420a40
add esp, 4
mov eax, edi
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