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

Disassembly:
push 0xffffffffffffffff
push 0x4cca67
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54e864]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov edi, dword [esp + 0x84]
mov eax, dword [edi + 0x18]
push eax
mov esi, ecx
call sub.mfc100.dll_Ordinal_4340
lea ebx, [edi + 0x1c]
push ebx
lea ecx, [esp + 0x54]
push ecx
mov ebp, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
test al, 1
je 0x46a445
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x2c], 1
mov edi, eax
and edi, 4
mov dword [esp + 0x4c], edi
je 0x46a467
mov edx, dword [esi + 0x98]
mov edi, 0x20
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], edi
xor edx, edx
jmp 0x46a477
mov edi, dword [esi + 0x94]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edx
mov edi, edx
cmp ecx, 4
jne 0x46a484
mov dword [esp + 0x3c], 1
cmp dword [esi + 0xac], edx
je 0x46a4a3
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x3c], 0
jne 0x46a7b2
cmp dword [esi + 0xac], 0
je 0x46a4ec
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
push 7
mov ecx, ebp
call eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x24]
push eax
mov ecx, ebp
call sub.mfc100.dll_Ordinal_11940
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 4]
or eax, 0x10
push eax
push 4
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFrameControl]
cmp byte [esi + 0xa4], 0
je 0x46a5cc
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], vtable.CPen.0
mov eax, dword [esi + 0xa8]
push eax
push 1
push ecx
mov dword [esp + 0x88], ecx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x34]
call sub.mfc100.dll_Ordinal_2184
test eax, eax
je 0x46a5b3
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call sub.mfc100.dll_Ordinal_11940
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [edx + ecx + 1]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
lea edi, [edx + ecx + 1]
lea ebx, [eax + 7]
mov dword [esp + 0x14], 8
jmp 0x46a584
mov eax, dword [esp + 0x24]
push edi
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
call sub.mfc100.dll_Ordinal_7927
push edi
push ebx
mov ecx, ebp
call sub.mfc100.dll_Ordinal_7491
inc edi
dec ebx
dec dword [esp + 0x14]
jne 0x46a580
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebp
call sub.mfc100.dll_Ordinal_11940
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x30], vtable.CPen.0
call fcn.00439e00
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x80], 1
call sub.mfc100.dll_Ordinal_6970
cmp dword [esi + 0x90], 0
mov ebx, dword [sym.imp.USER32.dll_DrawStateA]
jne 0x46a609
cmp dword [esi + 0x94], 0
je 0x46a6d6
cmp dword [esi + 0x74], 0
je 0x46a643
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x46a62b
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
jmp 0x46a651
mov ecx, dword [esi + 0x88]
add ecx, dword [esp + 0x50]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x1c], ecx
jmp 0x46a651
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0046a340
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, edx
add ecx, edx
mov edx, dword [esi + 0x90]
test edx, edx
je 0x46a6a6
mov ebx, edi
or ebx, 3
push ebx
mov ebx, dword [esi + 0xa0]
push ebx
mov ebx, dword [esi + 0x9c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DrawStateA]
push ecx
push eax
push 0
push edx
jmp 0x46a6cc
cmp dword [esi + 0x94], 0
je 0x46a6d6
mov edx, edi
or edx, 4
push edx
mov edx, dword [esi + 0xa0]
push edx
mov edx, dword [esi + 0x9c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x5c]
push 0
push eax
mov ecx, dword [ebp + 4]
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x46a7a0
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 8]
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
cmp dword [esi + 0x74], 0
je 0x46a738
cmp dword [esi + 0x90], 0
jne 0x46a71d
cmp dword [esi + 0x94], 0
jne 0x46a71d
mov dword [esp + 0x24], 0xffffffff
or eax, 0xffffffff
jmp 0x46a748
mov eax, dword [esi + 0x9c]
add eax, dword [esi + 0x8c]
add eax, dword [esi + 0x88]
mov dword [esp + 0x24], eax
or eax, 0xffffffff
jmp 0x46a748
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x84]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
dec edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x2c]
push edx
call fcn.0046a340
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add eax, ecx
or edi, 2
push edi
push 0
push 0
add edx, ecx
mov ecx, dword [esp + 0x34]
add ecx, edx
push ecx
mov ecx, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x2c]
push 0
push eax
push 0
push 0
push ecx
call ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], 0
jne 0x46a84d
mov edx, dword [esi + 0xb4]
xor edx, eax
test dl, 0x10
jne 0x46a7d5
cmp dword [esp + 0x3c], 0
jne 0x46a84d
test al, 0x10
je 0x46a84d
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
sub ecx, edx
sub eax, edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
mov edx, ecx
cmp ecx, eax
jl 0x46a801
mov edx, eax
and edx, 0xfffffffc
cmp edx, 0xc
jle 0x46a810
mov eax, 3
jmp 0x46a819
cmp ecx, eax
jge 0x46a816
mov eax, ecx
sar eax, 2
neg eax
push eax
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], ecx
jmp 0x46a859
mov dword [esi + 0xb0], ecx
mov dword [esi + 0xb4], eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004c6212
add esp, 0x6c
ret 4