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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0xcc
mov ebx, ecx
mov dword [esp + 0xc4], eax
mov ebp, edx
push 0x1b00
push ebx
call fcn.00477f20
add esp, 8
xor ecx, ecx
mov eax, 1
mov dword [esp + 0x3c], ecx
xor edx, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x38], ecx
movzx esi, word [ebp + eax*2]
test esi, esi
je 0x46fa4d
mov dword [esp + eax*4 + 0x38], ecx
mov edx, eax
add ecx, esi
inc eax
add ecx, ecx
cmp eax, 0x10
jl 0x46fa3c
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x80], edi
movzx edi, word [ebp + 0x16]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x84], eax
lea eax, [edi + 4]
mov ecx, dword [esp + 0x68]
and eax, 1
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x88], ecx
movzx ecx, word [ebp + 0x18]
lea eax, [eax + edi + 4]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0xec]
mov dword [esp + 0x24], 0
lea edi, [eax + ecx + 8]
mov eax, edi
and eax, 1
add edi, eax
movzx eax, word [ebp + 0x1a]
mov dword [esp + 0x2c], edi
lea eax, [edi + eax + 0x10]
movzx edi, word [ebp + 0x1c]
mov ecx, eax
and ecx, 1
add eax, ecx
mov dword [esp + 0x30], eax
lea ecx, [eax + edi + 0x20]
mov eax, ecx
and eax, 1
add ecx, eax
cmp esi, 0x100
mov dword [esp + 0x34], ecx
mov ecx, esi
jbe 0x46faef
mov ecx, 0x100
test ecx, ecx
jle 0x46fd21
mov dword [esp + 0xac], ebx
lea edi, [edx - 0xa]
mov dword [esp + 0x9c], edx
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebp
mov edx, dword [esp + 0xc4]
movzx edx, word [edx + eax*2]
test edx, edx
je 0x46fcf7
movzx ebx, dl
mov esi, dword [esp + edx*4 + 0x38]
cmp ebx, 0xa
lea ecx, [esi + 1]
mov dword [esp + edx*4 + 0x38], ecx
jg 0x46fb9c
mov ebp, esi
mov ecx, ebx
and ebp, 0x1f
neg ecx
sar esi, 5
add ecx, 0xa
movzx ebp, byte [ebp + 0x620a00]
shl ebp, 5
movzx esi, byte [esi + 0x620a00]
or ebp, esi
shr ebp, cl
mov ecx, ebx
mov ebx, 1
shl ebx, cl
cmp ebp, 0x400
jge 0x46fcf7
mov ecx, dword [esp + 0xac]
mov byte [ebp + ecx], al
mov byte [ebp + ecx + 0x600], dl
add ebp, ebx
cmp ebp, 0x400
jl 0x46fb82
jmp 0x46fcf7
mov edi, esi
lea ecx, [edx - 0xa]
sar edi, cl
mov ebx, ecx
mov ebp, edi
and ebp, 0x1f
mov dword [esp + 0x1c], edi
sar edi, 5
mov dword [esp + 0x8c], ecx
movzx ebp, byte [ebp + 0x620a00]
shl ebp, 5
movzx edi, byte [edi + 0x620a00]
or ebp, edi
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + ecx*4 + 0x74]
mov dword [esp + 0x18], ebp
mov ebp, 1
shl ebp, cl
dec ebp
mov dword [esp + 0x14], ebp
cmp ecx, dword [esp + 0x10]
jge 0x46fc3f
mov dword [esp + 8], edx
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x94]
movzx esi, word [edx + ebx*2 + 0x16]
lea ecx, [ebx + 1]
test esi, esi
je 0x46fc1e
mov esi, dword [esp + ebx*4 + 0x78]
sar esi, cl
cmp eax, esi
jne 0x46fc24
mov ebp, ebx
mov ebx, ecx
cmp ecx, edi
jl 0x46fc06
mov dword [esp + 0x94], edx
mov dword [esp + 0x10], edi
mov esi, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
test ebp, ebp
jne 0x46fc99
mov ebp, dword [esp + 0x18]
mov ebx, esi
mov ecx, dword [esp + 0x8c]
sub ebx, ebp
and ebp, dword [esp + 0x14]
mov edi, 0x3ff
shl edi, cl
add ebx, ebp
and ebx, edi
add ebx, dword [esp + ecx*4 + 0x20]
mov edi, dword [esp + 0xac]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, ebx
shr eax, 1
add ebx, edi
and esi, dword [esp + 0x14]
mov byte [ebp + edi], al
mov eax, dword [esp + 0xc]
mov byte [ebp + edi + 0x600], dl
mov byte [esi + ebx + 0x400], al
mov byte [esi + ebx + 0xa00], dl
jmp 0x46fcf7
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + ebp*4 + 0x24]
mov dword [esp], ebx
shr ebx, 1
mov byte [edi + ecx], bl
lea ebx, [ebp + 0xb]
sub ebp, dword [esp + 0x8c]
inc ebp
and esi, dword [esp + 0x14]
mov byte [edi + ecx + 0x600], bl
mov ecx, ebp
mov ebx, 1
shl esi, cl
shl ebx, cl
add ebx, esi
cmp esi, ebx
jge 0x46fcf7
mov ecx, dword [esp]
add ecx, dword [esp + 0xac]
mov dword [esp], ecx
mov byte [esi + ecx + 0x400], al
mov byte [esi + ecx + 0xa00], dl
inc esi
cmp esi, ebx
jl 0x46fce4
inc eax
cmp eax, dword [esp + 0x90]
jl 0x46fb1c
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0xec]
cmp esi, 0x101
jb 0x46ff63
mov eax, dword [esp + 0xc4]
movzx ecx, word [eax + 0x200]
test ecx, ecx
je 0x46ff63
movzx eax, cl
mov edi, dword [esp + ecx*4 + 0x38]
cmp eax, 0xa
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
lea edi, [edi + 1]
mov dword [esp + ecx*4 + 0x38], edi
jg 0x46fdc4
mov eax, dword [esp + 0x1c]
mov edi, eax
and edi, 0x1f
sar eax, 5
movzx edi, byte [edi + 0x620a00]
shl edi, 5
movzx ecx, byte [eax + 0x620a00]
or edi, ecx
mov ecx, dword [esp + 0x20]
mov eax, 1
neg ecx
add ecx, 0xa
shr edi, cl
mov ecx, dword [esp + 0x20]
shl eax, cl
mov dword [esp], eax
cmp edi, 0x400
jge 0x46ff63
mov eax, ecx
or eax, 0x60
mov dword [esp + 0x20], eax
mov ecx, dword [esp]
mov byte [edi + ebx + 0x600], al
add edi, ecx
cmp edi, 0x400
jl 0x46fdae
jmp 0x46ff63
add ecx, 0xfffffff6
mov eax, dword [esp + 0x1c]
sar eax, cl
mov edi, eax
and edi, 0x1f
mov dword [esp + 4], eax
sar eax, 5
mov dword [esp + 0x14], ecx
movzx edi, byte [edi + 0x620a00]
shl edi, 5
movzx eax, byte [eax + 0x620a00]
or edi, eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
lea eax, [edx - 0xa]
mov edi, dword [esp + ecx*4 + 0x74]
cmp ecx, eax
mov dword [esp + 0x18], edi
jge 0x46fe71
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x9c], edx
mov dword [esp + 0xac], ebx
mov dword [esp], ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 4]
movzx ebx, word [ebp + edi*2 + 0x16]
lea ecx, [edi + 1]
test ebx, ebx
je 0x46fe48
mov ebx, dword [esp + edi*4 + 0x78]
sar ebx, cl
cmp edx, ebx
jne 0x46fe4e
mov esi, edi
mov edi, ecx
cmp ecx, eax
jl 0x46fe30
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp]
mov esi, dword [esp + 0xec]
cmp dword [esp + 0x10], 0
jne 0x46fed8
mov dword [esp + 0x9c], edx
mov eax, 0x3ff
mov edx, dword [esp + 0x1c]
mov esi, edx
mov edi, dword [esp + 0x18]
sub esi, edi
and edi, dword [esp + 8]
shl eax, cl
add esi, edi
and esi, eax
add esi, dword [esp + ecx*4 + 0x20]
mov ecx, dword [esp + 0xc]
mov eax, esi
add esi, ebx
and edx, dword [esp + 8]
shr eax, 1
mov byte [ecx + ebx], al
mov eax, dword [esp + 0x20]
mov byte [ecx + ebx + 0x600], al
or eax, 0x60
mov byte [edx + esi + 0x400], 0
mov byte [edx + esi + 0xa00], al
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0xec]
jmp 0x46ff63
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + edx*4 + 0x24]
mov dword [esp], eax
shr eax, 1
mov byte [edi + ebx], al
lea eax, [edx + 0xb]
sub edx, ecx
mov byte [edi + ebx + 0x600], al
inc edx
mov eax, dword [esp + 0x1c]
mov ecx, edx
and eax, dword [esp + 8]
mov edx, 1
shl eax, cl
shl edx, cl
add edx, eax
mov dword [esp + 4], edx
cmp eax, edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x9c]
jge 0x46ff63
mov eax, dword [esp + 0x20]
or eax, 0x60
add dword [esp], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], ebp
mov ecx, dword [esp]
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0x1c]
mov byte [edi + ecx + 0x400], 0
mov byte [edi + ecx + 0xa00], al
inc edi
cmp edi, ebp
jl 0x46ff48
mov ebp, dword [esp + 0x94]
cmp esi, 0x109
mov ecx, esi
jbe 0x46ff72
mov ecx, 0x109
cmp ecx, 0x101
jle 0x4701f2
mov dword [esp + 0xac], ebx
lea eax, [edx - 0xa]
mov dword [esp + 0x9c], edx
mov edi, 0x101
mov dword [esp + 0x14], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x94], ebp
mov eax, dword [esp + 0xc4]
movzx ecx, word [eax + edi*2]
test ecx, ecx
je 0x4701c8
movzx eax, cl
lea ebx, [edi - 1]
mov dword [esp + 0x98], ebx
cmp eax, 0xa
mov ebx, dword [esp + ecx*4 + 0x38]
lea edx, [ebx + 1]
mov dword [esp + ecx*4 + 0x38], edx
jg 0x470039
mov edx, ebx
mov ecx, eax
and edx, 0x1f
neg ecx
sar ebx, 5
add ecx, 0xa
mov ebp, 1
movzx edx, byte [edx + 0x620a00]
shl edx, 5
movzx ebx, byte [ebx + 0x620a00]
or edx, ebx
shr edx, cl
mov ecx, eax
shl ebp, cl
or eax, 0xffffff80
cmp edx, 0x400
jge 0x4701c8
mov esi, dword [esp + 0xac]
mov ebx, dword [esp + 0x98]
mov byte [edx + esi], bl
mov byte [edx + esi + 0x600], al
add edx, ebp
cmp edx, 0x400
jl 0x470020
jmp 0x4701c8
add ecx, 0xfffffff6
mov ebp, ebx
sar ebp, cl
mov esi, ebp
and esi, 0x1f
mov dword [esp + 0x1c], ebp
sar ebp, 5
movzx edx, byte [esi + 0x620a00]
shl edx, 5
movzx esi, byte [ebp + 0x620a00]
mov ebp, 1
shl ebp, cl
or edx, esi
mov dword [esp + 0x8c], edx
dec ebp
mov edx, dword [esp + ecx*4 + 0x74]
mov dword [esp + 0x20], edx
mov edx, ecx
mov dword [esp + 0x18], ebp
cmp ecx, dword [esp + 0x14]
jge 0x4700f6
xor ebp, ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov esi, ebp
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x94]
movzx ebp, word [eax + edx*2 + 0x16]
lea ecx, [edx + 1]
test ebp, ebp
je 0x4700c4
mov ebp, dword [esp + edx*4 + 0x78]
sar ebp, cl
cmp edi, ebp
jne 0x4700ca
mov esi, edx
mov edx, ecx
cmp ecx, ebx
jl 0x4700ac
mov dword [esp + 0x14], ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], esi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x90], 0
jne 0x470155
mov esi, dword [esp + 0x20]
mov ebp, ebx
mov dword [esp + 0xc], edi
sub ebp, esi
and esi, dword [esp + 0x18]
mov edi, 0x3ff
shl edi, cl
add ebp, esi
and ebp, edi
or eax, 0xffffff80
add ebp, dword [esp + ecx*4 + 0x20]
mov edi, dword [esp + 0xac]
mov edx, ebp
mov esi, dword [esp + 0x8c]
add ebp, edi
and ebx, dword [esp + 0x18]
shr edx, 1
mov byte [esi + edi], dl
mov edx, dword [esp + 0x98]
mov byte [esi + edi + 0x600], al
mov byte [ebx + ebp + 0x400], dl
mov byte [ebx + ebp + 0xa00], al
mov edi, dword [esp + 0xc]
jmp 0x4701c8
mov edx, esi
mov esi, dword [esp + 0xac]
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + edx*4 + 0x24]
mov dword [esp], eax
shr eax, 1
mov byte [ebp + esi], al
lea eax, [edx + 0xb]
sub edx, ecx
inc edx
mov byte [ebp + esi + 0x600], al
mov ecx, edx
and ebx, dword [esp + 0x18]
mov ebp, 1
shl ebx, cl
shl ebp, cl
add ebp, ebx
mov eax, dword [esp + 0x10]
cmp ebx, ebp
jge 0x4701c8
mov edx, dword [esp]
or eax, 0xffffff80
add edx, dword [esp + 0xac]
mov dword [esp], edx
mov esi, edx
mov edx, dword [esp + 0x98]
mov byte [ebx + esi + 0x400], dl
mov byte [ebx + esi + 0xa00], al
inc ebx
cmp ebx, ebp
jl 0x4701b5
inc edi
cmp edi, dword [esp + 0xa0]
jl 0x46ffa6
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0xec]
add edx, 0xfffffff6
mov eax, 0x109
mov dword [esp + 0xac], ebx
mov ecx, 1
mov dword [esp + 0x9c], edx
mov edi, 0xfffffef7
mov dword [esp + 0x94], ebp
cmp eax, dword [esp + 0xec]
jae 0x4705ce
mov edx, dword [esp + 0xec]
lea ebp, [eax + 4]
cmp ebp, edx
jae 0x470236
mov edx, ebp
cmp eax, edx
jge 0x4705bc
mov ebx, 1
mov esi, ecx
shl ebx, cl
shl esi, 4
mov dword [esp + 8], esi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xc8], edx
mov dword [esp + 4], ebp
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ecx
mov edx, dword [esp + 0xc4]
movzx ebp, word [edx + eax*2]
test ebp, ebp
je 0x47059c
mov esi, dword [esp + 0xa4]
mov edx, ebp
and edx, 0xff
mov ecx, dword [esp + 0xa0]
lea ebx, [esi + eax + 4]
mov esi, dword [esp + ebp*4 + 0x38]
shl ebx, cl
mov dword [esp + 0xa8], ebx
cmp edx, 0xa
lea edi, [esi + 1]
mov dword [esp + ebp*4 + 0x38], edi
jg 0x4703ef
mov ebp, esi
mov ecx, edx
sar esi, 5
and ebp, 0x1f
neg ecx
add ecx, 0xa
movzx ebx, byte [esi + 0x620a00]
mov esi, dword [esp + 0xa0]
movzx ebp, byte [ebp + 0x620a00]
shl ebp, 5
or ebp, ebx
lea ebx, [esi + edx]
shr ebp, cl
cmp ebx, 0xa
jg 0x4703ab
mov ecx, edx
mov esi, 1
shl esi, cl
mov ecx, ebx
mov edx, 1
or ebx, 0xffffff80
shl edx, cl
cmp dword [esp + 0xb0], 0
jle 0x47059c
mov dword [esp + 0xc], eax
xor edi, edi
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], edx
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
mov ebx, ebp
cmp ebp, 0x400
jge 0x470394
mov dword [esp + 0xb8], esi
lea edx, [eax + edi]
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ecx
mov ebp, dword [esp + 0xac]
mov ecx, dword [esp + 0xc0]
mov esi, dword [esp + 0xbc]
mov byte [ebx + ebp], dl
mov byte [ebx + ebp + 0x600], cl
add ebx, esi
cmp ebx, 0x400
jl 0x47036b
mov esi, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
inc edi
add ebp, esi
cmp edi, ecx
jl 0x470334
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0xc]
jmp 0x47059c
mov ecx, edx
mov esi, 1
or edx, 0xffffff80
shl esi, cl
or edx, dword [esp + 8]
cmp ebp, 0x400
jge 0x47059c
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov byte [ebp + edi], bl
mov byte [ebp + edi + 0x600], dl
add ebp, esi
cmp ebp, 0x400
jl 0x4703d5
jmp 0x47059c
add ebp, 0xfffffff6
mov edi, esi
mov ecx, ebp
sar edi, cl
mov ebx, edi
and ebx, 0x1f
mov dword [esp + 0x8c], edi
sar edi, 5
movzx ebx, byte [ebx + 0x620a00]
shl ebx, 5
movzx edi, byte [edi + 0x620a00]
or ebx, edi
mov edi, 1
shl edi, cl
mov dword [esp + 0x90], ebx
dec edi
mov ebx, dword [esp + ebp*4 + 0x74]
mov dword [esp + 0x20], ebx
mov ebx, ebp
mov dword [esp + 0x1c], edi
cmp ebp, dword [esp + 0x9c]
jge 0x4704bd
xor edi, edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebp
mov esi, edi
mov edi, dword [esp + 0x8c]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x94]
movzx ebp, word [eax + ebx*2 + 0x16]
lea ecx, [ebx + 1]
test ebp, ebp
je 0x470488
mov ebp, dword [esp + ebx*4 + 0x78]
sar ebp, cl
cmp edi, ebp
jne 0x47048e
mov esi, ebx
mov ebx, ecx
cmp ecx, edx
jl 0x470470
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], edx
mov dword [esp + 0x94], eax
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x98], 0
jne 0x470523
mov ebx, dword [esp + 0x20]
mov edi, esi
mov dword [esp + 0xc], eax
sub edi, ebx
and ebx, dword [esp + 0x1c]
mov ecx, ebp
mov eax, 0x3ff
add edi, ebx
shl eax, cl
or edx, 0xffffff80
and edi, eax
add edi, dword [esp + ebp*4 + 0x20]
mov ebx, dword [esp + 0xac]
mov eax, edi
mov ebp, dword [esp + 0x90]
add edi, ebx
and esi, dword [esp + 0x1c]
shr eax, 1
or edx, dword [esp + 8]
mov byte [ebp + ebx], al
mov eax, dword [esp + 0xa8]
mov byte [ebp + ebx + 0x600], dl
mov byte [esi + edi + 0x400], al
mov byte [esi + edi + 0xa00], dl
mov eax, dword [esp + 0xc]
jmp 0x47059c
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x18], edx
mov edx, dword [esp + ecx*4 + 0x24]
mov dword [esp], edx
shr edx, 1
mov byte [ebx + edi], dl
lea edx, [ecx + 0xb]
sub ecx, ebp
mov ebp, 1
and esi, dword [esp + 0x1c]
inc ecx
shl esi, cl
shl ebp, cl
add ebp, esi
mov byte [ebx + edi + 0x600], dl
cmp esi, ebp
mov edx, dword [esp + 0x18]
jge 0x47059c
mov ebx, dword [esp]
or edx, 0xffffff80
add ebx, dword [esp + 0xac]
mov dword [esp], ebx
or edx, dword [esp + 8]
mov edi, ebx
mov ebx, dword [esp + 0xa8]
mov byte [esi + edi + 0x400], bl
mov byte [esi + edi + 0xa00], dl
inc esi
cmp esi, ebp
jl 0x470589
inc eax
cmp eax, dword [esp + 0xc8]
jl 0x47026e
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
add edi, 0xfffffffc
inc ecx
mov eax, ebp
cmp ebp, 0x11d
jl 0x470219
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0xec]
cmp esi, 0x11e
jb 0x4707b3
mov eax, dword [esp + 0xc4]
movzx ecx, word [eax + 0x23a]
test ecx, ecx
je 0x4707b3
movzx eax, cl
mov dword [esp + 0x1c], eax
cmp eax, 0xa
mov esi, dword [esp + ecx*4 + 0x38]
jg 0x470676
mov edx, esi
and edx, 0x1f
sar esi, 5
mov ecx, eax
neg ecx
movzx edx, byte [edx + 0x620a00]
add ecx, 0xa
shl edx, 5
movzx ebp, byte [esi + 0x620a00]
or edx, ebp
shr edx, cl
mov ecx, eax
mov eax, 1
shl eax, cl
cmp edx, 0x400
jge 0x4707b3
or ecx, 0xffffff80
mov dword [esp + 0x1c], ecx
mov byte [edx + ebx], 0xff
mov byte [edx + ebx + 0x600], cl
add edx, eax
cmp edx, 0x400
jl 0x47065c
jmp 0x4707b3
add ecx, 0xfffffff6
mov eax, esi
sar eax, cl
mov edi, eax
and edi, 0x1f
mov dword [esp + 0x10], eax
sar eax, 5
movzx edi, byte [edi + 0x620a00]
shl edi, 5
movzx eax, byte [eax + 0x620a00]
or edi, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0xc], edi
dec eax
mov edi, dword [esp + ecx*4 + 0x74]
cmp ecx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 8], eax
mov eax, ecx
jge 0x470709
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0xac], ebx
mov dword [esp], esi
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x10]
movzx esi, word [ebp + eax*2 + 0x16]
lea ecx, [eax + 1]
test esi, esi
je 0x4706ea
mov esi, dword [esp + eax*4 + 0x78]
sar esi, cl
cmp ebx, esi
jne 0x4706f0
mov edi, eax
mov eax, ecx
cmp ecx, edx
jl 0x4706d2
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0xac]
mov esi, dword [esp]
mov ecx, dword [esp + 4]
cmp dword [esp + 0x18], 0
jne 0x47075d
mov edi, dword [esp + 0x14]
mov ebp, esi
sub ebp, edi
mov eax, 0x3ff
and edi, dword [esp + 8]
shl eax, cl
add ebp, edi
and ebp, eax
add ebp, dword [esp + ecx*4 + 0x20]
mov ecx, dword [esp + 0xc]
mov eax, ebp
mov edx, dword [esp + 0x1c]
shr eax, 1
or edx, 0xffffff80
mov byte [ecx + ebx], al
mov byte [ecx + ebx + 0x600], dl
add ebx, ebp
and esi, dword [esp + 8]
mov byte [esi + ebx + 0x400], 0xff
mov byte [esi + ebx + 0xa00], dl
add esp, 0xcc
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebp, edi
mov edi, dword [esp + 0xc]
and esi, dword [esp + 8]
mov eax, dword [esp + ebp*4 + 0x24]
lea edx, [ebp + 0xb]
sub ebp, ecx
inc ebp
mov dword [esp], eax
mov ecx, ebp
shr eax, 1
mov byte [edi + ebx], al
mov eax, 1
shl esi, cl
shl eax, cl
add eax, esi
mov byte [edi + ebx + 0x600], dl
cmp esi, eax
jge 0x4707b3
mov edx, dword [esp + 0x1c]
or edx, 0xffffff80
mov dword [esp + 0x1c], edx
add ebx, dword [esp]
mov byte [esi + ebx + 0x400], 0xff
mov byte [esi + ebx + 0xa00], dl
inc esi
cmp esi, eax
jl 0x47079f
add esp, 0xcc
pop ebp
pop ebx
pop edi
pop esi
ret