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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x56e00c]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x58], eax
mov esi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], 1
mov eax, dword [edi + 0x1d0]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x1d4]
mov dword [edi + 0x1d0], eax
inc eax
mov dword [edi + 0x1d4], eax
mov eax, dword [edi]
mov dword [esp + 0x30], eax
test esi, esi
je 0x477fbf
cmp byte [eax + 0x40], 0
jne 0x477fbf
cmp dword [edi + 0x40], 0
jne 0x477fbf
push 0
push 0
push 0
mov edx, 0x15
call fcn.00459d90
add esp, 0xc
test eax, eax
jne 0x477fbf
push 0x30
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.004966c0
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp byte [eax], 8
ja 0x47643c
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x30]
call fcn.00452b00
mov eax, 0xfffe
mov dword [esi + 0x30], 0
and word [esi + 6], ax
push 0
mov edx, esi
mov ecx, edi
call fcn.00475ce0
mov eax, dword [esi + 0x30]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x20]
add esp, 4
cmp dword [edi + 0x40], 0
movaps xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x20], eax
mov dword [esp + 0xa0], eax
mov eax, dword [esi]
movq qword [esp + 0xb0], xmm0
mov dword [esp + 0xb8], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x68], eax
jne 0x477e9e
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x40], 0
jne 0x477ea7
movzx eax, word [esi + 6]
mov ecx, edi
shr eax, 2
and eax, 1
mov dword [esp + 0x4c], eax
call fcn.00471b40
mov esi, eax
mov dword [esp + 0x64], esi
test esi, esi
je 0x4764eb
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
cmp dword [ecx], 1
movzx eax, byte [edx]
jle 0x47656d
cmp eax, 0xa
je 0x4764dd
cmp eax, 0xb
jne 0x47656d
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push edi
call fcn.00426ed0
add esp, 8
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x8c]
mov dword [eax + 0x1d0], edx
test edi, edi
jne 0x476525
mov edx, dword [esp + 0x58]
cmp byte [edx], 9
jne 0x476525
push dword [esp + 0x68]
mov edx, ecx
mov ecx, eax
call fcn.004712b0
add esp, 4
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x477ef1
cmp dword [esi + 0x200], 0
je 0x477ec2
cmp ecx, dword [esi + 0x10c]
jb 0x477eae
cmp ecx, dword [esi + 0x110]
jae 0x477eae
mov ecx, dword [esi + 0x200]
movzx eax, word [esi + 0xf0]
add dword [ecx], eax
jmp 0x477ef1
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x44], ecx
cmp dword [eax + 0x34], ecx
jne 0x4765dd
mov edx, dword [esp + 0x40]
cmp ecx, dword [edx]
jge 0x4765d9
lea eax, [ecx + ecx*4]
shl eax, 4
add eax, 8
add eax, edx
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x4765c6
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x476644
test byte [eax + 0x28], 4
jne 0x4765c6
push ecx
push dword [eax + 0x1c]
mov edx, 0x11
mov ecx, esi
call fcn.00440520
mov edx, dword [esp + 0x48]
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
inc ecx
cmp dword [eax + 0x34], 0
mov dword [esp + 0x44], ecx
je 0x476580
mov edx, dword [esp + 0x58]
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x80], ecx
mov cl, byte [eax + 6]
and cl, 1
cmp dword [eax + 0x34], 0
mov byte [esp + 0xf], cl
mov byte [esp + 0x90], cl
je 0x4768d8
push edx
mov edx, eax
mov ecx, edi
call fcn.00472560
mov edx, dword [esp + 0x90]
add esp, 4
mov dword [edi + 0x1d0], edx
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
call fcn.00451750
add dword [edi + 0x1cc], eax
mov ecx, edi
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.004745c0
add esp, 0xc
test eax, eax
je 0x4766a5
cmp dword [esp + 0x10], 0
je 0x476699
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], 1
or word [eax + 6], 4
or eax, 0xffffffff
mov dword [esp + 0x44], eax
jmp 0x476890
mov eax, dword [esp + 0x40]
cmp dword [eax], 1
jne 0x47678d
mov eax, dword [esp + 0x30]
mov ecx, 0x100
test word [eax + 0x3c], cx
jne 0x47678d
mov ecx, dword [esp + 0x14]
mov edx, 0x14
mov edi, dword [esi + 0x20]
inc edi
push edi
mov eax, dword [ecx + 0x48]
inc eax
mov dword [ecx + 0x48], eax
mov ecx, dword [esp + 0x1c]
push 0
push eax
mov dword [ecx + 0x1c], eax
mov ecx, esi
call fcn.004403f0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x18], edi
mov dword [esp + 0x11c], eax
mov al, byte [ecx + 0x1d4]
mov word [esp + 0x118], 0xd
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov byte [edx + 0x2c], al
lea eax, [esp + 0x118]
mov edx, dword [esp + 0x54]
push eax
call fcn.00476370
mov eax, dword [esp + 0x58]
add esp, 4
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.00428140
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x10]
mov word [ecx + 0x1c], ax
mov ecx, esi
or dword [edx + 0x28], 4
mov eax, dword [esp + 0x128]
push dword [edx + 0x1c]
mov dword [edx + 0x20], eax
mov edx, 0x15
call fcn.004404b0
add esp, 0xc
lea edx, [edi - 1]
mov ecx, esi
call fcn.00440a30
mov edi, dword [esp + 0x14]
jmp 0x476885
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x80], eax
mov edx, 0x19
mov eax, dword [edi + 0x48]
inc eax
mov dword [edi + 0x48], eax
push eax
mov dword [ecx + 0x1c], eax
mov ecx, esi
push 0
call fcn.00440520
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x10], eax
inc eax
test byte [edx + 0x28], 2
mov dword [edx + 0x18], eax
jne 0x4767da
mov ecx, edi
call fcn.00452ed0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov ecx, dword [edx + 0x30]
lea eax, [esp + 0x118]
mov dword [esp + 0x11c], ecx
mov cl, byte [edi + 0x1d4]
mov word [esp + 0x118], 0xc
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov byte [edx + 0x2c], cl
mov ecx, edi
mov edx, dword [esp + 0x54]
push eax
call fcn.00476370
mov eax, dword [esp + 0x58]
add esp, 4
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.00428140
mov ecx, dword [esp + 0x20]
add esp, 8
mov ecx, dword [ecx + 0x10]
mov word [ecx + 0x1c], ax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x476854
mov edx, eax
mov ecx, esi
call fcn.00440a30
mov eax, dword [esp + 0x18]
mov edx, 0x12
mov ecx, esi
push dword [eax + 0x1c]
call fcn.004404b0
mov dword [esp + 0x3c], eax
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x20], eax
jbe 0x476885
mov ecx, dword [esi + 4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x38]
mov dword [ecx + edx*4 + 4], eax
mov dword [edi + 0x38], 0
mov byte [edi + 0x13], 0
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x40], 0
jne 0x477e97
mov ecx, dword [esp + 0x1c]
call fcn.00451750
sub dword [edi + 0x1cc], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
mov edx, dword [eax + 0x20]
cmp byte [ecx], 8
mov dword [esp + 0x40], edx
jbe 0x4765ca
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0xa0], ecx
jmp 0x4765ca
mov al, byte [eax + 6]
and al, 5
cmp al, 1
jne 0x476a27
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
call fcn.00456580
add esp, 4
test eax, eax
jne 0x476a27
mov eax, dword [esp + 0x1c]
mov ecx, 0xfffe
push 0
and word [eax + 6], cx
mov edx, dword [eax]
mov ecx, dword [esp + 0x34]
call fcn.00452340
mov ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [eax + 0x28], ecx
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb4], 0xffffffff
mov eax, dword [esp + 0x58]
cmp byte [eax], 0xc
jne 0x476962
mov ecx, dword [esp + 0x68]
mov edx, 0x37
push dword [ecx]
mov ecx, esi
push dword [eax + 4]
call fcn.00440520
add esp, 8
mov ecx, esi
call fcn.00440720
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], ecx
mov edx, eax
push ecx
mov ecx, edi
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], SysReAllocString
call fcn.00471b90
mov edx, dword [esp + 0x20]
add esp, 4
cmp dword [edx + 8], 0
jne 0x4769be
mov ecx, dword [esp + 0xb4]
test ecx, ecx
js 0x4769be
mov edx, ecx
mov ecx, esi
call fcn.00440d20
or byte [esp + 0xb8], 1
mov edx, dword [esp + 0x1c]
mov byte [eax], 0x38
test byte [edx + 6], 1
je 0x476a7b
mov edi, dword [edi + 0x44]
mov ecx, dword [esp + 0x14]
push 0xfffffffffffffffa
push ecx
lea eax, [edi + 1]
mov dword [esp + 0x9c], edi
mov dword [ecx + 0x44], eax
mov edx, dword [edx]
push 0
push 0
call fcn.004706f0
add esp, 0xc
mov edx, 0x37
mov ecx, esi
push eax
push 0
push 0
push edi
call fcn.00440590
mov ecx, dword [esi + 4]
add esp, 0x14
mov dword [esp + 0x98], eax
test ecx, ecx
je 0x476a1b
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov edi, dword [esp + 0x14]
mov al, 3
mov edx, dword [esp + 0x1c]
jmp 0x476a7d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x476936
push 0
push 0
mov edx, eax
mov ecx, edi
call fcn.004706f0
mov edx, dword [edi + 0x44]
push 0xfffffffffffffffa
push eax
mov eax, dword [esp + 0x30]
lea ecx, [edx + 1]
mov dword [esp + 0xb8], edx
mov dword [edi + 0x44], ecx
mov ecx, esi
push 0
mov eax, dword [eax]
add eax, 2
push eax
push edx
mov edx, 0x37
call fcn.00440590
add esp, 0x1c
mov dword [esp + 0xb4], eax
jmp 0x476941
xor al, al
cmp dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x91], al
mov dword [esp + 0x54], eax
jne 0x476ba6
test ecx, ecx
jne 0x476ba6
push ecx
xor eax, eax
mov ecx, 0x400
cmp byte [esp + 0x13], al
cmovne eax, ecx
mov ecx, edi
movzx eax, ax
push eax
push dword [edx]
mov edx, dword [esp + 0x4c]
push dword [esp + 0x2c]
push dword [esp + 0x80]
call fcn.00485240
add esp, 0x14
mov dword [esp + 0x44], eax
test eax, eax
je 0x4764eb
mov cx, word [eax + 0x20]
call fcn.004281f0
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 0x1c]
ja 0x476afa
jb 0x476af4
cmp ecx, dword [eax + 0x18]
jae 0x476afa
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
cmp byte [esp + 0xf], 0
mov edx, dword [esp + 0x44]
je 0x476b2a
mov eax, dword [esp + 0x54]
mov cl, byte [edx + 0x28]
movzx eax, al
test cl, cl
mov dword [esp + 0x54], eax
movzx eax, cl
mov ecx, dword [esp + 0x54]
cmovne ecx, eax
mov dword [esp + 0x54], ecx
mov byte [esp + 0x91], cl
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x476b4b
movsx eax, byte [edx + 0x24]
xor edx, edx
cmp eax, dword [ecx]
mov dword [esp + 0xa4], eax
cmove ecx, edx
mov dword [esp + 0xa0], ecx
mov eax, dword [esp + 0xb4]
test eax, eax
js 0x476b63
test ecx, ecx
jne 0x476b63
mov edx, eax
mov ecx, esi
call fcn.00440b40
mov eax, dword [esp + 0x44]
mov ecx, edi
mov edx, dword [esp + 0x1c]
push dword [eax + 0x34]
push dword [eax + 0x30]
lea eax, [esp + 0x98]
push dword [esp + 0x60]
push eax
lea eax, [esp + 0xb0]
push eax
push 0xffffffffffffffff
push dword [esp + 0x80]
call fcn.0046fb20
mov ecx, dword [esp + 0x60]
add esp, 0x1c
call fcn.00485ba0
jmp 0x477d9a
mov dword [esp + 0x50], 0
mov dword [esp + 0x34], 0
test ecx, ecx
je 0x476c2b
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x64]
test eax, eax
jle 0x476bea
mov ecx, dword [esp + 0x10]
add ecx, 0x16
xor edi, edi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], di
test eax, eax
jg 0x476bd4
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
test eax, eax
jle 0x476c16
mov ecx, dword [esp + 0x10]
add ecx, 0x16
nop
xor esi, esi
lea ecx, [ecx + 0x18]
dec eax
mov word [ecx - 0x18], si
test eax, eax
jg 0x476c00
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
cmp dword [edx + 0x1c], 0
ja 0x476c22
cmp dword [edx + 0x18], 0x64
jbe 0x476c39
mov dword [edx + 0x18], 0x64
jmp 0x476c32
mov dword [edx + 0x18], 1
mov dword [edx + 0x1c], 0
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
call fcn.00456580
add esp, 4
mov ecx, 1
test eax, eax
mov eax, 0
cmove eax, ecx
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.00440720
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
movaps xmmword [esp + 0xf0], xmm0
mov dword [esp + 0xf4], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xfc], eax
mov eax, dword [edi + 0x48]
inc eax
movaps xmmword [esp + 0x100], xmm0
mov dword [esp + 0xf0], edi
mov dword [esp + 0xd0], eax
test ecx, ecx
je 0x476cba
mov eax, dword [ecx]
inc eax
mov dword [esp + 0xcc], eax
jmp 0x476cc5
mov dword [esp + 0xcc], 0
mov edx, dword [esp + 0x68]
mov dword [esp + 0xd8], ecx
lea ecx, [esp + 0xf0]
call fcn.00456af0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xf0]
call fcn.00456af0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x476d05
mov edx, eax
lea ecx, [esp + 0xf0]
call fcn.00456aa0
cmp dword [esp + 0xec], 0
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xe4], eax
jle 0x476d77
mov al, byte [esp + 0x10c]
xor edi, edi
xor esi, esi
nop dword [eax + eax]
or al, 8
lea ecx, [esp + 0xf0]
mov byte [esp + 0x10c], al
mov eax, dword [esp + 0xe8]
mov edx, dword [edi + eax]
mov edx, dword [edx + 0x14]
call fcn.00456af0
mov al, byte [esp + 0x10c]
lea edi, [edi + 0x10]
and al, 0xf7
inc esi
mov byte [esp + 0x10c], al
cmp esi, dword [esp + 0xec]
jl 0x476d30
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x40], 0
jne 0x477e97
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x477aaa
mov eax, dword [edi + 0x44]
mov edx, ecx
mov dword [esp + 0xc4], eax
mov ecx, edi
inc eax
push 0
push 0
mov dword [edi + 0x44], eax
call fcn.004706f0
push 0xfffffffffffffffa
push eax
push 0
push dword [esp + 0xe0]
mov edx, 0x38
mov dword [esp + 0x50], eax
push dword [esp + 0xdc]
mov ecx, esi
call fcn.00440590
mov dword [esp + 0x2c], eax
add esp, 0x1c
mov eax, dword [edi + 0x48]
mov ecx, esi
inc eax
mov dword [esp + 0x20], eax
add eax, 2
mov dword [edi + 0x48], eax
call fcn.00440720
inc dword [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x60], eax
call fcn.00440720
mov edx, dword [edi + 0x48]
mov dword [esp + 0x5c], eax
lea eax, [edx + 1]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add ecx, edx
mov dword [edi + 0x48], ecx
mov eax, dword [eax]
add eax, ecx
mov dword [edi + 0x48], eax
lea edx, [ecx + 1]
mov eax, dword [esp + 0x20]
mov ecx, esi
inc eax
mov dword [esp + 0x4c], edx
push eax
push 0
mov edx, 0x19
call fcn.00440520
push dword [esp + 0x28]
mov edx, 0x19
mov ecx, esi
push 0
call fcn.00440520
mov eax, dword [esp + 0x28]
mov edx, 0x1c
mov ecx, dword [esp + 0x7c]
mov eax, dword [eax]
dec eax
add eax, ecx
push eax
push ecx
push 0
mov ecx, esi
call fcn.004403f0
add esp, 0x1c
mov edx, 0x11
mov ecx, esi
push dword [esp + 0x5c]
push dword [esp + 0x64]
call fcn.00440520
mov eax, dword [esp + 0x50]
mov ecx, 0x100
neg eax
push 0
sbb eax, eax
and eax, 0x800
mov edx, dword [esp + 0x4c]
or ax, cx
movzx eax, ax
mov ecx, edi
push eax
push 0
push dword [esp + 0x2c]
push dword [esp + 0x88]
call fcn.00485240
mov edx, eax
add esp, 0x1c
mov dword [esp + 0x70], edx
test edx, edx
je 0x4764eb
mov eax, dword [esp + 0x18]
movsx ecx, byte [edx + 0x24]
cmp ecx, dword [eax]
jne 0x476ee6
xor ecx, ecx
mov dword [esp + 0x44], ecx
jmp 0x4772ab
cmp byte [esp + 0xf], 0
je 0x476efc
mov eax, dword [esp + 0x1c]
mov edx, str.DISTINCT
test byte [eax + 6], 1
je 0x476f01
mov edx, str.GROUP_BY
mov ecx, edi
call fcn.004707b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], 1
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
lea ecx, [eax + 1]
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x78], ecx
mov edx, ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x50], eax
test eax, eax
jle 0x476f5a
mov eax, dword [esp + 0xdc]
add eax, 0xc
cmp dword [eax], ecx
jl 0x476f49
inc edx
inc ecx
add eax, 0x18
sub dword [esp + 0x50], 1
jne 0x476f43
mov dword [esp + 0x88], edx
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x7c], eax
cmp edx, ecx
jg 0x476f74
add eax, edx
sub ecx, edx
mov dword [edi + 0x3c], eax
mov dword [edi + 0x38], ecx
jmp 0x476f83
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x7c], ecx
mov dword [edi + 0x48], eax
mov ecx, edi
call fcn.00454180
mov edx, dword [esp + 0x7c]
push 0
push edx
mov edx, dword [esp + 0x20]
call fcn.00455870
mov eax, dword [esp + 0x84]
mov edx, 0x44
add eax, dword [esp + 0x44]
mov ecx, esi
push eax
push dword [esp + 0xd0]
call fcn.00440520
add esp, 0x10
mov dword [esp + 0x3c], 0
cmp dword [esp + 0xe0], 0
jle 0x477063
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
add ecx, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], 0
nop dword [eax + eax]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0xdc]
cmp dword [esi + eax + 0xc], edx
mov esi, dword [esp + 0x64]
jl 0x47704c
push 0
push ecx
mov ecx, dword [esp + 0x3c]
push dword [ecx + eax + 4]
mov edx, dword [ecx + eax]
push dword [ecx + eax + 8]
mov ecx, edi
call fcn.004540d0
mov ecx, dword [esp + 0x60]
add esp, 0x10
cmp ecx, eax
je 0x47703e
push ecx
push eax
mov edx, 0x22
mov ecx, esi
call fcn.00440520
mov ecx, dword [esp + 0x58]
add esp, 8
mov edx, dword [esp + 0x78]
inc edx
inc ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x34], 0x18
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0xe0]
jl 0x476ff0
mov al, byte [edi + 0x13]
test al, al
jne 0x477076
inc dword [edi + 0x48]
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x34], ecx
jmp 0x477086
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x54], ecx
jg 0x4770a4
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x4770db
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x88]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x30
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xc4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x54], ecx
jg 0x477104
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x47713a
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x6a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x47713e
mov edx, dword [esp + 0x34]
test edx, edx
je 0x477172
mov al, byte [edi + 0x13]
mov byte [esp + 0xf], al
cmp al, 8
jae 0x477172
xor ecx, ecx
lea eax, [edi + 0x74]
cmp dword [eax + 0xc], edx
je 0x47716e
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x477152
movzx eax, byte [esp + 0xf]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x13]
jmp 0x477172
mov byte [eax + 6], 1
push dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov ecx, edi
call fcn.00453e30
mov eax, dword [esp + 0x8c]
add esp, 4
cmp eax, dword [edi + 0x38]
jle 0x4771a0
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x3c], eax
mov ecx, dword [esp + 0x70]
call fcn.00485ba0
mov eax, dword [edi + 0x44]
mov dword [esp + 0x50], eax
mov dword [esp + 0xc8], eax
inc eax
mov dword [edi + 0x44], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x4771ce
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x34], edx
jmp 0x4771de
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x54], ecx
jg 0x4771fc
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477233
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x88]
mov word [eax + ecx*4], 0x39
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xc4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x54], ecx
jg 0x47725c
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477293
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x78]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x84]
mov word [eax + ecx*4], 0x67
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, edi
mov byte [esp + 0xc1], 1
call fcn.00454180
mov edx, dword [esp + 0x70]
mov ecx, 1
cmp dword [esp + 0x48], 0
je 0x47731b
mov eax, dword [esp + 0x30]
test byte [eax + 0x3c], 4
jne 0x47731b
test ecx, ecx
jne 0x4772c5
cmp byte [edx + 0x25], cl
je 0x47731b
mov ecx, dword [esi + 4]
mov dword [esp + 0xa0], 0
test ecx, ecx
je 0x47731b
mov eax, dword [esp + 0xb4]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 0x10]
movsx edx, byte [ecx + eax*4 + 1]
lea edi, [ecx + eax*4]
mov ecx, dword [esi]
call fcn.00440a50
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9c
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x14]
dec eax
cmp dword [esp + 0xb4], eax
jne 0x47731b
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x78], eax
call fcn.00454180
mov eax, dword [esp + 0x44]
test eax, eax
je 0x47734f
push dword [esp + 0x34]
mov edx, 0x5f
mov ecx, esi
push dword [esp + 0xc8]
call fcn.00440520
mov eax, dword [esp + 0x4c]
add esp, 8
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x34], edx
cmp dword [ecx], edx
jle 0x47740b
test eax, eax
je 0x4773d0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x54], ecx
jg 0x477387
mov ecx, esi
call fcn.00440370
mov edx, dword [esp + 0x34]
test eax, eax
jne 0x4773b8
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x2e
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x50]
mov dword [ecx + 8], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x4c]
add eax, edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], eax
test edx, edx
jne 0x4773f6
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4773f6
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x20
jmp 0x4773f6
mov eax, dword [esp + 0x4c]
add eax, edx
mov byte [esp + 0xc0], 1
push eax
lea eax, [edx + edx*2]
mov edx, dword [ecx + 4]
mov ecx, edi
mov edx, dword [edx + eax*8]
call fcn.00455680
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x18]
inc edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], edx
cmp edx, dword [ecx]
jl 0x477361
mov eax, dword [esp + 0x38]
test eax, eax
je 0x477415
inc dword [eax]
mov eax, dword [ecx]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x48], edx
cmp dword [eax + 0x54], edx
jg 0x477440
mov ecx, esi
call fcn.00440370
test eax, eax
je 0x47743c
mov edx, 1
jmp 0x477478
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x14]
mov word [eax + ecx*4], 0x29
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x38]
mov ecx, esi
push 0xfffffffffffffffa
push eax
call fcn.00440c10
mov eax, dword [esi + 0x18]
add esp, 8
mov edx, dword [esi + 0x20]
mov dword [esp + 0x38], edx
cmp dword [eax + 0x54], edx
jg 0x4774a7
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x4774d5
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x2a
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [ecx + 8], 0
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x4c]
push dword [eax]
push dword [esp + 0x70]
call fcn.00454390
mov eax, dword [esi + 0x18]
add esp, 8
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x54], ecx
jg 0x47750b
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x47754a
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
add edx, 2
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
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 + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x54], ecx
jg 0x477568
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x4775a4
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x84]
mov word [eax + ecx*4], 0x86
mov byte [eax + ecx*4 + 3], 0
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 + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x54], ecx
jg 0x4775c2
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x4775f6
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x60]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x38]
cmp edx, eax
jbe 0x47760b
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0xc0]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
mov ecx, edi
call fcn.00475f50
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x54], ecx
jg 0x477641
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477675
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [esp + 0x44]
test eax, eax
je 0x4776e0
mov eax, dword [esp + 0xc4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4776aa
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x47772e
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x78]
mov word [eax + ecx*4], 5
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x47772e
mov ecx, dword [esp + 0x70]
call fcn.00485ba0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x47772e
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 0x10]
movsx edx, byte [ecx + eax*4 + 1]
lea edi, [ecx + eax*4]
mov ecx, dword [esi]
call fcn.00440a50
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9c
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x14]
dec eax
cmp dword [esp + 0x10], eax
jne 0x47772e
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x47774c
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x47778b
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
add edx, 2
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
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 + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4777a9
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x4777e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x84]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x54], ecx
jg 0x4777fe
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477837
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
inc edx
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x477855
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477894
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
add edx, 2
mov edi, dword [esp + 0x14]
mov word [eax + ecx*4], 0x12
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
js 0x4778b1
mov edx, dword [eax + 0x70]
test edx, edx
je 0x4778b1
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], edx
cmp dword [eax + 0x54], edx
jg 0x4778da
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x47790c
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x86
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0xc], 0
mov dword [ecx + 4], eax
lea eax, [edx + 2]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x54], ecx
jg 0x47792a
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477969
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
add edx, 2
mov edi, dword [esp + 0x14]
mov word [eax + ecx*4], 0x12
mov byte [eax + ecx*4 + 3], 0
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.00475e80
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
inc edi
mov ecx, dword [esp + 0x14]
push 8
push edi
call fcn.00455fb0
push dword [esp + 0x40]
lea eax, [esp + 0x9c]
push edi
push dword [esp + 0x68]
mov edi, dword [esp + 0x28]
mov ecx, edi
push eax
lea eax, [esp + 0xb8]
push eax
mov eax, dword [esp + 0x38]
mov edx, eax
push 0xffffffffffffffff
push dword [eax]
call fcn.0046fb20
mov eax, dword [esi + 0x18]
add esp, 0x24
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x4779de
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477a19
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
add edx, 2
mov word [eax + ecx*4], 0x12
mov byte [eax + ecx*4 + 3], 0
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 eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
js 0x477a36
mov edx, dword [eax + 0x70]
test edx, edx
je 0x477a36
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc0]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [ecx + 0x58], eax
mov ecx, edi
call fcn.00475d90
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x477a71
mov ecx, esi
call fcn.00440370
test eax, eax
jne 0x477d6f
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 0x12
mov byte [eax + ecx*4 + 3], 0
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 0x477d6f
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc0]
mov dword [esp + 0x6c], 0
call fcn.00474c20
mov dword [esp + 0x4c], eax
test eax, eax
je 0x477c0a
mov ecx, dword [edi]
mov edx, dword [eax + 0x44]
call fcn.0046e5f0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x5c], eax
lea ecx, [eax + 1]
xor eax, eax
mov dword [edi + 0x44], ecx
mov ecx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], eax
call fcn.0045f2a0
mov eax, dword [esp + 0x4c]
mov ecx, edi
mov edx, dword [esp + 0x60]
push dword [eax]
push 0
push dword [eax + 0x20]
call fcn.00459e20
mov edx, dword [esp + 0x58]
add esp, 0xc
test byte [edx + 0x2c], 0x20
je 0x477b3b
mov ecx, edx
call fcn.0045aed0
mov ecx, eax
mov dword [esp + 0x74], ecx
jmp 0x477b3d
xor ecx, ecx
mov eax, dword [edx + 8]
test eax, eax
je 0x477b75
test byte [eax + 0x38], 4
jne 0x477b66
movzx edi, word [eax + 0x30]
cmp di, word [edx + 0x2a]
jge 0x477b66
cmp dword [eax + 0x24], 0
jne 0x477b66
test ecx, ecx
je 0x477b64
cmp di, word [ecx + 0x30]
jge 0x477b66
mov ecx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x477b44
mov edi, dword [esp + 0x14]
mov dword [esp + 0x74], ecx
test ecx, ecx
je 0x477b8d
mov eax, dword [ecx + 0x2c]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x10], eax
call fcn.0045fbe0
mov dword [esp + 0x38], eax
push 1
push dword [esp + 0x64]
mov edx, 0x34
mov ecx, esi
push dword [esp + 0x18]
push dword [esp + 0x68]
call fcn.004406b0
mov eax, dword [esp + 0x48]
add esp, 0x10
test eax, eax
je 0x477bc2
push 0xfffffffffffffffa
push eax
or edx, 0xffffffff
mov ecx, esi
call fcn.00440c10
add esp, 8
mov eax, dword [esp + 0xe8]
mov edx, 0x31
mov ecx, esi
push dword [eax + 8]
push dword [esp + 0x60]
call fcn.00440520
push dword [esp + 0x64]
mov edx, 0x3a
mov ecx, esi
call fcn.004404b0
mov eax, dword [esp + 0x80]
add esp, 0xc
mov edx, dword [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00476300
add esp, 4
jmp 0x477d18
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x2c], 0
jne 0x477c84
lea edx, [esp + 0x60]
lea ecx, [esp + 0xc0]
call fcn.00474bb0
mov byte [esp + 0xf], al
test al, al
je 0x477c7c
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
push 0
call fcn.00452340
mov edx, eax
add esp, 4
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], edx
test edx, edx
je 0x477c84
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x40], 0
jne 0x477c84
mov eax, dword [edx + 4]
cmp byte [esp + 0xf], 1
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov byte [eax], 0x9a
jmp 0x477c84
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.00475d90
mov al, byte [esp + 0xf]
mov ecx, edi
mov edx, dword [esp + 0x40]
push 0
movzx eax, al
push eax
push 0
push dword [esp + 0x68]
push dword [esp + 0x80]
call fcn.00485240
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x477cd3
mov esi, dword [esp + 0x30]
mov ecx, esi
mov edx, dword [esp + 0x6c]
call fcn.00452b00
jmp 0x4764ef
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.00475f50
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x24], 0
jle 0x477d03
push dword [eax + 0x34]
mov edx, 0x10
mov ecx, esi
push 0
call fcn.00440520
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, eax
call fcn.00485ba0
lea edx, [esp + 0xc0]
mov ecx, edi
call fcn.00475e80
mov edx, dword [esp + 0x80]
mov ecx, edi
push 8
push dword [esp + 0x88]
mov dword [esp + 0xa8], 0
call fcn.00455fb0
mov eax, dword [esp + 0x8c]
mov ecx, edi
push eax
push eax
push dword [esp + 0x68]
mov eax, dword [esp + 0x30]
mov edx, eax
push 0
push 0
push 0xffffffffffffffff
push dword [eax]
call fcn.0046fb20
mov edx, dword [esp + 0x90]
add esp, 0x24
mov ecx, dword [esp + 0x30]
call fcn.00452b00
mov eax, dword [esi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x84]
mov dword [esp + 0x10], eax
js 0x477d8f
mov edx, dword [eax + 0x70]
test edx, edx
je 0x477d8f
mov eax, dword [esi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0x54]
cmp al, 3
jne 0x477de6
cmp byte [edi + 0x1c2], 2
jne 0x477de6
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 8]
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push dword [eax]
call fcn.004261c0
add esp, 0xc
mov edx, 0x9d
mov ecx, edi
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push dword [eax + 0x1d0]
call fcn.00440590
add esp, 0x14
cmp dword [esp + 0xa0], 0
je 0x477e67
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x1c2], 2
jne 0x477e49
cmp dword [esp + 0xa4], 0
mov edx, str.ORDER_BY
mov edi, dword [ecx + 8]
mov eax, str.RIGHT_PART_OF_ORDER_BY
cmovle eax, edx
push eax
push str.USE_TEMP_B_TREE_FOR__s
push dword [ecx]
call fcn.004261c0
add esp, 0xc
mov edx, 0x9d
mov ecx, edi
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push dword [eax + 0x1d0]
call fcn.00440590
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, dword [esp + 0x68]
push dword [esp + 0x58]
mov edx, dword [esp + 0x20]
push dword [eax]
lea eax, [esp + 0xa8]
push eax
call fcn.00470890
add esp, 0xc
mov edx, dword [esi + 0x18]
or edi, 0xffffffff
sub edi, dword [esp + 0x9c]
js 0x477e83
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x477e83
mov eax, dword [esi + 0x20]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [esp + 0x3c], 0
mov dword [edx + 0x58], eax
jmp 0x4764eb
mov esi, eax
jmp 0x4764ef
mov esi, dword [esp + 0x30]
jmp 0x4764f3
mov esi, eax
jmp 0x4764f3
push ecx
call dword [0x56f9f8]
mov ecx, dword [esi + 0x200]
add esp, 4
add dword [ecx], eax
jmp 0x477ef1
cmp ecx, dword [esi + 0x10c]
jb 0x477ee8
cmp ecx, dword [esi + 0x110]
jae 0x477ee8
mov eax, dword [esi + 0x108]
mov dword [ecx], eax
dec dword [esi + 0xf4]
mov dword [esi + 0x108], ecx
jmp 0x477ef1
push ecx
call fcn.00424650
add esp, 4
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x477fa9
cmp dword [esi + 0x200], 0
je 0x477f66
cmp ecx, dword [esi + 0x10c]
jb 0x477f3e
cmp ecx, dword [esi + 0x110]
jae 0x477f3e
mov ecx, dword [esi + 0x200]
movzx eax, word [esi + 0xf0]
add dword [ecx], eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x56f9f8]
mov ecx, dword [esi + 0x200]
add esp, 4
add dword [ecx], eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret
cmp ecx, dword [esi + 0x10c]
jb 0x477fa0
cmp ecx, dword [esi + 0x110]
jae 0x477fa0
mov eax, dword [esi + 0x108]
mov dword [ecx], eax
mov eax, edi
dec dword [esi + 0xf4]
mov dword [esi + 0x108], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00424650
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret