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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
pcmpeqd xmm0, xmm0
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0x9c], 0
mov esi, edx
mov dword [esp + 0x14], ecx
movdqa xmmword [esp + 0xe0], xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
mov edi, dword [ecx]
call fcn.00485cb0
mov ebx, 1
test esi, esi
mov dword [esp + 0x24], esi
je 0x475e14
cmp byte [edi + 0x51], 0
jne 0x475e14
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x24], 0
jne 0x475e14
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x24]
cmp byte [eax + 0xa5], 0
jne 0x475d13
cmp byte [esi + 0xc8], 0
je 0x475e1e
mov eax, dword [ebp + 8]
pxor xmm0, xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
cmp byte [eax], 8
ja 0x475d55
mov edx, dword [edi + 0x30]
test edx, edx
je 0x475d4a
mov ecx, dword [esp + 0x20]
call fcn.0046a010
mov dword [edi + 0x30], 0
and byte [edi + 4], 0xfe
mov ecx, esi
mov edx, edi
push 0
call fcn.00495e00
add esp, 4
cmp dword [esi + 0x24], 0
mov ebx, 1
je 0x475d74
mov ecx, dword [esp + 0x20]
jmp 0x475da6
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x51], 0
jne 0x475da6
mov eax, dword [ebp + 8]
cmp byte [eax], 9
jne 0x475d8f
mov ecx, esi
mov edx, edi
call fcn.0049bec0
mov ecx, esi
mov edx, edi
call fcn.0049c160
mov ecx, dword [esp + 0x20]
mov ebx, eax
test eax, eax
je 0x475e65
mov edx, dword [esp + 0x9c]
test edx, edx
je 0x475dba
call fcn.0046a010
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x475dce
call fcn.004352c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x475dde
call fcn.004352c0
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x475e0c
mov eax, dword [esi + 8]
jns 0x475df1
mov ecx, dword [eax + 0x6c]
dec ecx
mov edi, dword [eax]
mov edx, 0x51ea94
cmp byte [edi + 0x51], 0
jne 0x475e07
lea edx, [ecx + ecx*4]
shl edx, 2
add edx, dword [eax + 0x68]
mov eax, dword [edx + 8]
jmp 0x475e0e
xor eax, eax
mov dword [esi + 0xd4], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x150]
test ecx, ecx
je 0x475d13
push dword [esi + 0xf0]
push 0
push 0
push 0
push 0x15
push dword [eax + 0x154]
call ecx
add esp, 0x18
cmp eax, 1
jne 0x475f05
push str.not_authorized
push esi
call fcn.0042af90
add esp, 8
mov dword [esi + 0xc], 0x17
jmp 0x475e14
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x20]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf4], 0
mov eax, dword [edi + 0x30]
mov dword [esp + 0xd0], eax
cmp dword [edi + 0x34], 0
je 0x475f2a
mov ecx, esi
mov edx, edi
push dword [ebp + 8]
call fcn.0049d4d0
add esp, 4
cmp dword [edi + 0x38], 0
mov ebx, eax
jne 0x475e14
mov ecx, esi
call fcn.0049f250
jmp 0x475e14
test eax, 0xfffffffd
je 0x476074
push str.authorizer_malfunction
push esi
call fcn.0042af90
add esp, 8
mov dword [esi + 0xc], 1
jmp 0x475e14
shr ecx, 3
and ecx, 1
mov dword [esp + 0x3c], ecx
xor ecx, ecx
jmp 0x475f4d
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
inc eax
mov ecx, eax
cmp dword [edi + 0x34], 0
jne 0x475ede
mov eax, dword [edx]
cmp ecx, eax
jge 0x476081
lea ebx, [ecx + ecx*8]
mov dword [esp + 0xc], ecx
mov eax, dword [edx + ebx*8 + 0x18]
mov ecx, dword [edx + ebx*8 + 0x1c]
test byte [edx + ebx*8 + 0x2c], 8
je 0x475fc3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov edi, edx
mov edx, dword [edx + ebx*8 + 0x30]
mov ecx, dword [eax + 0x24]
call fcn.0048dc80
test eax, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, edi
je 0x475fc3
mov eax, dword [esp + 0x20]
test byte [eax + 0x4d], 0x20
mov eax, dword [esp + 0x10]
jne 0x475fc3
lea eax, [edx + ebx*8 + 0x2c]
and byte [eax], 0xd7
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 0x24]
call fcn.0049cdd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, edi
test ecx, ecx
je 0x475f38
mov edi, ecx
mov ecx, dword [ecx + 0x1c]
movsx esi, word [eax + 0x2a]
mov ebx, dword [esp + 0xc]
mov ecx, dword [ecx]
cmp ecx, esi
jne 0x4764d1
test byte [edi + 4], 8
jne 0x476052
mov esi, dword [esp + 0x14]
test ebx, ebx
jne 0x476000
cmp dword [edi + 0x30], 0
je 0x476000
mov eax, dword [esp + 0x24]
test byte [eax + 6], 4
jne 0x47605d
mov edi, dword [esp + 0x24]
mov ecx, esi
mov edx, edi
push dword [esp + 0x3c]
push ebx
call fcn.0049ce50
add esp, 8
test eax, eax
je 0x476028
cmp dword [esi + 0x24], 0
mov ebx, 0xffffffff
jne 0x47681f
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x51], 0
jne 0x476c22
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x20]
cmp byte [eax], 9
jb 0x47604b
mov eax, dword [edi + 0x30]
mov dword [esp + 0xd0], eax
mov eax, ebx
jmp 0x475f40
mov esi, dword [esp + 0x14]
mov eax, ebx
jmp 0x475f40
xor eax, eax
cmp dword [edx], 1
je 0x475f40
test byte [edx + 0x74], 0xa
jne 0x475f40
jmp 0x476000
test eax, eax
jne 0x475e14
jmp 0x475d13
cmp eax, 2
mov dword [esp + 0x1c], edx
jl 0x4760aa
mov eax, dword [esp + 0x20]
cmp word [eax + 0x4c], 0
js 0x4760b2
mov edi, edx
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.0049f290
mov edx, edi
mov edi, dword [esp + 0x24]
mov eax, dword [edx]
test eax, eax
jle 0x476484
lea ebx, [edx + 0x40]
mov dword [esp + 0xc], 0
jmp 0x47611e
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x20]
mov byte [esi + 0x13], 0
mov dword [esi + 0x1c], 0
mov ebx, dword [esp + 0x18]
cmp byte [ecx + 0x51], 0
jne 0x476c22
mov ecx, edi
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0
call fcn.004a8990
mov eax, dword [esp + 0x54]
sub dword [esi + 0xd0], eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xf0], eax
mov eax, dword [esp + 0xc]
add ebx, 0x48
inc eax
cmp eax, dword [edx]
mov dword [esp + 0xc], eax
jge 0x476484
pcmpeqd xmm0, xmm0
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x80], 0xffffffff
movdqa xmmword [esp + 0x70], xmm0
mov eax, dword [ebx]
or eax, dword [ebx + 4]
jne 0x47616c
mov eax, dword [ebx - 0x30]
test eax, eax
je 0x47616c
mov edi, edx
mov edx, 0x14
mov ecx, esi
push dword [ebx - 0x34]
push 0x50ce6c
push eax
call fcn.004910a0
mov edx, edi
mov edi, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [ebx - 0x24]
test eax, eax
je 0x47610a
mov ecx, edi
lea edx, [esp + 0x54]
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], 0
call fcn.004a8990
mov eax, dword [esp + 0x54]
add dword [esi + 0xd0], eax
mov eax, dword [esp + 0x20]
test byte [eax + 0x4d], 0x10
jne 0x4761bc
mov eax, dword [ebx - 0x14]
mov edx, dword [esp + 0x10]
mov ecx, esi
shr eax, 5
and eax, 1
push eax
push dword [ebx - 0x10]
push dword [edi + 0x24]
call fcn.0049f390
add esp, 0xc
mov eax, dword [esi + 0xf0]
mov ecx, dword [ebx - 0x30]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0xc], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esi + 0xf0], ecx
je 0x476292
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, 0x45
lea eax, [ebx - 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
mov dword [ebx - 0x1c], eax
push 0
push eax
push 0
call fcn.0046c5a0
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x30], eax
inc eax
mov dword [esp + 0x28], 0
mov dword [ebx - 0x20], eax
test byte [ebx - 0x13], 8
jne 0x476240
mov ecx, dword [esp + 8]
mov edx, 0x11
push 0
push 0
push 0
call fcn.0046c5a0
add esp, 0xc
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
call fcn.0049f500
mov ecx, dword [ebx - 0x10]
test eax, eax
je 0x47639f
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], eax
mov edx, 0x62
push 0
push dword [eax + 0x28]
push dword [esp + 0x48]
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
movzx eax, word [eax + 2]
mov word [ecx + 2], ax
jmp 0x4763f5
cmp dword [ebx], 1
je 0x4762a1
test byte [ebx + 0x74], 0xa
je 0x4761e2
mov ecx, dword [esp + 8]
mov edx, 0xd
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
mov dword [ebx + 0x24], eax
push dword [esp + 0x30]
push 0
push eax
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x24]
mov byte [esp + 0x70], 0xd
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push dword [ecx + 0x10]
push str.CO_ROUTINE__u
push 1
push esi
call fcn.0048df30
add esp, 0x10
mov edx, dword [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x70]
push eax
call fcn.00475c40
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x18]
mov edx, 0x42
movzx eax, word [eax + 2]
mov word [ecx + 0x2e], ax
or byte [ebx + 0x2d], 0x10
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 8]
mov dword [ebx + 0x28], eax
push 0
push 0
push dword [ebx + 0x24]
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [ecx + 0xc]
mov dword [eax + 0x1c], 0
mov edx, dword [ecx]
mov eax, dword [ecx + 0x6c]
mov ecx, 0x51ea94
cmp byte [edx + 0x51], 0
jne 0x476397
mov edx, dword [esp + 0x28]
lea ecx, [eax - 1]
mov ebx, dword [esp + 8]
test edx, edx
cmovns ecx, edx
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [ebx + 0x68]
mov dword [ecx + 8], eax
jmp 0x4760c2
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], 0xc
mov dword [esp + 0x74], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push dword [eax + 0x10]
push str.MATERIALIZE__u
push 1
push esi
call fcn.0048df30
add esp, 0x10
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x70]
mov ecx, esi
push eax
call fcn.00475c40
add esp, 4
mov eax, dword [esp + 0x10]
movzx eax, word [eax + 2]
mov ecx, dword [ebx - 0x28]
mov ebx, dword [esp + 0x28]
test ebx, ebx
mov word [ecx + 0x2e], ax
je 0x476430
mov eax, dword [esp + 8]
mov ecx, 0x51ea94
mov edx, dword [eax]
mov eax, dword [eax + 0x6c]
cmp byte [edx + 0x51], 0
jne 0x47642d
lea ecx, [eax - 1]
test ebx, ebx
mov edx, dword [esp + 8]
cmovns ecx, ebx
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
mov ebx, dword [esp + 8]
mov edx, 0x41
mov ecx, ebx
push 0
push 0
mov eax, dword [esp + 0x20]
push dword [eax - 0x1c]
call fcn.0046c5a0
add esp, 0xc
cmp dword [esp + 0x30], 0
jns 0x47645d
mov ecx, dword [ebx + 0x6c]
dec ecx
mov dword [esp + 0x30], ecx
mov edx, dword [ebx]
mov ecx, 0x51ea94
cmp byte [edx + 0x51], 0
jne 0x4760bf
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 8]
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [edx + 0x68]
jmp 0x4760bf
mov ecx, dword [edi + 0x24]
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ecx
mov ch, al
and eax, 9
and ch, 1
cmp eax, 1
mov byte [esp + 0x48], ch
jne 0x47651d
mov ecx, ebx
push 0xffffffffffffffff
call fcn.0048da80
add esp, 4
test eax, eax
je 0x4764ee
mov edx, dword [esp + 0x34]
jmp 0x47651d
push ecx
push dword [eax]
push esi
push str.expected__d_columns_for__s_but_got__d
mov esi, dword [esp + 0x24]
push esi
call fcn.0042af90
add esp, 0x14
xor ebx, ebx
jmp 0x475d6e
cmp dword [edi + 0x44], 0
mov edx, dword [esp + 0x34]
jne 0x47651d
and byte [edi + 4], 0xfe
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push 0
call fcn.00490140
mov edx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [edi + 0x28], eax
or byte [edi + 4], 8
test ebx, ebx
je 0x476582
mov eax, edx
mov ecx, esi
mov edx, ebx
push dword [eax]
push 0
call fcn.0049f5f0
add esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x28]
mov edx, dword [esp + 0x34]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov dword [esp + 0xd8], eax
mov ecx, dword [ebx]
mov edx, dword [edx]
lea ebx, [ecx + edx + 1]
mov ecx, dword [esp + 8]
mov edx, 0x64
push 0
push ebx
push eax
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esp + 8]
mov ebx, eax
mov edx, eax
push 0xfffffffffffffff7
push dword [esp + 0x10]
call fcn.0042b420
mov eax, ebx
add esp, 8
jmp 0x476587
mov eax, 0xffffffff
mov ecx, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0xe4], eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
cmp byte [ecx], 0xc
jne 0x4765bf
mov ecx, dword [esp + 8]
mov edx, 0x64
push 0
mov eax, dword [esp + 0x38]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
test byte [edi + 5], 0x40
jne 0x4765d2
mov word [edi + 2], 0x140
mov ecx, esi
mov edx, edi
mov dword [esp + 0x40], eax
push eax
call fcn.0049f720
add esp, 4
cmp dword [edi + 8], 0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x1c]
jne 0x476625
cmp dword [esp + 0xc], 0
js 0x476625
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, 0x51ea94
cmp byte [ecx + 0x51], 0
mov ecx, dword [esp + 8]
jne 0x47661a
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
shl eax, 2
add eax, dword [ecx + 0x68]
mov byte [eax], 0x6f
or byte [esp + 0xf0], 1
test byte [edi + 4], 1
jne 0x47662f
xor eax, eax
jmp 0x4766aa
mov edx, dword [esi + 0x28]
mov ebx, ecx
mov ecx, esi
lea eax, [edx + 1]
mov dword [esp + 0xc], edx
mov dword [esi + 0x28], eax
mov dword [esp + 0x4c], edx
mov edx, dword [edi + 0x1c]
push 0
push 0
call fcn.0049f5f0
add esp, 8
mov ecx, ebx
mov dword [esp + 0x10], eax
mov edx, 0x64
push 0
push 0
push dword [esp + 0x14]
call fcn.0046c5a0
add esp, 0xc
mov ecx, ebx
mov dword [esp + 0xc], eax
mov edx, eax
push 0xfffffffffffffff7
push dword [esp + 0x14]
call fcn.0042b420
add esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov al, 3
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
jle 0x4766a2
mov edx, dword [ebx + 0x68]
lea ecx, [ecx + ecx*4]
mov word [edx + ecx*4 - 0x12], 8
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x3c], 0
mov byte [esp + 0x49], al
jne 0x476776
test ebx, ebx
jne 0x476776
mov cl, byte [esp + 0x48]
xor eax, eax
mov ebx, 0x4000
test cl, cl
mov byte [esp + 0x18], cl
mov ecx, dword [edi + 0x44]
setne al
and ebx, dword [edi + 4]
shl eax, 8
mov dword [esp + 0x10], ecx
or ebx, eax
test ecx, ecx
je 0x4766f5
mov ecx, esi
mov edx, edi
call fcn.0049fcb0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xd0]
movsx ecx, word [edi + 2]
movzx ebx, bx
mov dword [esp + 0xc], ecx
mov ecx, esi
push dword [esp + 0xc]
push ebx
push dword [edi + 0x1c]
mov dword [esp + 0x18], eax
push eax
push dword [esp + 0x38]
call fcn.004a01c0
add esp, 0x14
test eax, eax
je 0x47681f
mov ebx, eax
movzx eax, word [eax + 0x32]
cmp ax, word [edi + 2]
jge 0x47673a
mov word [edi + 2], ax
cmp byte [esp + 0x18], 0
je 0x47674c
mov al, byte [ebx + 0x2f]
test al, al
je 0x47674c
mov byte [esp + 0x49], al
cmp dword [esp + 0xc], 0
je 0x47686b
movsx eax, byte [ebx + 0x2d]
mov dword [esp + 0xd4], eax
test byte [ebx + 0x30], 4
jne 0x476839
mov ecx, ebx
add ecx, 0x1c
jmp 0x476847
pcmpeqd xmm0, xmm0
test ebx, ebx
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
je 0x476826
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
jle 0x4767ac
add eax, 0x12
inc ecx
dec ecx
mov word [eax], 0
add eax, 0x10
cmp ecx, 1
jg 0x47679e
mov eax, dword [ebx]
test eax, eax
jle 0x4767c4
lea ecx, [ebx + 0x12]
inc eax
dec eax
mov word [ecx], 0
add ecx, 0x10
cmp eax, 1
jg 0x4767b6
cmp word [edi + 2], 0x43
jl 0x4767d1
mov word [edi + 2], 0x42
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x38], 0
test edx, edx
je 0x4769a2
mov eax, dword [ebx]
cmp eax, dword [edx]
jne 0x4769a2
test eax, eax
jle 0x47697f
mov ebx, dword [esp + 0x18]
mov ecx, 0xc
movzx edx, byte [edx + ecx]
and dl, 1
mov byte [ebx + ecx], dl
add ecx, 0x10
dec eax
mov edx, dword [esp + 0xd0]
jne 0x476803
jmp 0x476983
xor ebx, ebx
jmp 0x475d6e
mov word [edi + 2], 0
mov dword [esp + 0x38], 0
jmp 0x4769a2
movzx ecx, byte [ebx + 0x2c]
imul ecx, ecx, 0x58
lea ecx, [ecx + ebx + 0x2a0]
mov ecx, dword [ecx]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov dword [esp + 0xec], ecx
cmp dword [edx], eax
jne 0x47687f
mov dword [esp + 0xd0], 0
mov edx, dword [esp + 0xe4]
test edx, edx
js 0x47687f
mov ecx, dword [esp + 8]
call fcn.0048f930
cmp dword [esp + 0x10], 0
je 0x47694f
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x2c]
lea edx, [eax - 1]
mov dword [esp + 0x10], edx
lea edx, [eax - 2]
lea eax, [eax - 3]
mov dword [esp + 0x18], eax
mov dword [esi + 0x38], eax
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, esi
mov edx, edi
inc eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x2c], eax
push dword [esp + 0x10]
push eax
push ebx
call fcn.004a1c80
add esp, 0xc
mov ecx, dword [esp + 8]
mov edx, 0xb
push 0
mov ebx, dword [esp + 0x1c]
push ebx
push 0
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
call fcn.0048b2b0
mov dword [esp + 0xec], 0
lea eax, [esp + 0x48]
mov ecx, esi
mov edx, edi
push ebx
push dword [esp + 0x10]
push dword [ebp + 8]
push eax
lea eax, [esp + 0xe0]
push eax
push 0xffffffffffffffff
call fcn.004a36f0
add esp, 0x18
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, ebx
call fcn.0048b2b0
mov ecx, ebx
mov edx, 0x41
push 0
push 0
push dword [esp + 0x24]
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0048b2b0
jmp 0x4776f6
lea eax, [esp + 0x48]
mov ecx, esi
mov edx, edi
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebp + 8]
push eax
lea eax, [esp + 0xe0]
push eax
push 0xffffffffffffffff
call fcn.004a36f0
add esp, 0x18
mov ecx, ebx
call fcn.004a49a0
jmp 0x4776f6
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push 0xffffffffffffffff
call fcn.0048da80
add esp, 4
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x38], ecx
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x2c]
inc eax
test ebx, ebx
mov dword [esp + 0xb0], eax
je 0x476a0b
mov eax, dword [ebx]
jmp 0x476a0d
xor eax, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x18], ebx
lea ebx, [esp + 0x70]
mov ecx, ebx
call fcn.004a57f0
mov edx, dword [esp + 0xd0]
mov ecx, ebx
call fcn.004a57f0
cmp dword [esp + 0x30], 0
je 0x476ada
cmp dword [esp + 0x18], 0
je 0x476a95
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0x4ba740
mov dword [esp + 0x6c], edi
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x476a8e
lea ecx, [esp + 0x54]
call fcn.0048d1b0
mov eax, dword [edi + 0x24]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x54]
lea eax, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x58], 0x4baa40
mov dword [esp + 0x5c], 0x4a70c0
mov dword [esp + 0x60], 0x4a70d0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], 0
call fcn.0048d1b0
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc4], eax
cmp dword [edi + 0x28], 0
je 0x476af8
mov dword [esp + 0x2c], 0
jmp 0x476b3e
cmp dword [edi + 0x2c], 0
jne 0x476b2e
cmp dword [esp + 0xcc], 1
jne 0x476b2e
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
lea eax, [esp + 0x9c]
push eax
call fcn.004a5880
add esp, 4
movzx eax, al
mov dword [esp + 0x2c], eax
jmp 0x476b36
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0xcc]
test edx, edx
jle 0x476c0e
mov eax, dword [esp + 0x88]
xor ebx, ebx
xor ecx, ecx
jmp 0x476b8a
mov eax, dword [esp + 0x88]
mov ecx, 0xfffdffff
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xcc]
and eax, ecx
mov ecx, dword [esp + 0x10]
add ebx, 0x10
mov dword [esp + 0x88], eax
inc ecx
cmp ecx, edx
jge 0x476c0e
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0xc], ebx
or eax, 0x20000
mov ebx, dword [ecx + ebx]
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x70]
mov edx, dword [ebx + 0x14]
call fcn.004a57f0
test byte [ebx + 7], 1
je 0x476b5a
mov eax, dword [ebx + 0x2c]
mov edx, dword [eax + 0x28]
lea eax, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x58], 0x4baa40
mov dword [esp + 0x5c], 0x4a70c0
mov dword [esp + 0x60], 0x4a70d0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], 0
test edx, edx
je 0x476b5a
lea ecx, [esp + 0x54]
call fcn.0048d1b0
jmp 0x476b5a
mov ebx, dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb4], ebx
cmp byte [ecx + 0x51], 0
je 0x476c29
xor ebx, ebx
jmp 0x475da6
cmp dword [esp + 0x18], 0
je 0x476da0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov ecx, esi
mov dword [esp + 0xa4], eax
push dword [esp + 0xc0]
push 0
call fcn.0049f5f0
add esp, 8
mov edi, dword [esp + 8]
mov ebx, eax
mov edx, 0x6f
mov ecx, edi
push 0
push dword [esp + 0xb0]
push dword [esp + 0xac]
call fcn.0046c5a0
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x104], eax
mov edx, eax
push 0xfffffffffffffff7
mov dword [esp + 0x98], ebx
push ebx
call fcn.0042b420
add esp, 8
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x38]
mov edi, dword [esp + 0x18]
mov edx, 0x45
lea ebx, [ecx + 4]
mov dword [esp + 0x44], eax
lea eax, [eax - 2]
mov dword [esp + 0x2c], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], eax
mov dword [esp + 0x98], eax
mov eax, dword [edi]
mov dword [esp + 0x108], eax
lea eax, [eax + ecx + 4]
mov dword [esi + 0x2c], eax
add eax, dword [edi]
mov dword [esi + 0x2c], eax
lea eax, [ecx + 2]
add ecx, 5
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 8]
push 0
mov dword [esp + 0xfc], eax
push eax
push 0
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [edi]
mov edi, dword [esp + 8]
mov edx, 0x48
add eax, ebx
mov ecx, edi
push eax
push dword [esp + 0x104]
push 0
call fcn.0046c5a0
add esp, 0xc
mov ecx, edi
mov edx, 0xc
push 0
push dword [esp + 0x9c]
mov dword [esp + 0x104], ebx
push ebx
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ecx, esi
shl eax, 9
or eax, 0x40
push 0
push eax
push 0
push dword [esp + 0x24]
push dword [esp + 0x38]
call fcn.004a01c0
add esp, 0x14
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x476c22
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsx eax, byte [eax + 0x2d]
cmp dword [ecx], eax
jne 0x476ddf
mov al, 1
mov dword [esp + 0x10], 0
xor ebx, ebx
mov dword [esp + 0xc], eax
jmp 0x47711e
mov esi, edx
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.004a6240
test eax, eax
je 0x476e04
mov edi, eax
mov eax, dword [eax + 0x48]
test eax, eax
je 0x476e71
mov ecx, dword [esp + 0x14]
mov ebx, 0xffffffff
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x10]
add ecx, 0xc
inc ebx
cmp dword [ecx], eax
lea ecx, [ecx + 0x10]
jne 0x476dd2
jmp 0x476e76
cmp byte [esp + 0x48], 0
je 0x476ee4
mov eax, dword [esp + 0x24]
mov ecx, str.DISTINCT
test byte [eax + 4], 1
mov eax, str.GROUP_BY
cmove eax, ecx
jmp 0x476ee9
cmp dword [esp + 0xc4], 0
je 0x4774e2
xor edi, edi
test esi, esi
mov eax, 0
jle 0x476e44
mov ecx, dword [esp + 0xc8]
xor eax, eax
add ecx, 4
jmp 0x476e33
inc eax
add ecx, 0x10
cmp esi, eax
je 0x476e4c
mov edx, dword [ecx - 4]
test byte [edx + 7], 1
jne 0x476e2b
mov edx, dword [ecx]
test byte [edx + 4], 0x20
je 0x476e2b
cmp eax, esi
jne 0x4774e4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
inc ebx
mov edx, 0x45
mov dword [eax + 0x2c], ebx
push 0
push ebx
push 0
call fcn.0046c5a0
add esp, 0xc
mov edi, ebx
jmp 0x4774e4
mov ebx, 0xfff0bdc0
mov esi, dword [esp + 0x14]
mov edx, ebx
mov eax, dword [esi + 0x28]
mov ecx, esi
mov dword [esp + 0x10], eax
lea eax, [eax + 1]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0048f7c0
mov ecx, esi
mov edx, ebx
push dword [edi]
push 0
push dword [edi + 0x1c]
call fcn.004863b0
add esp, 0xc
cmp byte [edi + 0x24], 0
mov dword [esp + 0xc], 0
jns 0x477593
mov eax, dword [edi + 8]
test eax, eax
je 0x477593
movzx ecx, word [eax + 0x37]
and ecx, 3
cmp cx, 2
je 0x47758f
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x476ec7
jmp 0x477593
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push dword [esp + 0x20]
call fcn.0048df30
add esp, 0x10
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov eax, dword [esp + 0xc0]
test eax, eax
mov dword [esp + 0xc], esi
jle 0x476f33
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc]
add ecx, 0xc
mov esi, edx
xor ebx, ebx
cmp dword [ecx], edx
setge bl
add ecx, 0x18
add edx, ebx
add esi, ebx
dec eax
jne 0x476f22
mov edx, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov ecx, esi
call fcn.00489600
mov edx, dword [esp + 0x18]
mov ecx, esi
push 0
push 0
mov esi, eax
mov dword [esp + 0x18], eax
push eax
call fcn.00489650
add esp, 0xc
mov ecx, dword [esp + 0xc0]
mov esi, dword [esp + 0xc]
test ecx, ecx
jle 0x476fb9
xor edi, edi
mov ebx, 0xc
jmp 0x476f7d
inc edi
add ebx, 0x18
cmp edi, ecx
jge 0x476fb9
mov eax, dword [esp + 0xbc]
cmp dword [eax + ebx], esi
jl 0x476f75
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ebx - 0xc]
add ecx, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 8]
push dword [esp + 0xc]
push dword [eax + ebx - 4]
push dword [eax + ebx - 8]
call fcn.0048be20
add esp, 0xc
mov ecx, dword [esp + 0xc0]
inc esi
jmp 0x476f75
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0x13]
test al, al
je 0x476fd9
mov ecx, dword [esp + 0x14]
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov ebx, dword [ecx + eax*4 + 0x94]
jmp 0x476fe4
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x2c]
inc ebx
mov dword [eax + 0x2c], ebx
mov esi, dword [esp + 8]
mov edx, 0x5b
mov ecx, esi
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x18]
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, 0x83
push 0
push ebx
push dword [esp + 0xac]
call fcn.0046c5a0
add esp, 0xc
test ebx, ebx
je 0x47703c
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x13]
cmp eax, 7
ja 0x47703c
mov edx, dword [esp + 0x14]
mov ecx, eax
inc cl
mov byte [edx + 0x13], cl
mov dword [edx + eax*4 + 0x94], ebx
cmp dword [esp + 0x28], 1
jne 0x47706f
cmp dword [esp + 0x10], 0
je 0x47708e
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x13]
cmp eax, 7
ja 0x47708e
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, eax
inc cl
mov byte [edx + 0x13], cl
mov dword [edx + eax*4 + 0x94], esi
jmp 0x47708e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp dword [eax + 0x1c], ecx
jge 0x47708e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
mov ecx, dword [esp + 0x1c]
call fcn.004a49a0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x28]
lea eax, [edx + 1]
mov dword [esp + 0x10], edx
mov dword [ecx + 0x28], eax
mov dword [esp + 0xa8], edx
mov al, byte [ecx + 0x13]
test al, al
je 0x4770cb
mov ecx, dword [esp + 0x14]
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov ebx, dword [ecx + eax*4 + 0x94]
jmp 0x4770d6
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x2c]
inc ebx
mov dword [eax + 0x2c], ebx
mov esi, dword [esp + 8]
mov edx, 0x72
mov ecx, esi
push dword [esp + 0x28]
push ebx
push dword [esp + 0x18]
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, 0x23
push 0
push dword [esp + 0x40]
push dword [esp + 0xac]
call fcn.0046c5a0
add esp, 0xc
mov byte [esp + 0xa1], 1
mov dword [esp + 0xc], 0
cmp dword [esp + 0x38], 0
je 0x477168
mov eax, dword [esp + 0x20]
test byte [eax + 0x4c], 4
jne 0x477168
cmp byte [esp + 0xc], 0
je 0x47714d
mov eax, dword [esp + 0x1c]
test byte [eax + 0x30], 8
jne 0x47714d
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x28], eax
jmp 0x477197
mov dword [esp + 0xd0], 0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xe4]
call fcn.0048f930
mov eax, dword [esp + 8]
cmp byte [esp + 0xc], 0
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x28], eax
jne 0x477197
mov ecx, dword [esp + 8]
mov edx, 0x7d
push dword [esp + 0x10]
push ebx
push dword [esp + 0xac]
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x108]
lea edi, [ecx + eax + 5]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x47720a
mov eax, dword [esp + 0x18]
xor ebx, ebx
lea esi, [eax + 4]
jmp 0x4771eb
mov byte [esp + 0xa0], 1
mov ecx, dword [esp + 0x14]
lea eax, [edi + ebx]
mov edx, dword [esi]
push eax
call fcn.00486180
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
inc ebx
add esi, 0x10
mov eax, dword [eax]
cmp ebx, eax
jge 0x47720a
cmp byte [esp + 0xc], 0
jne 0x4771bf
lea eax, [edi + ebx]
mov edx, 0x59
push eax
push ebx
push dword [esp + 0x18]
call fcn.0046c5a0
add esp, 0xc
jmp 0x4771d9
mov ecx, dword [esp + 0x2c]
dec dword [esp + 0x44]
cmp dword [esp + 0x94], 0
lea ecx, [ecx + 3]
mov dword [esp + 0x10], ecx
je 0x47722c
mov ecx, dword [esp + 0x94]
inc dword [ecx]
mov esi, dword [esp + 8]
inc dword [esp + 0x2c]
mov edx, 0x56
mov ecx, esi
push eax
push edi
mov ebx, dword [esp + 0x108]
push ebx
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, eax
push 0xfffffffffffffff7
push dword [esp + 0x98]
call fcn.0042b420
add esp, 8
mov eax, dword [esi + 0x6c]
mov ecx, esi
mov edx, 0x10
mov dword [esp + 0x38], eax
lea eax, [eax + 1]
push eax
push 0
push eax
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, 0x4c
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x18]
push dword [eax]
push ebx
push edi
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, 0xc
push 0
push dword [esp + 0x48]
push dword [esp + 0x18]
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, 0x30
push 0
push dword [esp + 0x40]
push dword [esp + 0x100]
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, 0xc
push 0
push dword [esp + 0x9c]
push dword [esp + 0x104]
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [esi + 0x6c]
mov ecx, 0x51ea94
cmp byte [edx + 0x51], 0
jne 0x477318
mov edx, dword [esp + 0x38]
lea ecx, [eax - 1]
mov esi, dword [esp + 8]
test edx, edx
cmovns ecx, edx
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [esi + 0x68]
mov esi, dword [esp + 0x2c]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xa0]
mov edx, esi
push eax
call fcn.004a59b0
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 0x45
push 0
push esi
push 1
call fcn.0046c5a0
add esp, 0xc
cmp byte [esp + 0xc], 0
je 0x47736d
mov ecx, dword [esp + 0x1c]
call fcn.004a49a0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x104]
call fcn.0048f930
jmp 0x47738b
mov ecx, dword [esp + 8]
mov edx, 3
push 0
push dword [esp + 0x2c]
push dword [esp + 0xac]
call fcn.0046c5a0
add esp, 0xc
mov edi, dword [esp + 8]
mov edx, 0xc
mov ecx, edi
push 0
push dword [esp + 0x48]
mov esi, dword [esp + 0x18]
push esi
call fcn.0046c5a0
add esp, 0xc
mov ecx, edi
mov edx, 0xb
push 0
push dword [esp + 0x40]
push 0
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [edi + 0x6c]
mov ecx, edi
mov edx, 0x45
mov dword [esp + 0xc], eax
push 0
push dword [esp + 0xfc]
push 1
call fcn.0046c5a0
add esp, 0xc
mov ecx, edi
mov edx, 0x41
push 0
push 0
push esi
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [esp + 0x44]
mov ecx, edi
call fcn.0048b2b0
mov ebx, dword [edi + 0x6c]
mov ecx, edi
mov edx, 0x30
lea eax, [ebx + 2]
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.0046c5a0
add esp, 0xc
mov ecx, edi
mov edx, 0x41
push 0
push 0
push esi
call fcn.0046c5a0
add esp, 0xc
mov esi, dword [esp + 0x14]
lea edx, [esp + 0xa0]
mov ecx, esi
call fcn.004a5f90
inc ebx
push 0x10
push ebx
push dword [esp + 0x38]
push esi
call fcn.0048b810
add esp, 0x10
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x48]
mov ecx, esi
push dword [esp + 0xc]
push ebx
push dword [ebp + 8]
push eax
lea eax, [esp + 0xe0]
push eax
push 0xffffffffffffffff
call fcn.004a36f0
add esp, 0x18
mov ecx, edi
mov edx, 0x41
push 0
push 0
push dword [esp + 0x18]
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [esp + 0x98]
mov ecx, edi
call fcn.0048b2b0
mov ecx, esi
lea edx, [esp + 0xa0]
call fcn.004a6060
mov ecx, edi
mov edx, 0x45
push 0
push dword [esp + 0x30]
push 0
call fcn.0046c5a0
add esp, 0xc
mov ecx, edi
mov edx, 0x41
push 0
push 0
push dword [esp + 0x104]
call fcn.0046c5a0
add esp, 0xc
jmp 0x4776e1
xor edi, edi
mov esi, dword [esp + 0x14]
lea edx, [esp + 0xa0]
mov ecx, esi
call fcn.004a6060
movzx eax, word [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push 0
push eax
push 0
push dword [esp + 0xa8]
push dword [esp + 0x38]
call fcn.004a01c0
add esp, 0x14
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x476c22
mov ebx, eax
lea eax, [esp + 0xa0]
mov ecx, esi
mov edx, edi
push eax
call fcn.004a59b0
add esp, 4
test edi, edi
je 0x477555
mov ecx, dword [esp + 8]
mov edx, 0x45
push 0
push edi
push 1
call fcn.0046c5a0
add esp, 0xc
cmp byte [ebx + 0x2d], 0
jle 0x477573
mov ecx, dword [esp + 8]
mov edx, 0xb
push 0
push dword [ebx + 0x20]
push 0
call fcn.0046c5a0
add esp, 0xc
mov ecx, ebx
call fcn.004a49a0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xa0]
call fcn.004a5f90
jmp 0x4776a5
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
test byte [eax + 0x2d], 1
jne 0x4775d9
mov eax, dword [edi + 8]
jmp 0x4775ac
mov dword [esp + 0xc], eax
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4775d9
test byte [eax + 0x37], 4
jne 0x4775a9
movzx ecx, word [eax + 0x30]
cmp cx, word [edi + 0x30]
jge 0x4775a9
cmp dword [eax + 0x24], 0
jne 0x4775a9
cmp dword [esp + 0xc], 0
je 0x4775a5
mov edx, dword [esp + 0xc]
cmp cx, word [edx + 0x30]
jl 0x4775a5
jmp 0x4775a9
cmp dword [esp + 0xc], 0
je 0x4775fa
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x18], eax
call fcn.00486590
mov dword [esp + 0x1c], eax
jmp 0x477602
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 8]
mov edx, 0x60
mov ecx, esi
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
jne 0x47763d
mov ecx, dword [esp + 8]
lea eax, [eax + eax*4]
mov ecx, dword [ecx + 0x68]
mov byte [ecx + eax*4 + 1], 0xfd
mov dword [ecx + eax*4 + 0x10], 1
cmp dword [esp + 0x1c], 0
je 0x47765b
mov ecx, dword [esp + 8]
mov edx, 0xffffffff
push 0xfffffffffffffff7
push dword [esp + 0x20]
call fcn.0042b420
add esp, 8
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc8]
mov edx, 0x5c
mov ecx, esi
push 0
push dword [eax + 8]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, 0x74
push 0
push 0
push ebx
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, edi
push dword [esp + 0xc]
call fcn.004a62a0
add esp, 4
mov dword [esp + 0xd0], 0
push 0x10
mov edi, dword [esp + 0x40]
push edi
push dword [esp + 0x38]
mov esi, dword [esp + 0x20]
push esi
call fcn.0048b810
add esp, 0x10
mov edx, dword [esp + 0x24]
mov ecx, esi
push edi
push edi
push dword [ebp + 8]
push 0
push 0
push 0xffffffffffffffff
call fcn.004a36f0
add esp, 0x18
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
call fcn.0048b2b0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x49], 3
jne 0x477712
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push 0
push esi
call fcn.0048df30
add esp, 0x10
cmp dword [esp + 0xd0], 0
je 0x47775f
cmp dword [esp + 0xd4], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
mov ecx, str.ORDER_BY
cmovg ecx, eax
push ecx
push str.USE_TEMP_B_TREE_FOR__s
push 0
push esi
call fcn.0048df30
add esp, 0x10
lea eax, [esp + 0xd0]
mov ecx, esi
mov edx, edi
push dword [ebp + 8]
mov edi, dword [esp + 0x38]
push dword [edi]
push eax
call fcn.004a6310
add esp, 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x40]
call fcn.0048b2b0
xor ebx, ebx
cmp dword [esi + 0x24], 0
setg bl
jmp 0x475d6e