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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c37c3
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x46b9d4
cmp eax, 1
je 0x46b275
cmp eax, 2
je 0x46b275
mov ebx, 1
mov dword [esp + 0x118], ebx
jmp 0x46b27c
mov ebx, dword [esp + 0x118]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, dword [esp + 0x108]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
dec eax
mov dword [esp + 0x50], ebp
neg eax
sbb eax, eax
mov dword [esp + 0x4c], 0x4fd488
inc eax
mov dword [esp + 0x5c], eax
mov eax, 0x55555556
mov dword [esp + 0x100], ebp
imul ebx
mov ecx, edx
mov edi, 0xa
shr ecx, 0x1f
add edx, ecx
mov ecx, edx
cmp ecx, 0xa
jl 0x46b2d5
mov edi, ecx
cmp ecx, 3
jge 0x46b2df
mov ecx, 3
mov eax, ebx
mov dword [esp + 0x14], ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x124]
sar eax, 1
dec edx
imul edx, ecx
add edx, eax
add edx, edi
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x120]
dec edx
imul edx, ecx
add edx, edi
lea edx, [ebx + edx*2]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x130]
dec edx
imul edx, ecx
add edx, eax
mov eax, dword [esp + 0x12c]
add edx, edi
dec eax
imul eax, ecx
add eax, edi
mov dword [esp + 0x60], edx
lea ecx, [ebx + eax*2]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x14]
xor edx, edx
test eax, eax
jne 0x46b36e
mov eax, dword [esp + 0x10c]
mov ebx, dword [esp + 0x11c]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x20], ecx
jmp 0x46b398
mov eax, dword [esp + 0x110]
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x46b636
cmp ebx, 5
jg 0x46b522
lea ecx, [esp + 0x54]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push ebp
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0046a810
push 0
lea ecx, [esp + 0x5c]
push 0
lea edx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x80]
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.0046a810
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
add esp, 0x38
cmp ebx, 4
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], 3
je 0x46b417
cmp ebx, 5
jne 0x46b448
mov eax, ebp
lea ecx, [esp + 0x44]
cdq
and edx, 3
push 0
add eax, edx
push ecx
push 0
push 0
sar eax, 2
push eax
lea edx, [esp + 0x68]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0046a810
add esp, 0x1c
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0x54]
push 0
push ecx
push 0
push 0
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0046a810
push 0
lea edx, [esp + 0xd0]
push 0
lea eax, [esp + 0xcc]
push edx
push eax
lea ecx, [esp + 0x80]
push edi
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0046a810
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x74]
add esp, 0x38
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x90]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x40]
push 5
push eax
push ecx
mov dword [esp + 0xb0], edx
call dword [sym.imp.GDI32.dll_LPtoDP]
push 2
lea edx, [esp + 0x94]
push 5
push edx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x50]
call fcn.004b81cb
lea eax, [esp + 0x4c]
push 1
push eax
mov ecx, esi
call fcn.004b7e09
lea ecx, [esp + 0x4c]
call fcn.004b8222
jmp 0x46b632
cmp ebx, 6
je 0x46b5e4
cmp ebx, 7
je 0x46b5e4
cmp ebx, 8
je 0x46b572
cmp ebx, 9
je 0x46b572
mov eax, ebp
mov dword [esp + 0x10], 2
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
sub edx, eax
add eax, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
mov ebx, edx
mov dword [esp + 0x34], eax
sub ebx, edi
add edx, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edx
jmp 0x46b632
lea eax, [esp + 0x88]
lea ecx, [esp + 0x80]
push eax
mov eax, ebp
cdq
sub eax, edx
push ecx
push 0
push 0
sar eax, 1
push eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0046a810
push 0
lea ecx, [esp + 0x64]
push 0
lea edx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0xb4]
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.0046a810
push 0
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0xc8]
push edi
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.0046a810
add esp, 0x54
jmp 0x46b62a
push 0
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x28]
push edi
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0046a810
lea ecx, [esp + 0x60]
lea edx, [esp + 0x50]
push ecx
mov eax, ebp
push edx
push 0
cdq
sub eax, edx
push 0
sar eax, 1
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.0046a810
add esp, 0x38
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46b657
test edx, edx
mov dword [esp + 0x74], edx
jle 0x46b676
lea edx, [esp + 0x2c]
push 0x20
lea eax, [esp + 0xdc]
push edx
push eax
jmp 0x46b66e
test edx, edx
mov dword [esp + 0x78], edx
jle 0x46b676
lea ecx, [esp + 0x2c]
push 0x20
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.0049ce10
add esp, 0xc
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x46b338
mov ebp, dword [esp + 0x134]
mov eax, dword [esp + 0x118]
mov ebx, dword [esp + 0x114]
push 0
push ebp
push eax
push ebx
push esi
call fcn.0046ac80
mov ecx, dword [esp + 0x120]
mov edi, eax
add esp, 0x14
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x84]
push eax
push ecx
mov ecx, esi
call fcn.004b7cca
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ecx
push eax
mov ecx, esi
call fcn.004b7d16
push 0
push ebx
push edi
push esi
call fcn.0046ad70
mov eax, dword [esp + 0x6c]
mov edi, 1
add esp, 0x10
cmp eax, edi
jne 0x46b70a
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x46b713
push 0
mov ecx, esi
call fcn.004b7c06
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x46b742
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x46b742
mov dword [esp + 0x4c], method.CGdiObject.virtual_0
mov dword [esp + 0x100], edi
jmp 0x46b9cb
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46b776
mov ebx, dword [esp + 0x74]
lea edx, [esp + 0xd8]
push 0x20
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0049ce10
mov edi, dword [esp + 0x128]
add esp, 0xc
jmp 0x46b798
mov ebx, dword [esp + 0x78]
lea ecx, [esp + 0xb8]
push 0x20
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0049ce10
mov edi, dword [esp + 0x134]
add esp, 0xc
test ebx, ebx
jle 0x46b9a6
push ebp
lea ecx, [esp + 0x68]
call fcn.004b8288
mov eax, ebp
lea ecx, [esp + 0x6c]
sub eax, 0xffffff
mov byte [esp + 0x100], 2
neg eax
sbb eax, eax
and eax, 0xffffff
push eax
call fcn.004b8288
mov ecx, dword [esi + 8]
push 2
push ecx
mov byte [esp + 0x108], 3
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call fcn.004b81b6
mov edx, dword [esp + 0x118]
push ebp
push edx
push 0
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], eax
call fcn.004b8238
lea eax, [esp + 0x54]
mov ecx, esi
push eax
mov byte [esp + 0x104], 4
call fcn.004b77d9
cmp edi, 2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], 0
je 0x46b845
cmp edi, 5
je 0x46b845
cmp edi, 7
je 0x46b845
cmp edi, 9
je 0x46b845
cmp edi, 0xb
je 0x46b845
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.004b77d9
jmp 0x46b859
lea edx, [esp + 0x6c]
mov ecx, esi
push edx
call fcn.004b77d9
mov dword [esp + 0x28], 1
cmp edi, 0xa
je 0x46b91b
cmp edi, 0xb
je 0x46b924
cmp edi, 3
jne 0x46b8b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x84]
push ecx
push edx
mov ecx, esi
call fcn.004b7cca
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.004b7d16
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
mov ecx, esi
call fcn.004b7d16
jmp 0x46b942
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_BeginPath]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
call fcn.004b7cca
cmp ebx, 1
jle 0x46b8f1
lea edi, [esp + 0x34]
dec ebx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
push ecx
push eax
mov ecx, esi
call fcn.004b7d16
add edi, 8
dec ebx
jne 0x46b8dd
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x46b90f
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_FillPath]
jmp 0x46b942
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_StrokeAndFillPath]
jmp 0x46b942
mov edx, dword [esi]
push 8
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [esp + 0x5c]
mov ecx, esi
push edx
call fcn.004b77d9
mov eax, dword [esp + 0x60]
mov ecx, esi
push eax
call fcn.004b77d9
mov edi, 0x4fd3f0
mov dword [esp + 0x54], edi
lea ecx, [esp + 0x54]
mov byte [esp + 0x100], 5
call fcn.004b8222
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x100], 6
call fcn.004b8222
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x64]
mov byte [esp + 0x100], 7
call fcn.004b8222
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x46b74a
mov dword [esp + 0x4c], method.CGdiObject.virtual_0
mov dword [esp + 0x100], 8
lea ecx, [esp + 0x4c]
call fcn.004b8222
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret