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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0xc4
xor esi, esi
mov dword [esp + 0x18], esi
xor ebp, ebp
mov dword [esp + 0x1c], esi
mov ebx, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x14], esi
movzx edi, word [edx + ebx*2]
test edi, edi
je 0x46f323
mov dword [esp + ebx*4 + 0x14], esi
mov ebp, ebx
add esi, edi
inc ebx
add esi, esi
cmp ebx, 0x10
jl 0x46f313
mov esi, dword [esp + 0x44]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x70], esi
movzx esi, word [edx + 0x16]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x74], edi
lea edi, [esi + 2]
mov dword [esp + 4], edi
movzx edi, word [edx + 0x18]
mov ebx, dword [esp + 0xe4]
cmp ebx, 4
mov dword [esp], 0
jbe 0x46f37a
mov ebx, 4
test ebx, ebx
lea esi, [edi + esi + 6]
movzx edi, word [edx + 0x1a]
mov dword [esp + 8], esi
lea esi, [esi + edi + 8]
movzx edi, word [edx + 0x1c]
mov dword [esp + 0xc], esi
lea esi, [esi + edi + 0x10]
mov dword [esp + 0x10], esi
jle 0x46f5ee
mov dword [esp + 0x90], ebp
lea esi, [ebp - 0xa]
mov dword [esp + 0x78], esi
xor edi, edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0xbc]
movzx edx, word [eax + edi*2]
inc edi
test edx, edx
je 0x46f5c5
mov ebx, dword [esp + edx*4 + 0x14]
lea eax, [ebx + 1]
mov dword [esp + edx*4 + 0x14], eax
movzx eax, dl
cmp eax, 0xa
jg 0x46f44f
mov ebp, ebx
mov ecx, eax
and ebp, 0x1f
neg ecx
sar ebx, 5
add ecx, 0xa
movzx ebp, byte [ebp + 0x620a00]
shl ebp, 5
movzx ebx, byte [ebx + 0x620a00]
or ebp, ebx
shr ebp, cl
mov ecx, eax
mov eax, 1
shl eax, cl
cmp ebp, 0x400
jge 0x46f5c5
mov ecx, dword [esp + 0xa4]
mov word [ecx + ebp*2], di
mov byte [ebp + ecx + 0xa00], dl
add ebp, eax
cmp ebp, 0x400
jl 0x46f435
jmp 0x46f5c5
mov ebp, ebx
lea ecx, [edx - 0xa]
sar ebp, cl
mov eax, ecx
mov esi, ebp
and esi, 0x1f
mov dword [esp + 0x80], ebp
sar ebp, 5
mov dword [esp + 0x88], ecx
movzx esi, byte [esi + 0x620a00]
shl esi, 5
movzx ebp, byte [ebp + 0x620a00]
or esi, ebp
mov ebp, dword [esp + ecx*4 + 0x60]
mov dword [esp + 0x84], ebp
mov ebp, 1
shl ebp, cl
dec ebp
mov dword [esp + 0x7c], ebp
cmp ecx, dword [esp + 0x78]
jge 0x46f4ff
mov dword [esp + 0x54], ebx
xor ebp, ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], esi
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
movzx esi, word [ebx + eax*2 + 0x16]
lea ecx, [eax + 1]
test esi, esi
je 0x46f4da
mov esi, dword [esp + eax*4 + 0x64]
sar esi, cl
cmp edx, esi
jne 0x46f4e0
mov ebp, eax
mov eax, ecx
cmp ecx, edi
jl 0x46f4c2
mov dword [esp + 0x78], edi
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
test ebp, ebp
jne 0x46f562
mov eax, ebx
mov ebp, 0x3ff
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x84]
sub eax, ecx
mov edi, dword [esp + 0x7c]
and ecx, edi
add eax, ecx
and ebx, edi
mov ecx, dword [esp + 0x88]
shl ebp, cl
and eax, ebp
mov ebp, dword [esp + 0xa4]
add eax, dword [esp + ecx*4 - 4]
mov edi, dword [esp + 0x5c]
mov word [ebp + esi*2], ax
mov byte [esi + ebp + 0xa00], dl
movzx eax, word [ebp + esi*2]
add eax, ebx
mov word [ebp + eax*2 + 0x800], di
movzx esi, word [ebp + esi*2]
add esi, ebp
mov byte [ebx + esi + 0xe00], dl
jmp 0x46f5c5
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + ebp*4]
and ebx, dword [esp + 0x7c]
mov word [ecx + esi*2], ax
lea eax, [ebp + 0xb]
sub ebp, dword [esp + 0x88]
inc ebp
mov byte [esi + ecx + 0xa00], al
mov ecx, ebp
mov ebp, 1
shl ebx, cl
shl ebp, cl
add ebp, ebx
cmp ebx, ebp
jge 0x46f5c5
mov eax, dword [esp + 0xa4]
movzx ecx, word [eax + esi*2]
add ecx, ebx
mov word [eax + ecx*2 + 0x800], di
movzx ecx, word [eax + esi*2]
add ecx, eax
mov byte [ecx + ebx + 0xe00], dl
inc ebx
cmp ebx, ebp
jl 0x46f59e
mov dword [esp + 0xa4], eax
cmp edi, dword [esp + 0x94]
jl 0x46f3ce
mov ebp, dword [esp + 0x90]
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0xa4]
add ebp, 0xfffffff6
mov ebx, 4
mov dword [esp + 0x8c], edx
mov esi, 1
mov dword [esp + 0x90], ebp
mov dword [esp + 0xbc], eax
mov dword [esp + 0xa4], ecx
mov edx, dword [esp + 0xe4]
cmp ebx, edx
jae 0x46f9bf
mov edi, edx
lea ebp, [ebx + 2]
cmp ebp, edx
jae 0x46f631
mov edi, ebp
cmp ebx, edi
jge 0x46f9b3
mov ecx, esi
mov eax, 1
shl eax, cl
mov dword [esp + 0xa8], eax
mov eax, ebx
neg eax
add eax, 2
shl eax, cl
shl ecx, 4
mov dword [esp + 0x54], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xc0], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0xa0], esi
mov eax, dword [esp + 0xbc]
movzx edx, word [eax + ebx*2]
test edx, edx
je 0x46f993
mov ebp, ebx
mov ecx, dword [esp + 0xa0]
shl ebp, cl
mov esi, dword [esp + 0x9c]
movzx eax, dl
cmp eax, 0xa
lea edi, [ebp + esi + 1]
mov ebp, dword [esp + edx*4 + 0x14]
mov dword [esp + 0xac], edi
lea esi, [ebp + 1]
mov dword [esp + edx*4 + 0x14], esi
jg 0x46f7ce
mov esi, ebp
mov ecx, eax
sar ebp, 5
and esi, 0x1f
neg ecx
add ecx, 0xa
movzx edx, byte [ebp + 0x620a00]
mov ebp, dword [esp + 0xa0]
movzx esi, byte [esi + 0x620a00]
shl esi, 5
or esi, edx
lea edx, [ebp + eax]
shr esi, cl
cmp edx, 0xa
jg 0x46f792
mov ecx, eax
mov edi, 1
shl edi, cl
mov ecx, edx
mov eax, 1
shl eax, cl
cmp dword [esp + 0xa8], 0
jle 0x46f993
mov dword [esp + 0xb4], eax
xor ebp, ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xb8], edx
mov eax, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov ecx, esi
cmp esi, 0x400
jge 0x46f786
mov dword [esp + 0xb0], esi
lea edx, [eax + ebp]
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
mov esi, dword [esp + 0xa4]
mov word [esi + ecx*2], dx
mov byte [ecx + esi + 0xa00], al
add ecx, ebx
cmp ecx, 0x400
jl 0x46f75c
mov esi, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
inc ebp
add esi, edi
cmp ebp, ebx
jl 0x46f733
jmp 0x46f98f
mov ecx, eax
mov edx, 1
shl edx, cl
or eax, dword [esp + 0x54]
cmp esi, 0x400
jge 0x46f993
mov ebp, edi
mov edi, dword [esp + 0xa4]
mov word [edi + esi*2], bp
mov byte [esi + edi + 0xa00], al
add esi, edx
cmp esi, 0x400
jl 0x46f7b4
jmp 0x46f993
add edx, 0xfffffff6
mov edi, ebp
mov ecx, edx
sar edi, cl
mov esi, edi
and esi, 0x1f
mov dword [esp + 0x88], edi
sar edi, 5
movzx esi, byte [esi + 0x620a00]
shl esi, 5
movzx edi, byte [edi + 0x620a00]
or esi, edi
mov edi, dword [esp + edx*4 + 0x60]
mov dword [esp + 0x94], edi
mov edi, 1
shl edi, cl
dec edi
mov dword [esp + 0x84], edi
mov edi, edx
cmp edx, dword [esp + 0x90]
jge 0x46f89b
xor ecx, ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x5c], ebx
mov ebp, ecx
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
movzx ebx, word [edx + edi*2 + 0x16]
lea ecx, [edi + 1]
test ebx, ebx
je 0x46f86d
mov ebx, dword [esp + edi*4 + 0x64]
sar ebx, cl
cmp esi, ebx
jne 0x46f873
mov ebp, edi
mov edi, ecx
cmp ecx, eax
jl 0x46f855
mov dword [esp + 0x98], ebp
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x98], 0
jne 0x46f913
mov dword [esp + 0x5c], ebx
mov ebx, ebp
mov edi, dword [esp + 0x94]
sub ebx, edi
and edi, dword [esp + 0x84]
mov ecx, edx
add ebx, edi
mov edi, 0x3ff
shl edi, cl
and ebx, edi
mov edi, dword [esp + 0xa4]
add ebx, dword [esp + edx*4 - 4]
mov edx, eax
or edx, 0xffffff80
mov word [edi + esi*2], bx
mov ebx, dword [esp + 0x54]
or edx, ebx
mov byte [esi + edi + 0xa00], dl
or eax, ebx
and ebp, dword [esp + 0x84]
movzx ecx, word [edi + esi*2]
add ecx, ebp
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0x5c]
mov word [edi + ecx*2 + 0x800], dx
movzx esi, word [edi + esi*2]
add esi, edi
mov byte [ebp + esi + 0xe00], al
jmp 0x46f993
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + ecx*4]
mov word [edi + esi*2], ax
lea eax, [ecx + 0xb]
sub ecx, edx
mov edx, 1
and ebp, dword [esp + 0x84]
inc ecx
shl ebp, cl
shl edx, cl
add edx, ebp
mov byte [esi + edi + 0xa00], al
cmp ebp, edx
mov eax, dword [esp + 0x80]
jge 0x46f993
mov dword [esp + 0x5c], ebx
or eax, dword [esp + 0x54]
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 0xa4]
movzx ecx, word [ebx + esi*2]
add ecx, ebp
mov word [ebx + ecx*2 + 0x800], di
movzx ecx, word [ebx + esi*2]
add ecx, ebx
mov byte [ecx + ebp + 0xe00], al
inc ebp
cmp ebp, edx
jl 0x46f96f
mov ebx, dword [esp + 0x5c]
inc ebx
cmp ebx, dword [esp + 0xc0]
jl 0x46f672
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0xa0]
mov edx, dword [esp + 0xe4]
inc esi
mov ebx, ebp
cmp ebp, 0x1e
jl 0x46f61e
add esp, 0xc4
pop ebp
pop ebx
pop edi
pop esi
ret