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

Disassembly:
push 0xffffffffffffffff
push 0x43b7b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [0x47f070]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0xfc]
mov ebx, ecx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
xor eax, eax
xor ebp, ebp
mov ecx, 0xf
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
push 8
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0xb4], 0xc
mov dword [esp + 0xc4], 0x190
call sub.MFC71.DLL_operator_new
add esp, 4
cmp eax, ebp
je 0x410417
mov edi, eax
mov dword [eax + 4], ebp
mov dword [eax], 0x440db4
mov dword [esp + 0x18], edi
jmp 0x41041d
mov dword [esp + 0x18], ebp
mov edi, ebp
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, edi
call sub.MFC71.DLL_CGdiObject::Attach
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x30]
push 1
mov ecx, esi
mov dword [esp + 0x40], eax
call sub.MFC71.DLL_CDC::SetBkMode
mov ebp, dword [esp + 0x11c]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x7c]
mov edi, dword [ecx]
cmp edi, ecx
je 0x41072f
nop
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4105a6
mov eax, dword [eax + 0x80]
dec eax
cmp ecx, eax
je 0x4105a6
mov eax, dword [edi + 0x10]
cmp eax, dword [esp + 0x120]
je 0x410493
cmp eax, dword [ebx + 0x1d4]
jne 0x4106d2
push 0x80ff
push 1
push 2
lea ecx, [esp + 0x40]
call sub.MFC71.DLL_CPen::CPen
mov eax, dword [esi]
push 0x80ff
mov ecx, esi
mov byte [esp + 0xfc], 3
call dword [eax + 0x38]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject
lea edx, [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x98]
push ecx
mov ecx, ebx
call fcn.0040d980
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ebx
push ebp
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call sub.MFC71.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push ecx
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::LineTo
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edx, dword [edi + 0x10]
push edx
lea eax, [esp + 0x14]
push 0x441aec
push eax
mov byte [esp + 0x104], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
lea ecx, [ebp - 5]
add esp, 0xc
lea eax, [ebx + 0xa]
mov dword [esp + 0x58], ecx
push 0x26
lea ecx, [esp + 0x54]
add ebx, 0xfffffff6
push ecx
add ebp, 0xffffffec
mov dword [esp + 0x5c], ebx
mov ebx, dword [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [ebx + 0x70]
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject
lea ecx, [esp + 0x10]
call dword [0x43f434]
mov dword [esp + 0x34], 0x440da0
lea ecx, [esp + 0x34]
jmp 0x4106ba
push 0x80ff
push 1
push 0
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CPen::CPen
mov eax, dword [esi]
push 0x80ff
mov ecx, esi
mov byte [esp + 0xfc], 1
call dword [eax + 0x38]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject
lea edx, [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, ebx
call fcn.0040d980
mov ebp, dword [eax + 4]
mov ebx, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ebp
push ebx
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
call sub.MFC71.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ecx
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::LineTo
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edx, dword [edi + 0x10]
push edx
lea eax, [esp + 0x18]
push 0x441aec
push eax
mov byte [esp + 0x104], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
lea ecx, [ebx - 5]
add esp, 0xc
mov dword [esp + 0x48], ecx
lea eax, [ebp + 0xa]
push 0x26
lea ecx, [esp + 0x44]
add ebx, 0xffffffec
push ecx
add ebp, 0xfffffff6
mov dword [esp + 0x48], ebx
mov ebx, dword [esi]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [ebx + 0x70]
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject
lea ecx, [esp + 0x14]
call dword [0x43f434]
mov dword [esp + 0x2c], 0x440da0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf8], 0
call fcn.00439e10
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x11c]
mov ecx, dword [esp + 0x20]
mov al, byte [edi + 0x39]
inc ecx
test al, al
mov dword [esp + 0x20], ecx
jne 0x410723
mov eax, dword [edi + 8]
mov cl, byte [eax + 0x39]
test cl, cl
jne 0x410704
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x39]
test cl, cl
jne 0x410723
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x39]
test cl, cl
je 0x4106f7
jmp 0x410723
mov eax, dword [edi + 4]
mov cl, byte [eax + 0x39]
test cl, cl
jne 0x410721
mov edi, edi
cmp edi, dword [eax + 8]
jne 0x410721
mov edi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x39]
test cl, cl
je 0x410710
mov edi, eax
mov eax, dword [ebp + 4]
cmp edi, dword [eax + 0x7c]
jne 0x410460
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41074a
mov edx, dword [ecx]
push 1
call dword [edx + 4]
lea esi, [ebp + 0xc]
push esi
mov dword [esp + 0xfc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor bl, bl
dec eax
mov dword [ebp + 8], eax
jne 0x41076c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x410780
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe0]
pop ebx
xor ecx, esp
call fcn.0043a16b
add esp, 0xec
ret 0x24