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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 1
mov eax, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xa0], 0
mov esi, dword [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x5157f2
cmp dword [edi + 0x74], esi
jne 0x5157dd
test byte [ecx + 0x4c], 8
jne 0x5157dd
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.004d42a0
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x517dfb
cmp byte [ecx + 0x51], 0
jne 0x517dfb
cmp dword [edi + 0x24], 0
jne 0x517dfb
push 0
push 0
push 0
mov edx, 0x15
mov ecx, edi
call fcn.004f55c0
add esp, 0xc
test eax, eax
jne 0x517dfb
push 0x30
push eax
lea eax, [esp + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax], 8
mov eax, dword [esp + 0x10]
ja 0x515869
mov edx, dword [eax + 0x30]
test edx, edx
je 0x51585e
mov ecx, dword [esp + 0x3c]
call fcn.004eaee0
mov eax, dword [esp + 0x10]
and dword [eax + 4], 0xfffffffe
mov dword [eax + 0x30], 0
push 0
mov edx, eax
mov ecx, edi
call fcn.00514f10
mov eax, dword [esp + 0x40]
add esp, 4
cmp dword [edi + 0x24], 0
jne 0x517d72
cmp byte [eax + 0x51], 0
jne 0x517d72
mov eax, dword [ebp + 8]
cmp byte [eax], 9
jne 0x5158a2
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.00510370
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.0052c320
mov dword [esp + 0x14], eax
test eax, eax
jne 0x517d6e
mov edx, dword [esp + 0x10]
xorps xmm0, xmm0
movaps xmmword [esp + 0xf0], xmm0
xor ecx, ecx
movaps xmmword [esp + 0x100], xmm0
movq qword [esp + 0x110], xmm0
mov eax, dword [edx + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 4]
shr eax, 3
and eax, 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0xf0], eax
mov eax, dword [edx + 0x34]
test eax, eax
jne 0x515a51
nop dword [eax]
mov esi, dword [esp + 0x34]
cmp ecx, dword [esi]
mov esi, dword [esp + 0x1c]
jge 0x515a49
mov esi, dword [esp + 0x34]
lea eax, [ecx + ecx*8]
test byte [esi + eax*8 + 0x2c], 8
lea eax, [esi + eax*8]
mov esi, dword [eax + 0x1c]
mov dword [esp + 0xc], esi
mov esi, dword [eax + 0x18]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x68], eax
je 0x515988
mov edx, dword [eax + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x24]
call fcn.004f06a0
test eax, eax
je 0x515980
mov eax, dword [esp + 0x3c]
mov ecx, 0x2000
test word [eax + 0x4c], cx
jne 0x515980
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
and byte [edx + 0x2c], 0xd7
mov edx, dword [edx + 0x34]
mov ecx, dword [eax + 0x24]
call fcn.0050e1c0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x515a39
mov eax, dword [eax + 0x1c]
mov esi, dword [esp + 0x38]
mov edi, dword [eax]
movsx eax, word [esi + 0x2a]
mov esi, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x18]
jne 0x515a82
mov eax, dword [esp + 0xc]
test byte [eax + 4], 8
jne 0x515a39
cmp dword [eax + 0x30], 0
je 0x5159e1
test ecx, ecx
jne 0x5159e1
test dword [edx + 4], 0x40000
je 0x5159e1
mov eax, dword [esp + 0x34]
cmp dword [eax], 1
je 0x515a39
test byte [eax + 0x74], 0xa
jne 0x515a39
push dword [esp + 0x78]
push ecx
mov ecx, edi
call fcn.005135f0
add esp, 8
test eax, eax
je 0x515a06
cmp dword [edi + 0x24], 0
jne 0x517d6e
mov dword [esp + 0x54], 0xffffffff
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x51], 0
jne 0x517d72
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x54]
cmp byte [eax], 8
jbe 0x515a39
mov eax, dword [edx + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0xf0], eax
mov eax, dword [edx + 0x34]
inc ecx
mov dword [esp + 0x54], ecx
test eax, eax
je 0x515910
test eax, eax
je 0x515ae3
push dword [ebp + 8]
mov ecx, edi
call fcn.005114d0
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x38], 0
jne 0x515adb
mov ecx, dword [edi + 0xd4]
test ecx, ecx
jne 0x515aa0
mov dword [edi + 0xd4], ecx
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
push dword [ecx]
push eax
push str.expected__d_columns_for__s_but_got__d
push edi
call fcn.004b86d0
add esp, 0x14
jmp 0x517d6e
mov edx, dword [edi + 8]
test ecx, ecx
jns 0x515aab
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x515ac9
mov ecx, 0x5ab14c
mov eax, esi
mov ecx, dword [ecx + 8]
mov dword [edi + 0xd4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov ecx, dword [ecx + 8]
mov dword [edi + 0xd4], ecx
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
cmp eax, 1
jle 0x515be2
mov esi, dword [esp + 0x3c]
cmp word [esi + 0x4c], 0
mov esi, dword [esp + 0x1c]
jl 0x515be2
mov dword [esp + 0x88], edi
jmp 0x515b14
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x88]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call fcn.00513c20
cmp dword [esp + 0x8c], 0
je 0x515bce
lea eax, [esp + 0x88]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], 0x513d10
mov dword [esp + 0xac], fcn.004b4a30
mov edx, dword [eax + 0x24]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
test edx, edx
je 0x515bb5
lea ecx, [esp + 0xa4]
call fcn.004e6330
mov edx, dword [esp + 0x94]
test edx, edx
je 0x515bce
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx]
call fcn.004b52d0
cmp dword [esp + 0x90], 0
jne 0x515b10
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
xor edx, edx
mov dword [esp + 0x48], edx
test eax, eax
jle 0x515fd8
lea eax, [edx*8 + 1]
add eax, edx
lea edi, [ecx + eax*8]
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
mov dword [esp + 0x70], edi
jne 0x515c31
mov eax, dword [edi + 8]
test eax, eax
je 0x515c31
push dword [edi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, 0x14
push 0x57f662
push eax
call fcn.004f55c0
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x48]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x44], eax
test eax, eax
je 0x515fc7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.004e9500
mov ecx, dword [esp + 0x18]
mov edx, 0x1000
mov eax, dword [esp + 0xc]
add dword [ecx + 0xd0], eax
mov eax, dword [esp + 0x3c]
test word [eax + 0x4c], dx
jne 0x515c97
movzx eax, byte [edi + 0x24]
mov edx, dword [esp + 0x44]
shr eax, 5
and eax, 1
push eax
mov eax, dword [esp + 0x14]
push dword [edi + 0x2c]
push dword [eax + 0x24]
call fcn.00513dd0
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x48], 0
mov eax, dword [ecx + 0xf0]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 8]
mov dword [ecx + 0xf0], eax
jne 0x515d95
mov eax, dword [esp + 0x34]
cmp dword [eax], 1
je 0x515cc8
test byte [eax + 0x74], 0xa
je 0x515d95
mov eax, dword [ecx + 0x2c]
mov edx, 0xd
mov edi, dword [esi + 0x6c]
inc eax
mov dword [ecx + 0x2c], eax
mov ecx, dword [esp + 0x70]
lea esi, [edi + 1]
push esi
mov dword [ecx + 0x1c], eax
mov ecx, dword [esp + 0x20]
push 0
push eax
call fcn.004d44f0
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov byte [esp + 0x88], 0xd
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [eax + 0x18], esi
mov esi, eax
mov dword [esp + 0x94], 0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
push dword [eax + 0x10]
push str.CO_ROUTINE__u
push 1
push dword [esp + 0x24]
call fcn.004d49e0
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x28]
push eax
call fcn.00515790
mov ecx, dword [esi + 0x10]
add esp, 0x14
mov eax, dword [esp + 0x44]
mov ax, word [eax + 2]
mov word [ecx + 0x2e], ax
mov eax, dword [esp + 0x90]
or dword [esi + 0x28], 0x10
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004d4b40
mov edx, edi
mov ecx, esi
call fcn.004d4f00
jmp 0x515f77
xor eax, eax
mov edx, 0x45
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x2c]
inc eax
mov dword [ecx + 0x2c], eax
mov ecx, esi
push eax
push 0
mov dword [edi + 0x1c], eax
call fcn.004d4620
add esp, 8
mov dword [esp + 0x5c], eax
test byte [edi + 0x28], 8
lea ecx, [eax + 1]
mov dword [edi + 0x18], ecx
jne 0x515dd7
mov edx, 0x11
mov ecx, esi
call fcn.004d4560
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x34]
add ecx, 8
mov dword [esp + 0x4c], ecx
cmp ecx, edi
jae 0x515e98
nop word [eax + eax]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x70], eax
test eax, eax
je 0x515e89
test byte [ecx + 0x28], 0x10
jne 0x515e89
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
test eax, eax
je 0x515e89
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x68], edx
cmp edx, dword [eax + 0x48]
jne 0x515e89
mov edx, dword [edi + 8]
test edx, edx
je 0x515e89
mov ecx, dword [esp + 0x38]
call fcn.004b8800
test eax, eax
jne 0x515e85
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x68], eax
jne 0x515e4f
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x10]
cmp eax, dword [ecx + 0x10]
jne 0x515e85
mov edx, dword [edi + 0x14]
push 0xffffffffffffffff
push dword [ecx + 0x24]
xor ecx, ecx
mov edx, dword [edx + 0x24]
call fcn.004efe80
add esp, 8
test eax, eax
jne 0x515e85
mov eax, dword [esp + 0x70]
xor ecx, ecx
mov edx, dword [edi + 0x14]
push 0xffffffffffffffff
push dword [eax + 0x2c]
mov edx, dword [edx + 0x2c]
call fcn.004efe80
add esp, 8
test eax, eax
je 0x515ece
mov ecx, dword [esp + 0x4c]
add ecx, 0x48
mov dword [esp + 0x4c], ecx
cmp ecx, edi
jb 0x515df0
xor eax, eax
mov dword [esp + 0x4c], eax
test eax, eax
je 0x515ed4
push dword [eax + 0x2c]
mov edx, 0x62
mov ecx, esi
push dword [edi + 0x2c]
call fcn.004d4620
mov eax, dword [esp + 0x54]
add esp, 8
mov ecx, dword [esp + 0x44]
mov eax, dword [eax + 0x14]
movzx eax, word [eax + 2]
mov word [ecx + 2], ax
mov ecx, eax
jmp 0x515f3e
mov eax, dword [esp + 0x4c]
jmp 0x515e9e
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x88], 0xc
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
push dword [eax + 0x10]
push str.MATERIALIZE__u
push 1
push dword [esp + 0x24]
call fcn.004d49e0
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x28]
push eax
call fcn.00515790
mov eax, dword [esp + 0x58]
add esp, 0x14
movzx ecx, word [eax + 2]
mov eax, dword [edi + 0x10]
mov word [eax + 0x2e], cx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x515f56
mov edx, eax
mov ecx, esi
call fcn.004d4f00
push dword [edi + 0x1c]
mov edx, 0x41
mov ecx, esi
call fcn.004d45c0
mov edx, dword [esp + 0x60]
add esp, 4
mov ecx, esi
push eax
call fcn.004d4e80
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov byte [edi + 0x13], 0
mov dword [edi + 0x1c], 0
cmp byte [eax + 0x51], 0
jne 0x517d72
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.004e9500
mov eax, dword [esp + 0xc]
sub dword [edi + 0xd0], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
mov dword [edi + 0xf0], eax
jmp 0x515fcb
mov edi, dword [esp + 0x18]
inc edx
mov dword [esp + 0x48], edx
cmp edx, dword [ecx]
jl 0x515bf0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x70], eax
mov al, byte [ecx + 4]
and al, 1
mov dword [esp + 0x54], edx
mov byte [esp + 0x63], al
mov byte [esp + 0x88], al
mov eax, dword [ecx + 4]
and al, 9
cmp al, 1
jne 0x516056
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
call fcn.004f0210
add esp, 4
test eax, eax
jne 0x516052
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
cmp dword [ecx + 0x44], eax
jne 0x516056
and dword [ecx + 4], 0xfffffffe
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004ea2f0
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], edx
or dword [eax + 4], 8
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5160a9
push dword [edx]
mov edx, eax
mov ecx, edi
push 0
call fcn.0050f8e0
mov edx, dword [edi + 0x28]
push 0xfffffffffffffff7
push eax
mov eax, dword [esp + 0x64]
lea ecx, [edx + 1]
mov dword [esp + 0x108], edx
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [eax]
push 0
mov ecx, dword [ecx]
inc ecx
add eax, ecx
mov ecx, esi
push eax
push edx
mov edx, 0x64
call fcn.004d48b0
add esp, 0x1c
mov dword [esp + 0x104], eax
jmp 0x5160b4
mov dword [esp + 0x104], 0xffffffff
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0xc
jne 0x5160d4
mov eax, dword [esp + 0x54]
mov edx, 0x64
push dword [eax]
push dword [ecx + 4]
mov ecx, esi
call fcn.004d4620
add esp, 8
mov eax, dword [esp + 0x10]
dec dword [edi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x12c], ecx
test dword [eax + 4], 0x4000
jne 0x5160f7
mov edx, 0x140
mov word [eax + 2], dx
push ecx
mov edx, eax
mov ecx, edi
call fcn.00510c60
mov edx, dword [esp + 0x14]
add esp, 4
cmp dword [edx + 8], 0
jne 0x516133
mov eax, dword [esp + 0x104]
test eax, eax
js 0x516133
push 0x6f
mov edx, eax
mov ecx, esi
call fcn.004d4e40
mov edx, dword [esp + 0x14]
add esp, 4
or byte [esp + 0x110], 1
test byte [edx + 4], 1
je 0x51619c
mov esi, dword [edi + 0x28]
push 0xfffffffffffffff7
push ecx
push 0
lea eax, [esi + 1]
mov dword [esp + 0x98], esi
mov dword [edi + 0x28], eax
mov ecx, edi
mov edx, dword [edx + 0x1c]
push 0
call fcn.0050f8e0
add esp, 0xc
mov edx, 0x64
push eax
push 0
push 0
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.004d48b0
mov dword [esp + 0xa4], eax
add esp, 0x14
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x516194
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x10]
mov al, 3
jmp 0x51619e
xor al, al
cmp dword [esp + 0x78], 0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x89], al
mov dword [esp + 0x80], eax
jne 0x5163e6
test ecx, ecx
jne 0x5163e6
cmp byte [esp + 0x63], cl
mov eax, 0x100
mov dword [esp + 0xc], 0x4000
cmovne ecx, eax
mov ax, word [edx + 4]
and ax, word [esp + 0xc]
or cx, ax
movzx eax, cx
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x44]
mov dword [esp + 0x38], eax
test eax, eax
je 0x516200
mov ecx, edi
call fcn.0052cd20
mov edx, dword [esp + 0x10]
movsx eax, word [edx + 2]
mov ecx, edi
push eax
push dword [esp + 0x10]
push dword [edx + 0x1c]
mov edx, dword [esp + 0x40]
push dword [esp + 0x2c]
push dword [esp + 0x6c]
call fcn.00529af0
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x517d6e
mov edx, dword [esp + 0x10]
movzx eax, word [ecx + 0x34]
cmp ax, word [edx + 2]
jge 0x516242
mov word [edx + 2], ax
cmp byte [esp + 0x63], 0
je 0x51627e
mov eax, dword [esp + 0x80]
mov cl, byte [ecx + 0x2f]
movzx eax, al
test cl, cl
mov dword [esp + 0x80], eax
movzx eax, cl
mov ecx, dword [esp + 0x80]
cmovne ecx, eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x89], cl
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x20], 0
je 0x5162ce
test byte [ecx + 0x30], 4
movsx eax, byte [ecx + 0x2d]
mov dword [esp + 0xf4], eax
jne 0x51629b
mov eax, dword [ecx + 0x1c]
jmp 0x5162a9
movzx eax, byte [ecx + 0x2c]
imul eax, eax, 0x58
mov eax, dword [eax + ecx + 0x2a8]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0xf4]
cmp eax, dword [ecx]
mov eax, 0
cmove ecx, eax
mov dword [esp + 0xf0], ecx
jmp 0x5162d2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x104]
test eax, eax
js 0x5162ee
test ecx, ecx
jne 0x5162ee
mov edx, eax
mov ecx, esi
call fcn.004d5180
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x38], 0
je 0x5163af
mov eax, dword [edi + 0x38]
inc dword [edi + 0x2c]
mov ecx, dword [esp + 0x18]
lea esi, [eax - 1]
sub eax, 2
mov dword [esp + 0xc], eax
dec eax
mov dword [edi + 0x38], eax
mov edi, dword [edi + 0x2c]
push esi
push edi
push dword [esp + 0x50]
mov dword [esp + 0x20], eax
call fcn.0052fad0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov edx, 0xb
push dword [esp + 0x14]
push 0
call fcn.004d4620
mov ecx, dword [esp + 0x24]
mov edx, esi
call fcn.004d4c30
push dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x94]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push esi
push dword [ebp + 8]
mov dword [esp + 0x120], 0
push eax
lea eax, [esp + 0x108]
push eax
push 0xffffffffffffffff
call fcn.0050ebe0
mov ecx, dword [esp + 0x3c]
mov edx, esi
call fcn.004d4c30
mov ecx, dword [esp + 0x3c]
mov edx, 0x41
push edi
call fcn.004d45c0
add esp, 0x24
lea edx, [esi - 1]
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004d4c30
mov edi, dword [esp + 0x18]
jmp 0x517cb4
mov eax, dword [esp + 0x48]
mov ecx, edi
push dword [eax + 0x20]
push dword [eax + 0x1c]
lea eax, [esp + 0x90]
push dword [ebp + 8]
push eax
lea eax, [esp + 0x100]
push eax
push 0xffffffffffffffff
call fcn.0050ebe0
mov ecx, dword [esp + 0x60]
add esp, 0x18
call fcn.0052a640
jmp 0x517cb4
mov dword [esp + 0x7c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x68], 0
test ecx, ecx
je 0x5164b4
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
test eax, eax
jle 0x516424
add ecx, 0x16
xor esi, esi
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], si
test eax, eax
jg 0x516412
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
test eax, eax
jle 0x516447
add ecx, 0x16
xor edi, edi
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], di
test eax, eax
jg 0x516431
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
cmp word [edx + 2], 0x42
jle 0x516457
mov eax, 0x42
mov word [edx + 2], ax
mov edx, dword [esp + 0x20]
test edx, edx
je 0x5164ba
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5164ba
xor edx, edx
test eax, eax
jle 0x516494
mov esi, dword [esp + 0x20]
add ecx, 0xc
mov edi, dword [esp + 0x40]
sub esi, edi
mov al, byte [esi + ecx]
lea ecx, [ecx + 0x14]
and al, 1
inc edx
mov byte [ecx - 0x14], al
cmp edx, dword [edi]
jl 0x516478
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
call fcn.004f0210
mov ecx, dword [esp + 0x44]
add esp, 4
test eax, eax
jne 0x5164ba
mov dword [esp + 0x68], 1
jmp 0x5164ba
xor eax, eax
mov word [edx + 2], ax
dec dword [edi + 0x38]
xorps xmm0, xmm0
mov eax, dword [edi + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x134], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0x138], eax
mov eax, dword [edi + 0x2c]
inc eax
movlpd qword [esp + 0x13c], xmm0
movlpd qword [esp + 0x144], xmm0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x130], edi
mov dword [esp + 0xd0], eax
test ecx, ecx
je 0x51651e
mov eax, dword [ecx]
mov dword [esp + 0xcc], eax
jmp 0x516529
mov dword [esp + 0xcc], 0
mov edx, dword [esp + 0x54]
mov dword [esp + 0xd8], ecx
lea ecx, [esp + 0x130]
call fcn.004f0af0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x130]
call fcn.004f0af0
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x51660a
cmp dword [esp + 0x40], 0
je 0x5165b7
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
mov dword [esp + 0xa4], edi
mov edx, dword [eax + 0x2c]
mov dword [esp + 0xa8], 0x515620
mov dword [esp + 0xbc], eax
test edx, edx
je 0x5165b0
lea ecx, [esp + 0xa4]
call fcn.004e6330
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x130]
mov dword [esp + 0xa8], 0x4f0840
mov edx, ecx
mov dword [esp + 0xac], 0x4f0ad0
lea ecx, [esp + 0xa4]
mov dword [esp + 0xb0], 0x4f0ae0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xa4], 0
call fcn.004e6330
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x28], 0
jne 0x516701
cmp dword [eax + 0x2c], 0
jne 0x516701
cmp ecx, 1
jne 0x516701
mov eax, dword [esp + 0xe8]
mov eax, dword [eax]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], edx
test edx, edx
je 0x5166f6
cmp dword [edx], ecx
jne 0x5166f6
test dword [eax + 4], 0x1000000
jne 0x5166f6
mov eax, dword [eax + 8]
mov edx, 0x588050
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.004b8800
test eax, eax
jne 0x516693
mov byte [esp + 0x77], 2
mov dword [esp + 0xc], 1
jmp 0x5166b2
mov ecx, dword [esp + 0xc]
mov edx, 0x58804c
call fcn.004b8800
test eax, eax
jne 0x5166ef
mov byte [esp + 0x77], 1
mov dword [esp + 0xc], 2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
call fcn.004ea2f0
mov ecx, eax
add esp, 4
mov dword [esp + 0xa0], ecx
test ecx, ecx
je 0x5166d8
mov al, byte [esp + 0x77]
mov byte [ecx + 0xc], al
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xec]
movzx eax, ax
movzx eax, ax
mov dword [esp + 0x38], eax
jmp 0x516709
mov ecx, dword [esp + 0xec]
xor eax, eax
movzx eax, ax
mov dword [esp + 0x38], eax
jmp 0x516709
mov dword [esp + 0x38], 0
test ecx, ecx
jle 0x5167e6
mov ecx, dword [esp + 0x148]
xor esi, esi
xor edi, edi
nop dword [eax]
mov eax, dword [esp + 0xe8]
or ecx, 0x20000
mov eax, dword [eax + esi]
mov dword [esp + 0x148], ecx
lea ecx, [esp + 0x130]
mov dword [esp + 0xc], eax
mov edx, dword [eax + 0x14]
call fcn.004f0af0
mov eax, dword [esp + 0xc]
test dword [eax + 4], 0x1000000
je 0x5167b2
mov eax, dword [eax + 0x2c]
mov dword [esp + 0xa8], 0x4f0840
mov dword [esp + 0xac], 0x4f0ad0
mov dword [esp + 0xb0], 0x4f0ae0
mov edx, dword [eax + 0x28]
lea eax, [esp + 0x130]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xa4], 0
test edx, edx
je 0x5167b2
lea ecx, [esp + 0xa4]
call fcn.004e6330
mov ecx, dword [esp + 0x148]
inc edi
and ecx, 0xfffdffff
add esi, 0x10
mov dword [esp + 0x148], ecx
cmp edi, dword [esp + 0xec]
jl 0x516720
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xec]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x51], 0
jne 0x517d5a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x5176cc
mov eax, dword [edi + 0x28]
mov ecx, edi
push dword [esp + 0xe0]
mov dword [esp + 0xc8], eax
inc eax
push 0
mov dword [edi + 0x28], eax
call fcn.0050f8e0
mov ecx, dword [esi + 0x6c]
add esp, 8
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x70], ecx
jg 0x516866
push 0
push edx
push eax
mov edx, 0x6f
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x51689d
mov edi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x6f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xc]
push 0xfffffffffffffff7
push dword [esp + 0x7c]
mov edx, eax
mov ecx, esi
call fcn.004d52a0
mov eax, dword [edi + 0x2c]
add esp, 8
mov edx, dword [esp + 0x40]
inc eax
mov dword [esp + 0x64], eax
inc eax
mov dword [esp + 0x50], eax
lea ecx, [eax + 2]
mov eax, dword [edi + 0x38]
dec eax
mov dword [edi + 0x2c], ecx
mov dword [esp + 0x6c], eax
dec eax
mov dword [edi + 0x38], eax
mov dword [esp + 0x20], ecx
add ecx, dword [edx]
mov dword [esp + 0x48], eax
mov dword [edi + 0x2c], ecx
lea eax, [ecx + 1]
mov dword [esp + 0x84], eax
mov eax, dword [edx]
add eax, ecx
mov dword [edi + 0x2c], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x516915
push 0
push dword [esp + 0x54]
mov edx, 0x45
mov ecx, esi
push 0
call fcn.004d44b0
mov edx, dword [esp + 0x4c]
add esp, 0xc
jmp 0x51694c
mov edi, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x6c]
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x516976
mov eax, dword [esp + 0x20]
mov ecx, esi
push edx
inc eax
mov edx, 0x48
push eax
push 0
call fcn.004d44b0
add esp, 0xc
jmp 0x5169ae
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
inc edi
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5169d1
push 0
push dword [esp + 0x4c]
mov edx, 0xc
mov ecx, esi
push dword [esp + 0x28]
call fcn.004d44b0
add esp, 0xc
jmp 0x516a04
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x68], 0
mov ecx, 0x240
mov edx, dword [esp + 0x34]
mov eax, 0x40
cmovne eax, ecx
mov ecx, edi
push 0
movzx eax, ax
push eax
push 0
push dword [esp + 0x4c]
push dword [esp + 0x6c]
call fcn.00529af0
mov edx, eax
add esp, 0x14
mov dword [esp + 0x38], edx
test edx, edx
je 0x517d56
mov eax, dword [esp + 0x40]
movsx ecx, byte [edx + 0x2d]
cmp ecx, dword [eax]
jne 0x516a59
xor eax, eax
mov dword [esp + 0x5c], eax
jmp 0x516de7
cmp byte [esp + 0x63], 0
je 0x516a6f
mov eax, dword [esp + 0x10]
test byte [eax + 4], 1
mov eax, str.DISTINCT
je 0x516a74
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push edi
call fcn.004d49e0
mov eax, dword [esp + 0x50]
add esp, 0x10
mov dword [esp + 0x5c], 1
mov edx, dword [eax]
mov ecx, edx
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x516ae6
mov edi, dword [esp + 0xdc]
mov esi, edx
add edi, 0xc
cmp dword [edi], edx
lea eax, [esi + 1]
lea edi, [edi + 0x18]
cmovl eax, esi
mov esi, eax
lea eax, [edx + 1]
cmovl eax, edx
sub dword [esp + 0x14], 1
mov edx, eax
jne 0x516ab8
mov edi, dword [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
cmp ecx, 1
jne 0x516b13
mov al, byte [edi + 0x13]
test al, al
jne 0x516afe
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x34], eax
jmp 0x516b3e
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x94]
mov dword [esp + 0x34], eax
jmp 0x516b3e
mov edx, dword [edi + 0x20]
mov dword [esp + 0x34], edx
cmp ecx, dword [edi + 0x1c]
jg 0x516b2f
lea eax, [ecx + edx]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x1c]
sub eax, ecx
mov dword [edi + 0x1c], eax
jmp 0x516b3e
mov eax, dword [edi + 0x2c]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x34], edx
mov dword [edi + 0x2c], eax
mov edx, dword [esp + 0x40]
mov ecx, edi
push 0
push 0
push dword [esp + 0x3c]
call fcn.004ef320
add esp, 0xc
cmp dword [esp + 0xe0], 0
jle 0x516bbb
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0x58]
add edx, ecx
cmp dword [edx + 0xc], eax
jl 0x516ba6
add eax, dword [esp + 0x34]
mov ecx, esi
push eax
push dword [edx + 8]
push dword [edx + 4]
mov edx, dword [edx]
call fcn.004edbf0
mov eax, dword [esp + 0x64]
add esp, 0xc
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x58], eax
inc edi
add ecx, 0x18
mov dword [esp + 0x14], ecx
cmp edi, dword [esp + 0xe0]
jl 0x516b70
mov edi, dword [esp + 0x18]
mov al, byte [edi + 0x13]
test al, al
jne 0x516bca
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x516bd9
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x94]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x58], eax
cmp dword [esi + 0x70], ecx
jg 0x516c04
mov edx, dword [esp + 0x44]
mov ecx, esi
push eax
push edx
push dword [esp + 0x3c]
mov edx, 0x5b
call fcn.004d44b0
mov edx, dword [esp + 0x64]
add esp, 0xc
jmp 0x516c37
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x70], ecx
jg 0x516c63
push 0
push edx
push eax
mov edx, 0x82
mov ecx, esi
call fcn.004d44b0
mov edx, dword [esp + 0x64]
add esp, 0xc
jmp 0x516c96
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x82
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test edx, edx
je 0x516cae
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x516cae
movzx eax, al
mov dword [edi + eax*4 + 0x94], edx
inc byte [edi + 0x13]
mov eax, dword [esp + 0x44]
cmp eax, 1
jne 0x516cd5
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x516ce4
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x516ce4
movzx eax, al
mov dword [edi + eax*4 + 0x94], ecx
inc byte [edi + 0x13]
jmp 0x516ce4
cmp eax, dword [edi + 0x1c]
jle 0x516ce4
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x20], eax
mov ecx, dword [esp + 0x38]
call fcn.0052a640
mov edx, dword [edi + 0x28]
mov dword [esp + 0x7c], edx
mov dword [esp + 0xc8], edx
lea eax, [edx + 1]
mov dword [edi + 0x28], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x516d10
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x516d1f
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x94]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x58], eax
cmp dword [esi + 0x70], ecx
jg 0x516d49
mov edx, dword [esp + 0x44]
mov ecx, esi
push edx
push eax
push dword [esp + 0x84]
mov edx, 0x72
call fcn.004d44b0
add esp, 0xc
jmp 0x516d7c
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x72
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0xc4]
cmp dword [esi + 0x70], ecx
jg 0x516da3
push 0
push dword [esp + 0x50]
mov ecx, esi
push edx
mov edx, 0x23
call fcn.004d44b0
add esp, 0xc
jmp 0x516dd6
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x23
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x38]
mov eax, 1
mov byte [esp + 0xc1], 1
cmp dword [esp + 0x68], 0
je 0x516e45
mov ecx, dword [esp + 0x3c]
test byte [ecx + 0x4c], 4
jne 0x516e45
test eax, eax
jne 0x516e02
test byte [edx + 0x30], 8
je 0x516e45
mov ecx, dword [esi]
mov dword [esp + 0xf0], 0
cmp byte [ecx + 0x51], 0
jne 0x516e45
mov eax, dword [esp + 0x104]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.004d5030
mov word [esi], 0xad
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x5c], 0
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x44], ecx
je 0x516eac
mov edx, dword [esp + 0xc4]
cmp dword [esi + 0x70], ecx
jg 0x516e79
push dword [esp + 0x7c]
mov ecx, esi
push dword [esp + 0x5c]
push edx
mov edx, 0x7d
call fcn.004d44b0
add esp, 0xc
jmp 0x516eac
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4], 0x7d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x68], eax
mov edx, dword [ecx]
test edx, edx
jle 0x516f76
add ecx, 4
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov edx, dword [esp + 0x84]
add edx, eax
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x58], edx
je 0x516f3b
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x516f06
push edx
push eax
push dword [esp + 0x84]
mov edx, 0x59
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
jmp 0x516f50
mov edx, dword [esp + 0x7c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x516f50
mov byte [esp + 0xc0], 1
push edx
mov edx, dword [ecx]
mov ecx, edi
call fcn.004ef2d0
add esp, 4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, 0x14
mov dword [esp + 0x68], eax
mov edx, dword [edx]
mov dword [esp + 0x14], ecx
cmp eax, edx
jl 0x516ed0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x516f82
inc dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x70], ecx
jg 0x516fad
mov eax, dword [esp + 0x20]
mov ecx, esi
push edx
push dword [esp + 0x88]
inc eax
mov edx, 0x56
push eax
call fcn.004d44b0
add esp, 0xc
jmp 0x516fec
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
inc edi
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x84]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x56
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff7
push dword [esp + 0x7c]
mov edx, eax
mov ecx, esi
call fcn.004d52a0
mov eax, dword [esi + 0x6c]
add esp, 8
mov dword [esp + 0x68], eax
lea edx, [eax + 1]
cmp dword [esi + 0x70], eax
jg 0x517022
push edx
push 0
push edx
mov edx, 0x10
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
jmp 0x51704e
mov edi, dword [esp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [esi + 0x6c], edx
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov edx, dword [ecx + 0x6c]
mov eax, dword [eax]
mov dword [esp + 0x78], eax
cmp dword [ecx + 0x70], edx
jg 0x517084
push eax
mov eax, dword [esp + 0x24]
mov edx, 0x4c
inc eax
push eax
push dword [esp + 0x8c]
call fcn.004d44b0
add esp, 0xc
jmp 0x5170c3
mov esi, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
inc edx
mov dword [eax + ecx*4], 0x4c
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x78]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5170e8
mov eax, dword [esp + 0x50]
mov edx, 0xc
push 0
push dword [esp + 0x70]
inc eax
mov ecx, esi
push eax
call fcn.004d44b0
add esp, 0xc
jmp 0x517120
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
inc edx
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x517143
push 0
push dword [esp + 0x50]
mov edx, 0x30
mov ecx, esi
push dword [esp + 0x58]
call fcn.004d44b0
add esp, 0xc
jmp 0x517176
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x517199
push 0
push dword [esp + 0x4c]
mov edx, 0xc
mov ecx, esi
push dword [esp + 0x28]
call fcn.004d44b0
add esp, 0xc
jmp 0x5171cc
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x5171de
mov eax, 0x5ab14c
jmp 0x5171f3
mov ecx, dword [esp + 0x68]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, edi
mov edx, dword [esp + 0x64]
lea eax, [esp + 0xc0]
push eax
call fcn.005151a0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x51722d
push 0
push dword [esp + 0x68]
mov edx, 0x45
mov ecx, esi
push 1
call fcn.004d44b0
add esp, 0xc
jmp 0x517260
mov edx, dword [esp + 0x64]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x5c], 0
je 0x5172c3
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0xc4]
cmp dword [esi + 0x70], ecx
jg 0x51728e
push 0
push dword [esp + 0x48]
mov ecx, esi
push edx
mov edx, 3
call fcn.004d44b0
add esp, 0xc
jmp 0x517301
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 3
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x517301
mov ecx, dword [esp + 0x38]
call fcn.0052a640
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
jne 0x517301
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.004d5030
mov word [esi], 0xad
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x517326
mov eax, dword [esp + 0x50]
mov edx, 0xc
push 0
push dword [esp + 0x70]
inc eax
mov ecx, esi
push eax
call fcn.004d44b0
add esp, 0xc
jmp 0x51735e
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
inc edx
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51737f
push 0
push dword [esp + 0x50]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.004d44b0
add esp, 0xc
jmp 0x5173b2
mov edx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x70], ecx
jg 0x5173db
push 0
push dword [esp + 0x54]
mov edx, 0x45
mov ecx, esi
push 1
call fcn.004d44b0
mov edx, dword [esp + 0x5c]
add esp, 0xc
jmp 0x51740e
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51742f
push 0
lea eax, [edx + 1]
mov ecx, esi
push 0
push eax
mov edx, 0x41
call fcn.004d44b0
add esp, 0xc
jmp 0x517467
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
inc edx
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x6c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x517485
push edx
mov edx, esi
call fcn.004d4bb0
add esp, 4
jmp 0x51748e
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0x6c]
lea ecx, [eax + 1]
lea edx, [eax + 2]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x70], eax
jg 0x5174b8
push 0
push edx
push dword [esp + 0x6c]
mov edx, 0x30
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
jmp 0x5174e8
mov edi, dword [esp + 0x64]
mov dword [esi + 0x6c], ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51750b
mov eax, dword [esp + 0x50]
mov edx, 0x41
push 0
inc eax
mov ecx, esi
push 0
push eax
call fcn.004d44b0
add esp, 0xc
jmp 0x517543
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
inc edx
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.005150d0
push 0x10
push dword [esp + 0x18]
push dword [esp + 0x78]
push edi
call fcn.004efa40
push dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x9c]
push dword [esp + 0x28]
mov ecx, edi
push dword [ebp + 8]
push eax
lea eax, [esp + 0x110]
push eax
push 0xffffffffffffffff
call fcn.0050ebe0
mov ecx, dword [esi + 0x6c]
add esp, 0x28
cmp dword [esi + 0x70], ecx
jg 0x5175af
mov eax, dword [esp + 0x50]
mov edx, 0x41
push 0
inc eax
mov ecx, esi
push 0
push eax
call fcn.004d44b0
add esp, 0xc
jmp 0x5175e7
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
inc edx
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x48]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x517605
push edx
mov edx, esi
call fcn.004d4bb0
add esp, 4
jmp 0x51760e
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.00514fe0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x51763d
push 0
push dword [esp + 0x68]
mov edx, 0x45
mov ecx, esi
push 0
call fcn.004d44b0
add esp, 0xc
jmp 0x517670
mov edx, dword [esp + 0x64]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x517694
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x41
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
jmp 0x517c8d
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x41
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x517c8d
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x24], 0
jne 0x517a7b
mov edx, dword [eax + 0x1c]
mov dword [esp + 0xc], edx
cmp dword [edx], 1
jne 0x517a7b
mov edx, dword [eax + 0x20]
cmp dword [edx], 1
jne 0x517a7b
cmp dword [edx + 0x1c], 0
jne 0x517a7b
mov edx, dword [edx + 0x18]
mov dword [esp + 0x64], edx
cmp dword [edx + 0x38], 0
jne 0x517a7b
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax], 0xa5
jne 0x517a7b
test ecx, ecx
je 0x517a7b
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 4]
test dword [eax + 4], 0x100
je 0x517a7b
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x1c]
test dword [eax + 4], 0x1000002
jne 0x517a7b
mov ecx, dword [edx + 0x48]
mov edx, 0xfff0bdc0
mov dword [esp + 0x48], edx
test ecx, ecx
je 0x51778c
mov eax, dword [edi]
xor edx, edx
mov dword [esp + 0x48], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x51778c
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x517780
mov dword [esp + 0x48], edx
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [esp + 0x6c], eax
inc eax
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x5c], ecx
mov ecx, edi
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x74]
test eax, eax
cmovne ecx, eax
mov dword [esp + 0x78], ecx
mov eax, dword [ecx + 0x54]
mov ecx, edx
mov dword [esp + 0x14], eax
mov eax, 1
shl eax, cl
test dword [esp + 0x14], eax
jne 0x5177ee
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
bts eax, edx
mov dword [ecx + 0x54], eax
cmp edx, 1
jne 0x5177ee
call fcn.004fba40
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x64]
mov ecx, edi
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.004f5650
mov eax, dword [esp + 0x70]
add esp, 0xc
test byte [eax + 0x24], 0x80
je 0x517832
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x517834
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x517828
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x517818
mov eax, dword [esp + 0x64]
mov dword [esp + 0x5c], ecx
jmp 0x517834
xor ecx, ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x517871
mov esi, dword [esp + 0x64]
nop
test byte [eax + 0x38], 4
jne 0x517862
movzx edx, word [eax + 0x30]
cmp dx, word [esi + 0x30]
jge 0x517862
cmp dword [eax + 0x24], 0
jne 0x517862
test ecx, ecx
je 0x517860
cmp dx, word [ecx + 0x30]
jge 0x517862
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x517840
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x517889
mov eax, dword [ecx + 0x2c]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0xc], eax
call fcn.004fc1f0
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x70], ecx
jg 0x5178b7
mov edx, dword [esp + 0x48]
mov ecx, esi
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x74]
push edx
mov edx, 0x60
call fcn.004d44b0
add esp, 0xc
mov ecx, eax
jmp 0x5178ee
mov edx, dword [esp + 0x6c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x517909
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 1
mov edx, dword [esp + 0x38]
test edx, edx
je 0x517955
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x517929
push edx
mov edx, 0xfffffff7
call fcn.004d5030
add esp, 4
jmp 0x517955
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
cmp byte [eax + ecx*4 - 0x13], 0
lea eax, [eax + ecx*4]
je 0x51794e
push 0xfffffffffffffff7
push edx
lea edx, [eax - 0x14]
mov ecx, esi
call fcn.004d51d0
add esp, 8
jmp 0x517955
mov dword [eax - 4], edx
mov byte [eax - 0x13], 0xf7
mov eax, dword [esp + 0xe8]
mov ecx, dword [esi + 0x6c]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x70], ecx
jg 0x517987
push 0
push eax
push dword [esp + 0x74]
mov edx, 0x5c
mov ecx, esi
call fcn.004d44b0
mov edx, dword [esp + 0x78]
add esp, 0xc
jmp 0x5179be
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x6c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5179dc
push 0
push 0
push edx
mov edx, 0x74
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
jmp 0x517a0f
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [edi + 0xc7], 2
jne 0x517c55
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
test ecx, ecx
je 0x517a43
test byte [edx + 0x24], 0x80
je 0x517a37
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x517a43
mov eax, dword [ecx]
mov dword [esp + 0x14], 1
jmp 0x517a50
mov dword [esp + 0x14], 0
mov eax, 0x57f662
cmp dword [esp + 0x14], 0
mov ecx, 0x57f662
push eax
mov eax, str._USING_COVERING_INDEX
cmove eax, ecx
push eax
push dword [edx]
push str.SCAN_TABLE__s_s_s
push 0
push edi
call fcn.004d49e0
add esp, 0x18
jmp 0x517c55
cmp dword [esp + 0xe4], 0
mov dword [esp + 0xc], 0
je 0x517b2c
xor edx, edx
test ecx, ecx
jle 0x517acc
mov ecx, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
mov eax, dword [ecx]
test dword [eax + 4], 0x1000000
jne 0x517ab9
mov eax, dword [ecx + 4]
test byte [eax + 4], 0x20
jne 0x517ac1
inc edx
add ecx, 0x10
cmp edx, esi
jl 0x517aa5
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xec]
cmp edx, ecx
jne 0x517b2c
mov edx, dword [edi + 0x2c]
inc edx
mov dword [edi + 0x2c], edx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0xc], edx
cmp dword [esi + 0x70], ecx
jg 0x517af9
push 0
push edx
push 0
mov edx, 0x45
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
jmp 0x517b2c
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.00514fe0
mov edx, dword [esp + 0x34]
mov ecx, edi
push 0
push dword [esp + 0x3c]
push 0
push dword [esp + 0xac]
push dword [esp + 0x6c]
call fcn.00529af0
add esp, 0x14
mov dword [esp + 0x38], eax
test eax, eax
je 0x517d56
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xc0]
push eax
mov ecx, edi
call fcn.005151a0
mov edx, dword [esp + 0x10]
add esp, 4
test edx, edx
je 0x517bd6
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x517ba3
push 0
push edx
push 1
mov edx, 0x45
mov ecx, esi
call fcn.004d44b0
add esp, 0xc
jmp 0x517bd6
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x38]
cmp byte [edx + 0x2d], 0
jle 0x517c40
mov ecx, dword [esi + 0x6c]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x70], ecx
jg 0x517c09
push 0
push eax
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004d44b0
mov edx, dword [esp + 0x44]
add esp, 0xc
jmp 0x517c40
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, edx
call fcn.0052a640
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.005150d0
push 0x10
push dword [esp + 0x50]
mov dword [esp + 0xf8], 0
push dword [esp + 0x78]
push edi
call fcn.004efa40
mov eax, dword [esp + 0x5c]
mov ecx, edi
mov edx, dword [esp + 0x20]
push eax
push eax
push dword [ebp + 8]
push 0
push 0
push 0xffffffffffffffff
call fcn.0050ebe0
add esp, 0x28
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x4c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x517cab
push edx
mov edx, esi
call fcn.004d4bb0
add esp, 4
jmp 0x517cb4
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x80]
cmp al, 3
jne 0x517cd4
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push 0
push edi
call fcn.004d49e0
add esp, 0x10
cmp dword [esp + 0xf0], 0
je 0x517d20
cmp dword [esp + 0xf4], 0
mov ecx, str.ORDER_BY
mov eax, str.RIGHT_PART_OF_ORDER_BY
cmovle eax, ecx
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push edi
call fcn.004d49e0
mov eax, dword [esp + 0x64]
mov ecx, edi
push dword [ebp + 8]
mov edx, dword [esp + 0x24]
push dword [eax]
lea eax, [esp + 0x108]
push eax
call fcn.0050f9a0
add esp, 0x1c
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x12c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x517d41
push edx
mov edx, esi
call fcn.004d4bb0
add esp, 4
jmp 0x517d4a
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
xor eax, eax
cmp dword [edi + 0x24], eax
setg al
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x517d72
mov edx, ecx
mov ecx, eax
call fcn.004eaee0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xdc]
test edx, edx
je 0x517d84
mov ecx, eax
call fcn.004b52d0
mov edx, dword [esp + 0xe8]
test edx, edx
je 0x517d98
mov ecx, dword [esp + 0x3c]
call fcn.004b52d0
mov ecx, dword [edi + 0xd4]
test ecx, ecx
jne 0x517db4
xor eax, eax
mov dword [edi + 0xd4], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 8]
test ecx, ecx
jns 0x517dbf
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x517ddf
mov eax, 0x5ab14c
mov eax, dword [eax + 8]
mov dword [edi + 0xd4], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [edi + 0xd4], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret