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

Disassembly:
push 0xffffffffffffffff
push 0x41cc3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x54]
xor ebp, ebp
push eax
mov ecx, edi
mov dword [esp + 0xa8], ebp
call sub.MFC42.DLL_CWnd::GetWindowTextA
push 0x4272e0
push 0x426124
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::Replace_1
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
neg eax
neg ecx
push eax
lea eax, [esp + 0x7c]
push ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [edi + 0x4c]
cmp ecx, ebp
je 0x402cec
xor edx, edx
mov dword [esp + 0xb0], edx
jmp switch.0x00402cfc
mov edx, dword [esp + 0xb0]
cmp edx, 4
ja case.default.0x402cfc
jmp dword [edx*4 + 0x403b7c]
mov eax, dword [edi + 0x94]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xa8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xbc]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xd0]
jmp 0x402dc2
mov eax, dword [edi + 0x98]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xac]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xd4]
jmp 0x402dc2
mov eax, dword [edi + 0x9c]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xb0]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xd8]
jmp 0x402dc2
mov eax, dword [edi + 0xa0]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc8]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xdc]
jmp 0x402dc2
mov eax, dword [edi + 0xa4]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xb8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xcc]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xe0]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0xac]
cmp eax, ebp
je 0x402e49
mov ecx, dword [edi + 0x90]
push ecx
mov ecx, dword [edi + 0x8c]
push ecx
mov ecx, dword [edi + 0x88]
push ecx
mov ecx, dword [edi + 0x84]
push ecx
mov ecx, dword [edi + 0x80]
push ecx
mov ecx, dword [edi + 0x7c]
push ecx
mov ecx, dword [edi + 0x78]
push ecx
mov ecx, dword [edi + 0x74]
push ecx
mov ecx, dword [edi + 0xe8]
push ecx
mov ecx, dword [edi + 0x70]
push ecx
push edx
push 5
push eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
sub esp, 0x10
mov edx, esp
push esi
mov dword [edx], eax
mov eax, dword [esp + 0xc8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xcc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [edi + 0x54]
call fcn.0041afd0
jmp 0x402ebc
cmp dword [edi + 0x48], ebp
jne 0x402ebc
cmp dword [edi + 0x44], ebp
jne 0x402ebc
cmp ecx, ebp
jne 0x402ebc
xor ecx, ecx
xor eax, eax
push ecx
mov ecx, dword [esp + 0x5c]
cmp edx, 3
mov edx, dword [esp + 0x30]
push eax
push 1
setne al
dec eax
and eax, 2
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [edi + 0xf0]
push edx
mov edx, dword [edi + 0xec]
push eax
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0xa0]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [eax + 8], ecx
lea ecx, [edi + 0x54]
mov dword [eax + 0xc], edx
call fcn.0041ac20
mov ecx, dword [edi + 0x44]
xor eax, eax
xor ebx, ebx
cmp ecx, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], ebx
jne 0x402eff
cmp dword [edi + 0x48], ebp
jne 0x402eff
mov ecx, dword [edi + 0x60]
cmp ecx, ebp
je 0x402f0e
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x34]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x5c], eax
jmp 0x402f0a
mov eax, 0xc
mov dword [esp + 0x5c], eax
mov ebx, eax
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x10], ebp
cmp dword [ecx - 8], edx
je 0x4030f3
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CWnd::GetStyle
test ah, 0x20
je 0x4030b6
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStringArray::CStringArray
lea edx, [esp + 0x54]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0xa8], 1
call sub.MFC42.DLL_CString::CString_3
push 0x426120
push 0x42611c
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 2
call sub.MFC42.DLL_CString::Replace_1
push 0xd
push 0xa
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40304c
push 0xd
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403021
lea ecx, [esp + 0x88]
push ebx
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 3
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
sub eax, ebx
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x40303d
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x402f94
mov eax, dword [esp + 0x3c]
xor ebx, ebx
test eax, eax
jle 0x403092
mov edx, dword [esp + 0x38]
mov eax, dword [edx + ebx*4]
lea edx, [esp + 0x70]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x70]
cmp ebp, eax
jg 0x40307b
mov ebp, eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
add edx, ecx
inc ebx
mov dword [esp + 0x18], edx
cmp ebx, eax
jl 0x403056
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xa4], 0
call fcn.0041c0de
jmp 0x4030da
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x70]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x4c]
mov edx, ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x88], edx
mov dword [esp + 0x10], ebp
xor ecx, ecx
cmp dword [edi + 0x60], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
jne 0x403112
cmp dword [edi + 0x48], ecx
jne 0x403112
cmp dword [edi + 0x44], ecx
jne 0x403112
mov dword [esp + 0x1c], ecx
jmp 0x40311c
mov ecx, dword [edi + 0x110]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x40312b
cmp ecx, 1
jne 0x4031a7
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], ebx
add edx, ecx
add eax, edx
cmp ebx, ebp
mov dword [esp + 0x6c], eax
jg 0x403143
mov dword [esp + 0x68], ebp
mov ecx, dword [edi + 0x10c]
mov eax, ecx
neg eax
sbb eax, eax
and eax, edx
cmp ebx, ebp
mov dword [esp + 0x14], eax
jl 0x40315d
xor ebx, ebx
jmp 0x40316c
mov edx, dword [esp + 0x4c]
mov eax, ebp
sub eax, edx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ecx, 1
jne 0x40317b
mov dword [esp + 0x24], 0
jmp 0x403189
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x4c], ebp
jg 0x403193
xor ebp, ebp
jmp 0x4031af
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x10]
sub eax, ebp
inc eax
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x4031af
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
cmp ecx, 2
je 0x4031bd
cmp ecx, 3
jne 0x40324d
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x88]
cmp ecx, ebp
mov dword [esp + 0x6c], ecx
jg 0x4031d4
mov dword [esp + 0x6c], ebp
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add eax, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
add eax, edx
cmp ecx, ebp
mov dword [esp + 0x68], eax
jl 0x4031fa
mov dword [esp + 0x14], 0
jmp 0x403207
mov eax, ebp
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov ebx, dword [edi + 0x10c]
mov edx, dword [esp + 0x5c]
sub ebx, 2
neg ebx
sbb ebx, ebx
and ebx, edx
cmp ecx, ebp
jg 0x403228
mov dword [esp + 0x24], 0
jmp 0x403235
mov eax, ecx
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
cmp dword [edi + 0x10c], 3
jne 0x403242
xor ebp, ebp
jmp 0x40324d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
lea ebp, [eax + ecx]
mov eax, dword [edi + 0x118]
mov ecx, eax
and ecx, 1
mov dword [esp + 0x1c], ecx
je 0x40327a
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x4032a1
test al, 2
je 0x40329b
mov ecx, dword [esp + 0x80]
mov eax, dword [edi + 0x11c]
mov edx, dword [esp + 0x6c]
sub ecx, eax
mov eax, dword [esp + 0x78]
sub ecx, edx
sub ecx, eax
jmp 0x4032a1
mov ecx, dword [edi + 0x11c]
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x4c], ecx
test eax, eax
je 0x4033df
test byte [edi + 0x118], 2
je 0x4032ce
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [edi + 0x11c]
sar eax, 1
neg eax
sub eax, edx
jmp 0x4032e7
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4032ed
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [edi + 0x11c]
sar eax, 1
add eax, edx
add ecx, eax
mov dword [esp + 0x4c], ecx
mov eax, dword [edi + 0x120]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
add edx, ecx
add ebx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
add ebp, eax
mov eax, dword [esp + 0xb0]
add edx, ecx
cmp eax, 2
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
jne 0x403337
mov eax, dword [edi + 0x124]
mov ecx, dword [edi + 0x128]
add edx, eax
add ebp, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x40342f
mov ecx, dword [edi + 0x48]
test ecx, ecx
jne 0x40342f
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4038d9
mov eax, dword [eax + 4]
lea edx, [esp + 0x34]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb0]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
cmp ecx, 4
sete dl
mov ecx, edx
xor ebp, ebp
imul ecx, eax
inc edx
sub esp, 0x10
imul edx, eax
mov eax, esp
mov dword [eax], ecx
mov ecx, esp
sub esp, 0x10
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov edx, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [edx], eax
mov ecx, dword [edi + 0xe4]
xor eax, eax
push ecx
mov dword [edx + 4], ebx
push 1
lea ecx, [edi + 0x54]
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov edx, dword [edi + 0x60]
push edx
push esi
call fcn.0041a520
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
jmp 0x4038dd
mov eax, dword [edi + 0x118]
test al, 4
je 0x403407
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x68]
sub eax, edx
mov edx, dword [esp + 0x7c]
sub eax, edx
inc eax
cdq
sub eax, edx
sar eax, 1
jmp 0x4032f3
test al, 8
je 0x4032ed
mov eax, dword [esp + 0x84]
mov edx, dword [edi + 0x120]
sub eax, edx
mov edx, dword [esp + 0x68]
sub eax, edx
mov edx, dword [esp + 0x7c]
sub eax, edx
jmp 0x4032f3
mov ebp, dword [esp + 0x14]
lea ecx, [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xb0]
lea edx, [ebp + 0xc]
cmp ecx, 3
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
jne 0x403463
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x403463
mov ebx, 2
jmp 0x403465
xor ebx, ebx
xor edx, edx
xor ecx, ecx
push edx
mov edx, dword [esp + 0x30]
neg eax
push ecx
mov ecx, dword [esp + 0x60]
push 1
push ebx
mov ebx, dword [esp + 0x40]
push ecx
sbb eax, eax
push edx
and eax, 0xa
push ebx
push eax
push eax
mov ecx, dword [esp + 0x5c]
sub esp, 0x10
mov edx, dword [esp + 0x70]
mov eax, esp
push esi
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea ecx, [edi + 0x54]
call fcn.0041ac20
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4036ba
cmp dword [esp + 0xb0], 3
jne 0x4036ba
push ebx
push 1
push 0
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0x70]
mov ecx, esi
push edx
mov byte [esp + 0xa8], 5
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add ecx, 5
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add ecx, 7
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
push edx
push 1
push 0
call sub.MFC42.DLL_CPen::CPen
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
mov byte [esp + 0xa8], 6
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ecx, 0xb
add edx, 5
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ecx, 0xb
add edx, 7
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x2c]
mov edx, ebx
mov eax, ecx
shr eax, 0x10
shr edx, 0x10
and eax, 0xff
and edx, 0xff
add eax, edx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov dh, al
xor eax, eax
mov al, ch
xor ecx, ecx
mov cl, bh
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x1c], edx
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x1c]
mov edx, ebx
mov cl, al
mov eax, dword [esp + 0x2c]
and eax, 0xff
and edx, 0xff
add eax, edx
cdq
sub eax, edx
sar eax, 1
shl ecx, 8
and eax, 0xff
or ecx, eax
push ecx
push 1
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CPen::CPen
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov byte [esp + 0xa8], 7
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ecx, 5
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ecx, 7
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add eax, 5
add ecx, 0xb
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add eax, 7
add ecx, 0xb
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov dword [esp + 0x14], 0x41fabc
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 8
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebp, 0x41f7b4
mov dword [esp + 0x5c], 0x41fabc
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa4], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x70], 0x41fabc
lea ecx, [esp + 0x70]
mov byte [esp + 0xa4], 0xa
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0xa4], 0
jmp 0x4036ca
mov eax, dword [esp + 0xb0]
mov ebp, dword [esp + 0x64]
cmp eax, 4
je 0x4036cf
mov ebp, 0xff
mov eax, dword [edi + 0x40]
mov dword [esp + 0x5c], ebp
cmp eax, 1
jne 0x4038af
mov eax, dword [edi + 0x44]
test eax, eax
je 0x403774
push 3
push 3
push 4
push 4
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CRect::DeflateRect
push ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CBrush::CBrush
mov edx, dword [esi]
push 8
mov ecx, esi
mov byte [esp + 0xa8], 0xb
call dword [edx + 0x2c]
lea eax, [esp + 0x14]
test eax, eax
je 0x403731
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403731
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 2
push 2
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_RoundRect]
mov dword [esp + 0x14], 0x41fabc
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0xc
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0xa4], 0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4038af
push ebp
push 1
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0xd
test ecx, ecx
je 0x4037b0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4037b0
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x70]
lea ebx, [ecx - 1]
lea ebp, [eax + 0xc]
push ebx
push ebp
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [ebp + 2]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
dec ebp
inc ebx
push ebx
lea ecx, [esp + 0x74]
push ebp
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea edx, [ebp + 2]
push ebx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
dec ebp
inc ebx
mov dword [esp + 0x1c], 1
push ebx
lea eax, [esp + 0x74]
push ebp
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x1c]
add ecx, ebx
push ecx
push ebp
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
dec ebp
inc ebx
push ebx
lea edx, [esp + 0x90]
push ebp
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x1c]
mov ecx, esi
add eax, ebx
push eax
push ebp
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x1c]
dec ebp
inc ebx
inc eax
cmp eax, 4
mov dword [esp + 0x1c], eax
jl 0x4037fe
dec ebx
mov dword [esp + 0x1c], 4
push ebx
lea ecx, [esp + 0x90]
push ebp
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x1c]
mov ecx, esi
add edx, ebx
push edx
push ebp
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x1c]
dec ebp
dec ebx
dec eax
cmp eax, 1
mov dword [esp + 0x1c], eax
jg 0x403856
mov dword [esp + 0x14], 0x41fabc
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0xe
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x30]
mov byte [esp + 0xa4], 0
cmp dword [edi + 0x40], 2
jne 0x4038d3
push 3
push 3
push 3
push 3
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CRect::DeflateRect
lea eax, [esp + 0x34]
push ebp
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::FillSolidRect
mov ebp, dword [esp + 0x28]
jmp 0x4038dd
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx - 8]
test eax, eax
je 0x403959
cmp dword [esp + 0x64], 0xffffffff
je 0x403959
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x38], ebp
lea eax, [edx + ebp]
mov edx, dword [esp + 0x24]
add ecx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov dword [esp + 0x40], eax
call sub.MFC42.DLL_CWnd::GetStyle
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [esp + 0x64]
mov ecx, esi
not ebx
and ebx, 0x2000
push eax
or bh, 5
shr ebx, 8
call dword [edx + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esp + 0x54]
mov edx, dword [esi]
push ebx
lea ebx, [esp + 0x38]
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ebx, dword [esp + 0x30]
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x403b4a
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x403b4a
or eax, 0xffffffff
cmp ebx, eax
je 0x40397c
cmp dword [esp + 0x2c], eax
jne 0x403986
cmp dword [esp + 0x58], eax
je 0x403b4a
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov eax, dword [ecx - 8]
test eax, eax
je 0x403af3
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
push ecx
lea eax, [esp + 0x38]
xor ebp, ebp
push edx
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x11c]
push ebp
push eax
push ebp
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CRect::InflateRect
mov eax, 0x41fad0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], eax
mov ebp, dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0xa8], 0x10
call ebp
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x34]
push edx
call ebp
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
neg eax
sbb eax, eax
push 3
and eax, ebp
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea eax, [esp + 0x24]
test eax, eax
je 0x403a90
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403a90
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub eax, ecx
push 0
cdq
sub eax, edx
push 0
sar eax, 1
add eax, ecx
lea ecx, [esp + 0x94]
push eax
push 0
call sub.MFC42.DLL_CRect::DeflateRect
mov ebp, 0x41fabc
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0x11
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x14], 0x41f7b4
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 0x12
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0xa4], 0
mov edx, dword [esp + 0x58]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esp + 0x34]
push 1
push ecx
mov ecx, dword [edi + 0xf0]
push edx
mov edx, dword [edi + 0xec]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0xb4]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0xcc]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xd0]
mov dword [eax + 8], ecx
lea ecx, [edi + 0x54]
mov dword [eax + 0xc], edx
call fcn.0041ac20
lea ecx, [esp + 0x54]
mov dword [esp + 0xa4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret 8