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

Disassembly:
jmp 0x40e350
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34]
cmp eax, 1
jne 0x40e483
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x58]
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x58]
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
push ecx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x58]
call sub.MFC42.DLL_CDC::MoveTo
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x58]
push ebx
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 0x6c]
mov ecx, edi
cmp edi, eax
jl 0x40e3bc
mov ecx, eax
mov edx, dword [esi + 0x64]
cmp ecx, edx
jge 0x40e3d3
cmp edi, eax
jge 0x40e3cd
mov dword [esp + 0x18], edi
jmp 0x40e3d7
mov dword [esp + 0x18], eax
jmp 0x40e3d7
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x70]
mov ecx, ebx
cmp ebx, edx
jl 0x40e3e2
mov ecx, edx
mov ebp, dword [esi + 0x68]
cmp ecx, ebp
jge 0x40e3f9
cmp ebx, edx
jge 0x40e3f3
mov dword [esp + 0x1c], ebx
jmp 0x40e3fd
mov dword [esp + 0x1c], edx
jmp 0x40e3fd
mov dword [esp + 0x1c], ebp
cmp edi, eax
mov ecx, edi
jg 0x40e405
mov ecx, eax
mov ebp, dword [esi + 0x64]
cmp ecx, ebp
jle 0x40e41c
cmp edi, eax
jle 0x40e416
mov dword [esp + 0x20], edi
jmp 0x40e420
mov dword [esp + 0x20], eax
jmp 0x40e420
mov dword [esp + 0x20], ebp
cmp ebx, edx
mov eax, ebx
jg 0x40e428
mov eax, edx
mov ecx, dword [esi + 0x68]
cmp eax, ecx
jle 0x40e43f
cmp ebx, edx
jle 0x40e439
mov dword [esp + 0x24], ebx
jmp 0x40e443
mov dword [esp + 0x24], edx
jmp 0x40e443
mov dword [esp + 0x24], ecx
mov ecx, esi
call fcn.00401753
mov eax, dword [eax]
lea edx, [esp + 0x18]
shl eax, 1
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InflateRect]
push 0
lea eax, [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
push eax
call fcn.004018e8
mov ecx, esi
call fcn.00401140
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
test eax, eax
je 0x40e61c
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x80]
lea ebx, [esi + 0x7c]
lea ebp, [esi + 0x74]
cmp edx, eax
jne 0x40e4eb
cmp dword [ebp + 4], ecx
jne 0x40e4eb
mov eax, dword [esi + 0x8c]
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x90]
cmp edx, eax
jne 0x40e4eb
cmp dword [esi + 0x88], ecx
jne 0x40e4eb
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
push ecx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x58]
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x58]
push eax
call sub.MFC42.DLL_CDC::LineTo
jmp 0x40e4fb
mov edx, dword [esi + 0x58]
push 4
push ebp
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_PolyBezier]
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x10], 3
mov edi, dword [edx + 4]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jge 0x40e52a
mov dword [esp + 0x1c], edi
mov edi, dword [edx + 4]
mov eax, dword [esp + 0x24]
cmp edi, eax
jle 0x40e539
mov dword [esp + 0x24], edi
mov edi, dword [edx]
mov eax, dword [esp + 0x18]
cmp edi, eax
jge 0x40e547
mov dword [esp + 0x18], edi
mov edi, dword [edx]
cmp edi, ecx
jle 0x40e553
mov ecx, edi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x10]
add edx, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x40e51b
cmp dword [esi + 0x34], 2
jne 0x40e57c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [esi + 0x84], eax
jmp 0x40e595
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0x2c]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 4], edx
mov dword [esi + 0x84], eax
mov edx, dword [esi + 0x58]
mov dword [esi + 0x88], ecx
push 4
push ebp
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_PolyBezier]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, 4
mov eax, dword [ebp + 4]
cmp eax, edx
jge 0x40e5c1
mov edx, eax
cmp eax, dword [esp + 0x24]
jle 0x40e5cb
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
cmp eax, ecx
jge 0x40e5d4
mov ecx, eax
cmp eax, dword [esp + 0x20]
jle 0x40e5de
mov dword [esp + 0x20], eax
add ebp, 8
dec edi
jne 0x40e5b8
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.00401753
mov eax, dword [eax]
lea ecx, [esp + 0x18]
shl eax, 1
push eax
push eax
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
push 0
lea edx, [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
push edx
call fcn.004018e8
mov ecx, esi
call fcn.00401140
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc