Function at 0x401fe0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4180a1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4219cc]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
push 1
mov ecx, esi
mov dword [esp + 0x50], 0
call sub.MFC80.DLL_Ordinal_5731
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x38], eax
add eax, ebx
mov dword [esp + 0x40], eax
lea edx, [edi + ecx]
push ebp
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edx
call sub.MFC80.DLL_Ordinal_2264
add dword [esp + 0x34], 0x16
push 0xc89696
push 1
push 0
lea ecx, [esp + 0x20]
call sub.MFC80.DLL_Ordinal_502
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0x50], 1
call sub.MFC80.DLL_Ordinal_5641
lea eax, [ebx - 0x12]
mov ebx, dword [esp + 0x58]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x38]
add edi, 2
mov dword [esp + 0x24], edi
add edi, 0x12
mov dword [esp + 0x28], eax
add eax, 0x12
cmp ebx, 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov ecx, esi
jne 0x4020b6
push 0xdcb4f0
lea edx, [esp + 0x28]
push edx
jmp 0x4020c0
push 0xfafafa
lea eax, [esp + 0x28]
push eax
call sub.MFC80.DLL_Ordinal_2264
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ecx, 1
push ecx
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add ecx, 0xffffffff
push ecx
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add eax, 0xffffffff
push eax
add ecx, 1
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add eax, 0xffffffff
add ecx, 0xffffffff
push eax
push ecx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add edx, 1
push edx
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add edx, 0xffffffff
push edx
add eax, 0xffffffff
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
add edx, 1
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ecx
add edx, 0xffffffff
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SetPixel]
push 0xc89696
add eax, 1
push eax
mov eax, dword [esi + 4]
add ecx, 1
push ecx
push eax
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0xc89696
add eax, 1
add ecx, 0xfffffffe
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 4]
push 0xc89696
add eax, 0xfffffffe
push eax
add ecx, 0xfffffffe
push ecx
push edx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push 0xc89696
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 4]
add ecx, 1
push ecx
push eax
call edi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
push eax
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 4]
push ebp
push ecx
add eax, 0xffffffff
push eax
push edx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push ebp
add eax, 0xffffffff
push eax
mov eax, dword [esi + 4]
add ecx, 0xffffffff
push ecx
push eax
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push ebp
add eax, 0xffffffff
push eax
push ecx
push edx
call edi
lea ecx, [esp + 0x14]
call sub.MFC80.DLL_Ordinal_1934
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
push 0x64c8c8
push 1
push 0
call edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC80.DLL_Ordinal_1280
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_5641
mov ecx, dword [esp + 0x28]
add ecx, 2
mov edx, dword [esp + 0x24]
push ecx
add edx, 1
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add ecx, 0xfffffffe
push ecx
add edx, 1
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add eax, 0xfffffffe
push eax
add ecx, 2
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add eax, 0xfffffffe
add ecx, 0xfffffffe
push eax
push ecx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add edx, 2
push edx
add eax, 0xfffffffe
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add edx, 0xfffffffe
push edx
add eax, 0xfffffffe
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ecx, 1
push ecx
add edx, 2
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, 1
push ecx
add edx, 0xfffffffe
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
cmp ebx, 1
jne 0x40242b
lea ecx, [esp + 0x14]
call sub.MFC80.DLL_Ordinal_1934
push 0xc8c864
push ebx
push 0
call edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC80.DLL_Ordinal_1280
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_5641
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ecx, 0xffffffff
push ecx
add edx, 0xffffffff
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push ecx
add edx, 0xffffffff
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0xffffffff
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add ecx, ebx
push eax
push ecx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add edx, 0xffffffff
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ecx, 0xffffffff
push ecx
add edx, 0xffffffff
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, 0xffffffff
push ecx
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
cmp byte [esp + 0x5c], 0
je 0x4024a6
lea ecx, [esp + 0x14]
call sub.MFC80.DLL_Ordinal_1934
push 0xff6464
push 2
push 0
call edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC80.DLL_Ordinal_1280
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_5641
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ecx, 0xa
push ecx
add edx, 2
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add ecx, 0xfffffffd
push ecx
add edx, 8
push edx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, 4
add ecx, 0xfffffffd
push eax
push ecx
mov ecx, esi
call sub.MFC80.DLL_Ordinal_4001
mov edx, dword [esi]
mov eax, dword [esp + 0x7c]
mov edx, dword [edx + 0x38]
push eax
mov ecx, esi
call edx
mov edi, dword [esi]
push 0x24
lea eax, [esp + 0x38]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x70]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edx, dword [edi + 0x70]
push eax
mov ecx, esi
call edx
cmp byte [esp + 0x60], 0
mov edi, vtable.CGdiObject.0
je 0x40251d
push 0xbeb4b4
lea ecx, [esp + 0x20]
call sub.MFC80.DLL_Ordinal_326
mov edx, dword [esi + 4]
mov eax, 3
add dword [esp + 0x38], eax
sub dword [esp + 0x40], eax
sub dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_FrameRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call sub.MFC80.DLL_Ordinal_1934
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
mov dword [esp + 0x14], edi
call sub.MFC80.DLL_Ordinal_1934
lea ecx, [esp + 0x64]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret