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

Disassembly:
sub esp, 0x64
push ebp
mov ebp, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x690]
cmp dword [ebp + 0x68c], ecx
push esi
je 0x46cd74
lea eax, [ecx + ecx*2]
shl eax, 4
mov esi, dword [eax + ebp + 0x6b8]
lea edx, [eax + ebp + 0x6a0]
mov eax, esi
sub eax, ecx
mov ecx, dword [edx + 0x1c]
mov edx, dword [esp + 0x78]
mov dword [ebp + 0x690], esi
pop esi
mov dword [edx], ecx
pop ebp
add esp, 0x64
ret
push edi
xor edi, edi
cmp dword [ebp + 0x31938], edi
mov dword [ebp + 0x68c], edi
mov dword [ebp + 0x690], edi
jne 0x46cda0
lea eax, [esp + 0x10]
push eax
mov esi, ebp
call fcn.0046b7c0
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x46cdb4
mov ecx, dword [ebp + 0x694]
mov edx, dword [ebp + 0x698]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 0x69c]
cmp eax, 2
mov dword [esp + 0x20], eax
jae 0x46cdd9
mov eax, dword [esp + 0x7c]
pop edi
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
pop ebp
add esp, 0x64
ret
cmp eax, 0x111
jbe 0x46cde8
mov dword [esp + 0x20], 0x111
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
call edx
mov esi, eax
mov al, byte [esi - 1]
sub esi, 1
add esp, 4
lea ecx, [ebp + 0x3193c]
mov byte [esp + 0x74], al
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], ecx
push ebx
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx]
mov dl, byte [esp + 0x78]
mov ecx, esi
sub ecx, ebx
sub ecx, 1
cmp dl, byte [ecx]
mov dword [esp + eax + 0x54], ebx
jne 0x46ce80
mov dl, byte [esi + 1]
cmp dl, byte [ecx + 1]
jne 0x46ce80
mov ebx, 2
cmp dword [esp + 0x24], ebx
jbe 0x46ce64
lea edi, [esi + 2]
sub ecx, esi
mov dl, byte [edi]
cmp dl, byte [ecx + edi]
jne 0x46ce64
add ebx, 1
add edi, 1
cmp ebx, dword [esp + 0x24]
jb 0x46ce51
mov ecx, dword [esp + 0x38]
mov dword [esp + eax + 0x64], ebx
cmp ebx, dword [esp + ecx + 0x64]
jbe 0x46ce88
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jmp 0x46ce88
mov dword [esp + eax + 0x64], 0
add dword [esp + 0x28], 1
add dword [esp + 0x1c], 4
add eax, 4
cmp eax, 0x10
jb 0x46ce20
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + ecx*4 + 0x64]
mov eax, dword [ebp + 0x31934]
cmp ebx, eax
mov dword [esp + 0x40], ebx
jb 0x46cedd
mov eax, dword [esp + 0x80]
mov dword [eax], ecx
lea eax, [ebx - 1]
test eax, eax
je 0x46ced3
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add dword [ebp + 0x31938], eax
push eax
push ecx
call edx
add esp, 8
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x64
ret
mov edi, dword [esp + 0x20]
cmp edi, eax
jb 0x46cf20
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + eax*4 + 0x3109c]
mov edx, dword [esp + 0x80]
add ecx, 4
lea eax, [edi - 1]
test eax, eax
mov dword [edx], ecx
je 0x46cf16
add dword [ebp + 0x31938], eax
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
call ecx
add esp, 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x64
ret
mov edx, esi
sub edx, dword [esp + 0x54]
cmp edi, 2
mov dl, byte [edx - 1]
mov byte [esp + 0x13], dl
jae 0x46cf57
cmp byte [esp + 0x78], dl
je 0x46cf57
cmp ebx, 2
jae 0x46cf57
mov eax, dword [esp + 0x80]
pop ebx
pop edi
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
pop ebp
add esp, 0x64
ret
mov ebx, dword [ebp + 0x3194c]
mov eax, dword [ebp + 0x32598]
mov edi, dword [esp + 0x7c]
and edi, dword [ebp + 0x325a8]
mov dword [ebp + 0x6a4], ebx
movzx esi, byte [esi - 1]
mov ecx, 8
sub cl, al
shr esi, cl
mov ecx, dword [ebp + 0x325a4]
and ecx, dword [esp + 0x7c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x44], ecx
mov ecx, eax
mov eax, dword [esp + 0x44]
shl eax, cl
movzx ecx, byte [esp + 0x78]
add esi, eax
imul esi, esi, 0x600
add esi, dword [ebp + 0x325ac]
cmp ebx, 7
jb 0x46cfca
movzx eax, dl
lea edi, [ebp + 0x30ea0]
push esi
call fcn.0046b950
mov edi, dword [esp + 0x2c]
add esp, 4
jmp 0x46cfd5
lea edx, [ebp + 0x30ea0]
call fcn.0046b9b0
mov ecx, ebx
shl ecx, 4
add ecx, edi
movzx edx, word [ebp + ecx*2 + 0x325b0]
lea ecx, [ebp + ecx*2 + 0x325b0]
shr edx, 4
mov edx, dword [ebp + edx*4 + 0x30ea0]
add edx, eax
mov dword [ebp + 0x6d0], edx
mov dl, byte [esp + 0x78]
mov dword [ebp + 0x6ec], 0xffffffff
xor esi, esi
mov dword [ebp + 0x6d8], esi
movzx eax, word [ecx]
movzx ecx, word [ebp + ebx*2 + 0x32730]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
mov ecx, dword [ebp + ecx*4 + 0x30ea0]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add ecx, eax
cmp byte [esp + 0x13], dl
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
jne 0x46d094
mov eax, ebx
shl eax, 4
add eax, edi
movzx edx, word [ebp + eax*2 + 0x32790]
movzx edi, word [ebp + ebx*2 + 0x32748]
shr edx, 4
mov eax, dword [ebp + edx*4 + 0x30ea0]
shr edi, 4
add eax, dword [ebp + edi*4 + 0x30ea0]
add eax, ecx
cmp eax, dword [ebp + 0x6d0]
jae 0x46d094
mov dword [ebp + 0x6d0], eax
mov dword [ebp + 0x6ec], esi
mov dword [ebp + 0x6d8], esi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jb 0x46d0a8
mov eax, ecx
mov dword [esp + 0x18], ecx
jmp 0x46d0ac
mov dword [esp + 0x18], eax
cmp eax, 2
jae 0x46d0cd
mov eax, dword [ebp + 0x6ec]
mov ecx, dword [esp + 0x80]
pop ebx
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
add esp, 0x64
ret
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [ebp + 0x6e8], esi
mov dword [ebp + 0x6c0], edx
mov edx, dword [esp + 0x5c]
mov dword [ebp + 0x6c8], edx
mov dword [ebp + 0x6c4], ecx
mov ecx, dword [esp + 0x60]
lea edx, [eax + eax*2]
shl edx, 4
mov dword [ebp + 0x6cc], ecx
lea ecx, [edx + ebp + 0x6a0]
jmp 0x46d110
mov dword [ecx], 0x40000000
sub eax, 1
sub ecx, 0x30
cmp eax, 2
jae 0x46d110
xor edi, edi
mov esi, dword [esp + edi*4 + 0x64]
cmp esi, 2
jb 0x46d187
mov ebx, dword [esp + 0x28]
mov edx, dword [ebp + 0x3194c]
push ebx
mov eax, edi
mov ecx, ebp
call fcn.0046b6e0
imul ebx, ebx, 0x110
add eax, dword [esp + 0x48]
add ebx, esi
lea ecx, [esi + esi*2]
add esp, 4
shl ecx, 4
lea ebx, [ebp + ebx*4 + 0x37858]
lea ecx, [ecx + ebp + 0x6bc]
mov edx, dword [ebx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x46d179
mov dword [ecx - 0x1c], edx
xor edx, edx
mov dword [ecx - 4], edx
mov dword [ecx], edi
mov dword [ecx - 0x14], edx
sub esi, 1
sub ebx, 4
sub ecx, 0x30
cmp esi, 2
jae 0x46d163
add edi, 1
cmp edi, 4
jb 0x46d123
mov edx, dword [ebp + 0x3194c]
movzx eax, word [ebp + edx*2 + 0x32730]
mov ebx, dword [esp + 0x64]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
add eax, dword [esp + 0x3c]
cmp ebx, 2
mov dword [esp + 0x44], eax
jb 0x46d1bd
add ebx, 1
jmp 0x46d1c2
mov ebx, 2
cmp ebx, dword [esp + 0x20]
ja 0x46d2cd
xor edi, edi
cmp ebx, dword [ebp + 0x310a0]
mov dword [esp + 0x78], edi
jbe 0x46d1f0
lea ebx, [ebx]
add edi, 2
cmp ebx, dword [ebp + edi*4 + 0x310a0]
ja 0x46d1e0
mov dword [esp + 0x78], edi
mov ecx, dword [esp + 0x28]
imul ecx, ecx, 0x110
add ecx, ebx
lea ecx, [ebp + ecx*4 + 0x33010]
lea edx, [ebx + ebx*2]
shl edx, 4
mov dword [esp + 0x28], ecx
lea ecx, [edx + ebp + 0x6bc]
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov esi, dword [ebp + edi*4 + 0x310a4]
add edx, eax
cmp ebx, 5
mov dword [esp + 0x38], ecx
lea eax, [ebx - 2]
jb 0x46d234
mov eax, 3
cmp esi, 0x80
jae 0x46d24a
shl eax, 7
add eax, esi
add edx, dword [ebp + eax*4 + 0x31d50]
jmp 0x46d28e
mov ecx, 0x1ffff
sub ecx, esi
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov edi, esi
shr edi, cl
shl eax, 5
add eax, ecx
mov ecx, esi
movzx edi, byte [edi + ebp + 0x306a0]
lea eax, [edi + eax*2 + 0xc654]
mov eax, dword [ebp + eax*4]
mov edi, dword [esp + 0x78]
and ecx, 0xf
add eax, dword [ebp + ecx*4 + 0x32550]
mov ecx, dword [esp + 0x38]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x46d2a3
xor eax, eax
add esi, 4
mov dword [ecx - 0x1c], edx
mov dword [ecx - 4], eax
mov dword [ecx], esi
mov dword [ecx - 0x14], eax
cmp ebx, dword [ebp + edi*4 + 0x310a0]
jne 0x46d2b9
add edi, 2
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x78], edi
je 0x46d2cd
add dword [esp + 0x28], 4
mov eax, dword [esp + 0x44]
add ebx, 1
add ecx, 0x30
jmp 0x46d214
mov eax, 1
cmp dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
je 0x46dfb9
lea ecx, [esp + 0x38]
push ecx
mov esi, ebp
call fcn.0046b7c0
add esp, 4
cmp eax, dword [ebp + 0x31934]
mov dword [esp + 0x4c], eax
jae 0x46dfa9
mov esi, dword [esp + 0x14]
add dword [esp + 0x7c], 1
lea edx, [esi + esi*2]
shl edx, 4
mov edi, dword [edx + ebp + 0x6a8]
test edi, edi
mov eax, dword [edx + ebp + 0x6b8]
lea ebx, [edx + ebp]
je 0x46d381
sub eax, 1
cmp dword [ebx + 0x6ac], 0
je 0x46d36b
mov ecx, dword [ebx + 0x6b0]
lea ecx, [ecx + ecx*2]
shl ecx, 4
cmp dword [ebx + 0x6b4], 4
mov ecx, dword [ecx + ebp + 0x6a4]
jae 0x46d35b
mov ecx, dword [ecx*4 + 0x4e0d00]
mov edx, dword [ecx*4 + 0x4e0ca0]
jmp 0x46d38e
mov ecx, dword [ecx*4 + 0x4e0cd0]
mov edx, dword [ecx*4 + 0x4e0ca0]
jmp 0x46d38e
lea edx, [eax + eax*2]
shl edx, 4
mov ecx, dword [edx + ebp + 0x6a4]
mov edx, dword [ecx*4 + 0x4e0ca0]
jmp 0x46d38e
lea ecx, [eax + eax*2]
shl ecx, 4
mov edx, dword [ecx + ebp + 0x6a4]
add esi, 0xffffffff
cmp eax, esi
jne 0x46d3be
cmp dword [ebx + 0x6bc], 0
jne 0x46d3ae
mov edx, dword [edx*4 + 0x4e0d30]
mov dword [esp + 0x1c], edx
jmp 0x46d47c
mov eax, dword [edx*4 + 0x4e0ca0]
mov dword [esp + 0x1c], eax
jmp 0x46d47c
test edi, edi
je 0x46d3e4
cmp dword [ebx + 0x6ac], 0
je 0x46d3e4
mov ecx, dword [ebx + 0x6b4]
mov eax, dword [ebx + 0x6b0]
mov edx, dword [edx*4 + 0x4e0d00]
mov dword [esp + 0x78], ecx
jmp 0x46d40f
mov ecx, dword [ebx + 0x6bc]
cmp ecx, 4
mov dword [esp + 0x78], ecx
jae 0x46d404
mov ecx, dword [edx*4 + 0x4e0d00]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x78]
jmp 0x46d413
mov edx, dword [edx*4 + 0x4e0cd0]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
lea eax, [eax + eax*2]
shl eax, 4
cmp ecx, 4
lea edx, [eax + ebp + 0x6a0]
jae 0x46d460
mov eax, dword [edx + ecx*4 + 0x20]
mov dword [esp + 0x54], eax
mov eax, 1
cmp ecx, eax
jb 0x46d44b
mov eax, dword [esp + 0x78]
add eax, 1
cmp eax, 4
lea esi, [edx + 0x20]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
jae 0x46d47c
lea edx, [edx + eax*4 + 0x20]
mov ecx, 4
lea edi, [esp + eax*4 + 0x54]
sub ecx, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x46d47c
mov eax, dword [edx + 0x24]
add ecx, 0xfffffffc
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 0x20]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x54]
mov dword [ebx + 0x6a4], edx
mov edx, dword [esp + 0x60]
mov dword [ebx + 0x6c4], eax
mov eax, dword [ebx + 0x6a0]
mov dword [ebx + 0x6c0], esi
mov dword [ebx + 0x6c8], ecx
mov dword [ebx + 0x6cc], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0
call edx
mov edi, eax
mov dl, byte [edi - 1]
sub edi, 1
mov eax, edi
sub eax, esi
mov cl, byte [eax - 1]
lea esi, [eax - 1]
mov eax, dword [esp + 0x80]
and eax, dword [ebp + 0x325a8]
mov byte [esp + 0x7c], cl
mov ecx, dword [esp + 0x20]
shl ecx, 4
mov dword [esp + 0x34], eax
add eax, ecx
mov dword [esp + 0x44], eax
movzx eax, word [ebp + eax*2 + 0x325b0]
shr eax, 4
mov dword [esp + 0x24], edi
movzx edi, byte [edi - 1]
mov dword [esp + 0x40], esi
mov esi, dword [ebp + eax*4 + 0x30ea0]
mov eax, dword [ebp + 0x32598]
add esi, dword [esp + 0x38]
mov ecx, 8
sub cl, al
shr edi, cl
mov ecx, dword [ebp + 0x325a4]
and ecx, dword [esp + 0x80]
add esp, 4
mov dword [esp + 0x44], ecx
mov ecx, eax
mov eax, dword [esp + 0x44]
shl eax, cl
mov byte [esp + 0x13], dl
mov dword [esp + 0x2c], esi
movzx ecx, dl
add edi, eax
imul edi, edi, 0x600
add edi, dword [ebp + 0x325ac]
cmp dword [esp + 0x1c], 7
jb 0x46d580
movzx eax, byte [esp + 0x78]
push edi
lea edi, [ebp + 0x30ea0]
call fcn.0046b950
add esp, 4
jmp 0x46d591
lea edx, [ebp + 0x30ea0]
mov esi, edi
call fcn.0046b9b0
mov esi, dword [esp + 0x2c]
add esi, eax
cmp esi, dword [ebx + 0x6d0]
mov dword [esp + 0x2c], esi
jae 0x46d5cb
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x6d0], esi
mov dword [ebx + 0x6e8], ecx
mov dword [ebx + 0x6ec], 0xffffffff
mov dword [ebx + 0x6d8], 0
mov dword [esp + 0x28], 1
mov edi, dword [esp + 0x40]
movzx edx, word [ebp + edi*2 + 0x325b0]
mov ecx, dword [esp + 0x1c]
xor edx, 0x7f0
shr edx, 4
mov eax, dword [ebp + edx*4 + 0x30ea0]
movzx edx, word [ebp + ecx*2 + 0x32730]
add eax, dword [esp + 0x34]
xor edx, 0x7f0
shr edx, 4
mov esi, dword [ebp + edx*4 + 0x30ea0]
mov edx, dword [esp + 0x14]
add esi, eax
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x13]
cmp byte [esp + 0x78], al
mov dword [esp + 0x48], esi
jne 0x46d680
cmp dword [ebx + 0x6e8], edx
jae 0x46d630
cmp dword [ebx + 0x6ec], 0
je 0x46d680
movzx ecx, word [ebp + ecx*2 + 0x32748]
movzx edi, word [ebp + edi*2 + 0x32790]
shr ecx, 4
mov eax, dword [ebp + ecx*4 + 0x30ea0]
shr edi, 4
add eax, dword [ebp + edi*4 + 0x30ea0]
add eax, esi
cmp eax, dword [ebx + 0x6d0]
ja 0x46d680
mov dword [ebx + 0x6d0], eax
xor eax, eax
mov dword [ebx + 0x6e8], edx
mov dword [ebx + 0x6ec], eax
mov dword [ebx + 0x6d8], eax
mov dword [esp + 0x28], 1
mov ecx, dword [ebp + 0x69c]
mov eax, 0xfff
sub eax, edx
cmp eax, ecx
mov dword [esp + 0x34], ecx
jae 0x46d69b
mov ecx, eax
mov dword [esp + 0x34], eax
cmp ecx, 2
jb 0x46df92
mov esi, dword [ebp + 0x31934]
cmp ecx, esi
mov dword [esp + 0x24], ecx
jbe 0x46d6b6
mov dword [esp + 0x24], esi
cmp dword [esp + 0x28], 0
jne 0x46d820
mov dl, byte [esp + 0x13]
cmp byte [esp + 0x78], dl
je 0x46d820
add esi, 1
cmp esi, ecx
cmova esi, ecx
mov ecx, 1
cmp esi, ecx
jbe 0x46d701
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
lea eax, [edx + 1]
sub edi, edx
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [edi + eax]
jne 0x46d701
add ecx, 1
add eax, 1
cmp ecx, esi
jb 0x46d6f0
lea eax, [ecx - 1]
cmp eax, 2
mov dword [esp + 0x78], eax
jb 0x46d820
mov eax, dword [esp + 0x1c]
mov eax, dword [eax*4 + 0x4e0ca0]
mov ecx, dword [esp + 0x7c]
movzx esi, word [ebp + eax*2 + 0x32730]
mov edi, dword [esp + 0x14]
add ecx, 1
and ecx, dword [ebp + 0x325a8]
mov edx, eax
shl edx, 4
lea ebx, [edx + ecx]
movzx edx, word [ebp + ebx*2 + 0x325b0]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebp + edx*4 + 0x30ea0]
xor esi, 0x7f0
shr esi, 4
add edx, dword [ebp + esi*4 + 0x30ea0]
mov esi, dword [esp + 0x78]
add edx, dword [esp + 0x2c]
lea esi, [esi + edi + 1]
mov edi, dword [esp + 0x18]
cmp edi, esi
mov dword [esp + 0x40], ebx
jae 0x46d7b2
lea ebx, [edi + edi*2]
shl ebx, 4
lea ebx, [ebx + ebp + 0x6a0]
mov dword [esp + 0x44], ebx
mov ebx, esi
sub ebx, edi
add edi, ebx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x44]
lea esp, [esp]
add edi, 0x30
sub ebx, 1
mov dword [edi], 0x40000000
jne 0x46d7a0
mov ebx, dword [esp + 0x40]
movzx edi, word [ebp + ebx*2 + 0x32790]
imul ecx, ecx, 0x110
movzx ebx, word [ebp + eax*2 + 0x32748]
add ecx, dword [esp + 0x78]
xor edi, 0x7f0
shr edi, 4
mov eax, dword [ebp + edi*4 + 0x30ea0]
shr ebx, 4
add eax, dword [ebp + ebx*4 + 0x30ea0]
add eax, dword [ebp + ecx*4 + 0x37858]
lea ecx, [esi + esi*2]
shl ecx, 4
add eax, edx
cmp eax, dword [ecx + ebp + 0x6a0]
lea ecx, [ecx + ebp + 0x6a0]
jae 0x46d820
mov edx, dword [esp + 0x14]
add edx, 1
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], eax
mov dword [esp + 0x3c], 2
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
mov eax, ecx
sub eax, dword [esp + edx*4 + 0x54]
mov cl, byte [ecx]
sub eax, 1
cmp cl, byte [eax]
mov dword [esp + 0x28], eax
jne 0x46db71
mov edx, dword [esp + 0x20]
mov al, byte [edx + 1]
mov ecx, dword [esp + 0x28]
cmp al, byte [ecx + 1]
jne 0x46db71
mov esi, dword [esp + 0x24]
mov edi, 2
cmp esi, edi
jbe 0x46d886
lea eax, [edx + 2]
sub ecx, edx
mov dl, byte [eax]
cmp dl, byte [ecx + eax]
jne 0x46d886
add edi, 1
add eax, 1
cmp edi, esi
jb 0x46d875
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ebx, [edi + eax]
cmp edx, ebx
jae 0x46d8be
lea ecx, [edx + edx*2]
mov eax, ebx
shl ecx, 4
sub eax, edx
add edx, eax
lea ecx, [ecx + ebp + 0x6a0]
mov dword [esp + 0x18], edx
lea esp, [esp]
add ecx, 0x30
sub eax, 1
mov dword [ecx], 0x40000000
jne 0x46d8b0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x20]
mov ecx, ebp
mov esi, edi
call fcn.0046b6e0
mov ecx, dword [esp + 0x34]
add eax, dword [esp + 0x4c]
imul ecx, ecx, 0x110
mov dword [esp + 0x48], ecx
add ecx, edi
lea edx, [ebp + ecx*4 + 0x37858]
lea ecx, [ebx + ebx*2]
add esp, 4
shl ecx, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edx
lea ecx, [ecx + ebp + 0x6bc]
mov ebx, edx
lea esp, [esp]
mov edx, dword [ebx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x46d930
mov dword [ecx - 0x1c], edx
mov edx, dword [esp + 0x14]
mov dword [ecx - 4], edx
mov edx, dword [esp + 0x78]
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
sub edi, 1
sub ebx, 4
sub ecx, 0x30
cmp edi, 2
jae 0x46d910
cmp dword [esp + 0x78], 0
jne 0x46d94c
lea eax, [esi + 1]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebp + 0x31934]
mov edx, dword [esp + 0x34]
lea eax, [esi + 1]
add ecx, eax
cmp ecx, edx
mov dword [esp + 0x2c], ecx
jbe 0x46d969
mov ecx, edx
mov dword [esp + 0x2c], edx
cmp eax, ecx
mov ecx, dword [esp + 0x20]
jae 0x46d993
mov edx, dword [esp + 0x28]
lea edi, [eax + ecx]
sub edx, ecx
lea ebx, [ebx]
mov bl, byte [edi]
cmp bl, byte [edi + edx]
jne 0x46d993
add eax, 1
add edi, 1
cmp eax, dword [esp + 0x2c]
jb 0x46d980
or edx, 0xffffffff
sub edx, esi
add eax, edx
cmp eax, 2
mov dword [esp + 0x2c], eax
jb 0x46db71
movzx edi, byte [ecx + esi - 1]
movzx ebx, byte [esi + ecx]
mov edx, dword [ebp + 0x32598]
mov eax, dword [esp + 0x28]
mov ecx, 8
sub cl, dl
mov edx, dword [ebp + 0x325a4]
shr edi, cl
mov ecx, dword [esp + 0x7c]
movzx eax, byte [esi + eax]
add ecx, esi
and edx, ecx
mov ecx, dword [ebp + 0x32598]
shl edx, cl
mov ecx, ebx
add edi, edx
imul edi, edi, 0x600
add edi, dword [ebp + 0x325ac]
push edi
lea edi, [ebp + 0x30ea0]
call fcn.0046b950
mov edx, dword [ebp + 0x325a8]
mov ecx, dword [esp + 0x80]
mov edi, edx
add ecx, esi
and edi, ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx*4 + 0x4e0d00]
mov ebx, ecx
shl ebx, 4
add edi, ebx
movzx edi, word [ebp + edi*2 + 0x325b0]
shr edi, 4
add eax, dword [ebp + edi*4 + 0x30ea0]
mov edi, dword [esp + 0x48]
add edi, esi
add eax, dword [ebp + edi*4 + 0x37858]
mov edi, dword [ecx*4 + 0x4e0ca0]
mov ecx, dword [esp + 0x80]
movzx ebx, word [ebp + edi*2 + 0x32730]
add eax, dword [esp + 0x44]
lea ecx, [esi + ecx + 1]
and ecx, edx
mov edx, edi
shl edx, 4
add edx, ecx
mov dword [esp + 0x2c], edx
movzx edx, word [ebp + edx*2 + 0x325b0]
xor edx, 0x7f0
xor ebx, 0x7f0
shr edx, 4
shr ebx, 4
mov dword [esp + 0x48], edx
mov edx, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x48]
add edx, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x30]
add eax, esi
lea ebx, [eax + ebx + 1]
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x40], ebx
jae 0x46daf2
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + ebp + 0x6a0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
sub ebx, eax
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
jmp 0x46dae0
add eax, 0x30
sub ebx, 1
mov dword [eax], 0x40000000
jne 0x46dae0
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
imul ecx, ecx, 0x110
movzx eax, word [ebp + eax*2 + 0x32790]
movzx edi, word [ebp + edi*2 + 0x32748]
add ecx, dword [esp + 0x2c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
shr edi, 4
add eax, dword [ebp + edi*4 + 0x30ea0]
add eax, dword [ebp + ecx*4 + 0x37858]
lea ecx, [ebx + ebx*2]
shl ecx, 4
add eax, edx
cmp eax, dword [ecx + ebp + 0x6a0]
lea ecx, [ecx + ebp + 0x6a0]
jae 0x46db71
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
lea edx, [esi + eax + 1]
mov dword [ecx + 0x18], edx
mov edx, 1
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x1c], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x78]
add eax, 1
cmp eax, 4
mov dword [esp + 0x78], eax
jb 0x46d830
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jbe 0x46dbba
xor edx, edx
cmp ecx, dword [ebp + 0x310a0]
mov eax, ecx
jbe 0x46dbac
lea ecx, [ecx]
add edx, 2
cmp ecx, dword [ebp + edx*4 + 0x310a0]
ja 0x46dba0
mov dword [ebp + edx*4 + 0x310a0], ecx
add edx, 2
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x3c]
cmp eax, edx
jb 0x46df92
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ebp + ecx*2 + 0x32730]
shr ecx, 4
mov ecx, dword [ebp + ecx*4 + 0x30ea0]
add ecx, dword [esp + 0x50]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jae 0x46dc1e
lea esi, [ecx + ecx*2]
shl esi, 4
sub eax, ecx
add ecx, eax
lea esi, [esi + ebp + 0x6a0]
mov dword [esp + 0x18], ecx
jmp 0x46dc10
add esi, 0x30
sub eax, 1
mov dword [esi], 0x40000000
jne 0x46dc10
xor eax, eax
cmp edx, dword [ebp + 0x310a0]
mov dword [esp + 0x78], eax
jbe 0x46dc40
lea esp, [esp]
add eax, 2
cmp edx, dword [ebp + eax*4 + 0x310a0]
ja 0x46dc30
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
mov eax, dword [ebp + eax*4 + 0x310a4]
mov ecx, 0x1ffff
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov esi, eax
shr esi, cl
lea edi, [edx + 1]
mov dword [esp + 0x28], eax
movzx esi, byte [esi + ebp + 0x306a0]
lea ecx, [esi + ecx*2]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x30]
imul ecx, ecx, 0x110
add ecx, edx
lea ecx, [ebp + ecx*4 + 0x33010]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x14]
add ecx, edx
lea edx, [ecx + ecx*2]
shl edx, 4
lea ebx, [edx + ebp + 0x6bc]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
add edx, dword [esp + 0x50]
lea ecx, [edi - 1]
cmp ecx, 5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], edi
lea ecx, [edi - 3]
jb 0x46dcc3
mov ecx, 3
cmp eax, 0x80
jae 0x46dcd8
shl ecx, 7
add ecx, eax
add edx, dword [ebp + ecx*4 + 0x31d50]
jmp 0x46dcf4
shl ecx, 6
add ecx, dword [esp + 0x40]
mov esi, eax
mov ecx, dword [ebp + ecx*4 + 0x31950]
and esi, 0xf
add ecx, dword [ebp + esi*4 + 0x32550]
add edx, ecx
cmp edx, dword [ebx - 0x1c]
mov dword [esp + 0x3c], edx
jae 0x46dd13
mov dword [ebx - 0x1c], edx
mov edx, dword [esp + 0x14]
lea ecx, [eax + 4]
mov dword [ebx - 4], edx
mov dword [ebx], ecx
mov dword [ebx - 0x14], 0
mov edx, dword [esp + 0x78]
lea ecx, [edi - 1]
cmp ecx, dword [ebp + edx*4 + 0x310a0]
jne 0x46df82
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [ebp + 0x31934]
add eax, edi
sub ecx, 1
cmp eax, edx
cmova eax, edx
cmp edi, eax
mov esi, edi
jae 0x46dd6f
mov ebx, dword [esp + 0x20]
sub ebx, ecx
lea edx, [edi + ecx]
mov dword [esp + 0x4c], ebx
jmp 0x46dd5a
mov ebx, dword [esp + 0x4c]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
jne 0x46dd6b
add esi, 1
add edx, 1
cmp esi, eax
jb 0x46dd56
mov ebx, dword [esp + 0x24]
or edx, 0xffffffff
lea eax, [edi - 1]
sub edx, eax
add esi, edx
cmp esi, 2
mov dword [esp + 0x2c], esi
jb 0x46df3a
mov eax, dword [esp + 0x7c]
mov esi, dword [ebp + 0x325a8]
mov edx, dword [ebp + 0x32598]
lea eax, [edi + eax - 1]
mov dword [esp + 0x4c], eax
and esi, eax
movzx eax, byte [edi + ecx - 1]
mov ecx, dword [esp + 0x20]
movzx ebx, byte [ecx + edi - 1]
movzx edi, byte [edi + ecx - 2]
mov ecx, 8
sub cl, dl
mov edx, dword [ebp + 0x325a4]
and edx, dword [esp + 0x4c]
shr edi, cl
mov ecx, dword [ebp + 0x32598]
shl edx, cl
mov ecx, ebx
add edi, edx
imul edi, edi, 0x600
add edi, dword [ebp + 0x325ac]
push edi
lea edi, [ebp + 0x30ea0]
call fcn.0046b950
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx*4 + 0x4e0cd0]
mov ebx, dword [ecx*4 + 0x4e0ca0]
mov edx, ecx
shl edx, 4
add edx, esi
movzx edx, word [ebp + edx*2 + 0x325b0]
shr edx, 4
add eax, dword [ebp + edx*4 + 0x30ea0]
mov edi, dword [esp + 0x48]
add eax, dword [esp + 0x40]
lea ecx, [esi + 1]
and ecx, dword [ebp + 0x325a8]
movzx esi, word [ebp + ebx*2 + 0x32730]
mov edx, ebx
shl edx, 4
add edx, ecx
mov dword [esp + 0x40], edx
movzx edx, word [ebp + edx*2 + 0x325b0]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebp + edx*4 + 0x30ea0]
xor esi, 0x7f0
shr esi, 4
add edx, dword [ebp + esi*4 + 0x30ea0]
mov esi, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x30]
lea eax, [eax + edi - 1]
lea esi, [eax + esi + 1]
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x48], esi
jae 0x46deb5
lea eax, [eax + eax*2]
shl eax, 4
lea eax, [eax + ebp + 0x6a0]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
sub esi, eax
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
add eax, 0x30
sub esi, 1
mov dword [eax], 0x40000000
jne 0x46dea3
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
imul ecx, ecx, 0x110
movzx eax, word [ebp + eax*2 + 0x32790]
movzx ebx, word [ebp + ebx*2 + 0x32748]
add ecx, dword [esp + 0x2c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30ea0]
shr ebx, 4
add eax, dword [ebp + ebx*4 + 0x30ea0]
mov ebx, dword [esp + 0x24]
add eax, dword [ebp + ecx*4 + 0x37858]
lea ecx, [esi + esi*2]
shl ecx, 4
add eax, edx
cmp eax, dword [ecx + ebp + 0x6a0]
lea ecx, [ecx + ebp + 0x6a0]
jae 0x46df3a
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
lea eax, [edi + edx]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 0x18], eax
mov eax, 1
add edx, 4
mov dword [ecx + 0x1c], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x78]
add eax, 2
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x78], eax
je 0x46df92
mov eax, dword [ebp + eax*4 + 0x310a4]
cmp eax, 0x80
mov dword [esp + 0x28], eax
jb 0x46df82
mov ecx, 0x1ffff
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov edx, eax
shr edx, cl
movzx edx, byte [edx + ebp + 0x306a0]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x40], ecx
add dword [esp + 0x30], 4
add ebx, 0x30
add edi, 1
jmp 0x46dca1
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jne 0x46d2e0
jmp 0x46dfb9
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x698], ecx
mov dword [ebp + 0x694], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
push edx
mov ecx, ebp
call fcn.0046b600
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x64
ret