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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7c9c88
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x8c8ca0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0xa4], 0
je 0x46fe07
mov esi, dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
je 0x46fe07
cmp dword [ebp + 0xc], 0
je 0x46f851
mov ecx, esi
mov edx, ebx
call fcn.0046e508
call fcn.00473a39
mov dword [esp + 0x24], eax
call fcn.00473a60
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
mov esi, ebx
call fcn.00471955
lea eax, [esp + 0x6c]
push eax
lea edi, [esp + 0x50]
mov eax, ebx
call fcn.00471a13
xor esi, esi
cmp dword [ebx + 0x7c], esi
je 0x46f88d
mov eax, ebx
call fcn.0046e3c9
or dword [esp + 0x48], 0xffffffff
cmp dword [ebx + 0xf0], esi
mov dword [esp + 0x14], esi
jle 0x46f988
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.004739a7
test eax, eax
jle 0x46f974
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
inc edi
mov eax, ebx
mov dword [esp + 0x40], edi
call fcn.004739a7
or dword [esp + 0x44], 0xffffffff
cmp dword [ebx + 0xf8], esi
lea eax, [eax + edi - 1]
mov dword [esp + 0x48], eax
mov dword [esp + 0x18], esi
jle 0x46f974
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.004739c4
test eax, eax
jle 0x46f95e
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
inc edi
mov eax, ebx
mov dword [esp + 0x3c], edi
call fcn.004739c4
push dword [esp + 0x18]
lea eax, [eax + edi - 1]
push dword [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.00477e3e
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, esi
je 0x46f95e
push dword [esp + 0x18]
mov eax, dword [edi]
push dword [esp + 0x18]
mov ecx, edi
call dword [eax + 0x34]
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push esi
sub esp, 0x10
mov edi, esp
push dword [esp + 0x2c]
lea esi, [esp + 0x54]
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0xa4]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, dword [ebx + 0xf8]
jl 0x46f8e6
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0xf0]
jl 0x46f8a2
mov eax, dword [esp + 0x24]
dec eax
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x46fa96
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.004739a7
test eax, eax
jle 0x46fa8e
mov ecx, dword [esp + 0x14]
inc edi
mov eax, ebx
mov dword [esp + 0x40], edi
call fcn.004739a7
cmp edi, dword [esp + 0x68]
lea eax, [eax + edi - 1]
mov dword [esp + 0x48], eax
jg 0x46faa0
cmp eax, dword [esp + 0x60]
jl 0x46fa8a
or dword [esp + 0x44], 0xffffffff
cmp dword [ebx + 0xf8], esi
mov dword [esp + 0x18], esi
jle 0x46fa8a
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.004739c4
test eax, eax
jle 0x46fa74
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
inc edi
mov eax, ebx
mov dword [esp + 0x3c], edi
call fcn.004739c4
cmp edi, dword [esp + 0x64]
lea eax, [eax + edi - 1]
mov dword [esp + 0x44], eax
jg 0x46fa8a
cmp eax, dword [esp + 0x5c]
jl 0x46fa74
push dword [esp + 0x18]
mov ecx, ebx
push dword [esp + 0x18]
call fcn.00477e3e
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, esi
je 0x46fa74
push dword [esp + 0x18]
mov eax, dword [edi]
push dword [esp + 0x18]
mov ecx, edi
call dword [eax + 0x34]
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push esi
sub esp, 0x10
mov edi, esp
push dword [esp + 0x2c]
lea esi, [esp + 0x54]
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0xa4]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, dword [ebx + 0xf8]
jl 0x46f9f0
mov edi, dword [esp + 0x48]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x54]
jle 0x46f99c
or edi, 0xffffffff
cmp dword [ebx + 0xf0], esi
mov dword [esp + 0x14], esi
jle 0x46fbac
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.004739a7
test eax, eax
jle 0x46fb98
mov ecx, dword [esp + 0x14]
inc edi
mov eax, ebx
mov dword [esp + 0x40], edi
call fcn.004739a7
cmp edi, dword [esp + 0x68]
lea eax, [eax + edi - 1]
mov dword [esp + 0x48], eax
jg 0x46fbac
cmp eax, dword [esp + 0x60]
jl 0x46fb92
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
dec eax
mov dword [esp + 0x44], eax
jmp 0x46fb84
mov ecx, esi
mov eax, ebx
call fcn.004739c4
test eax, eax
jle 0x46fb7f
mov edi, dword [esp + 0x44]
inc edi
mov ecx, esi
mov eax, ebx
mov dword [esp + 0x3c], edi
call fcn.004739c4
cmp edi, dword [esp + 0x64]
lea eax, [eax + edi - 1]
mov dword [esp + 0x44], eax
jg 0x46fb92
cmp eax, dword [esp + 0x5c]
jl 0x46fb7f
push esi
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00477e3e
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x46fb7f
mov eax, dword [edi]
push esi
push dword [esp + 0x18]
mov ecx, edi
call dword [eax + 0x34]
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push 0
sub esp, 0x10
mov edi, esp
push dword [esp + 0x2c]
lea esi, [esp + 0x54]
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0xa4]
mov esi, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x58]
mov dword [esp + 0x18], esi
jle 0x46fb04
mov edi, dword [esp + 0x48]
xor esi, esi
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0xf0]
jl 0x46fab3
mov eax, dword [esp + 0x24]
dec eax
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x46fcad
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.004739a7
test eax, eax
jle 0x46fca5
mov ecx, dword [esp + 0x14]
inc edi
mov eax, ebx
mov dword [esp + 0x40], edi
call fcn.004739a7
cmp edi, dword [esp + 0x68]
lea eax, [eax + edi - 1]
mov dword [esp + 0x48], eax
jg 0x46fcb7
cmp eax, dword [esp + 0x60]
jl 0x46fc9f
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
dec eax
mov dword [esp + 0x44], eax
jmp 0x46fc91
mov ecx, esi
mov eax, ebx
call fcn.004739c4
test eax, eax
jle 0x46fc8c
mov edi, dword [esp + 0x44]
inc edi
mov ecx, esi
mov eax, ebx
mov dword [esp + 0x3c], edi
call fcn.004739c4
cmp edi, dword [esp + 0x64]
lea eax, [eax + edi - 1]
mov dword [esp + 0x44], eax
jg 0x46fc9f
cmp eax, dword [esp + 0x5c]
jl 0x46fc8c
push esi
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00477e3e
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x46fc8c
mov eax, dword [edi]
push esi
push dword [esp + 0x18]
mov ecx, edi
call dword [eax + 0x34]
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push 0
sub esp, 0x10
mov edi, esp
push dword [esp + 0x2c]
lea esi, [esp + 0x54]
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0xa4]
mov esi, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x58]
mov dword [esp + 0x18], esi
jle 0x46fc11
mov edi, dword [esp + 0x48]
xor esi, esi
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x54]
jle 0x46fbc0
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], vtable.CPen.0
mov dword [esp + 0x88], esi
push dword [ebx + 0x60]
push esi
push esi
call dword [0x7da24c]
push eax
lea ecx, [esp + 0x38]
call fcn.00546c86
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call fcn.00546d71
mov eax, dword [ebx + 0x88]
cmp eax, 3
je 0x46fcfc
cmp eax, 2
jne 0x46fd56
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], eax
jmp 0x46fd50
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.004739c4
test eax, eax
jle 0x46fd48
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.004739c4
push dword [esp + 0x24]
mov ecx, dword [ebp + 8]
add esi, eax
lea edi, [esi - 1]
push edi
lea eax, [esp + 0x24]
push eax
call fcn.005466b2
push dword [esp + 0x78]
mov ecx, dword [ebp + 8]
push edi
call fcn.00546274
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x58]
jle 0x46fd0a
mov eax, dword [ebx + 0x88]
cmp eax, 3
je 0x46fd66
cmp eax, 1
jne 0x46fdc0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jmp 0x46fdba
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.004739a7
test eax, eax
jle 0x46fdb2
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.004739a7
mov ecx, dword [ebp + 8]
add esi, eax
lea edi, [esi - 1]
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
call fcn.005466b2
mov ecx, dword [ebp + 8]
push edi
push dword [esp + 0x78]
call fcn.00546274
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x54]
jle 0x46fd74
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 8
call dword [eax + 0x24]
cmp dword [ebx + 0x7c], 0
je 0x46fdee
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea edi, [esp + 0x4c]
mov eax, ebx
call fcn.0046e3c9
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], vtable.CPen.0
call fcn.0040502d
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8