Function at 0x40fb08
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x421be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call sub.MFC70.DLL_Ordinal_983
xor edi, edi
cmp eax, edi
je 0x40fb28
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov dword [esp + 0xc], eax
jmp 0x40fb2c
mov dword [esp + 0xc], edi
call dword [sym.imp.BCGCBPRO720.dll_public:_static_struct_CRuntimeClass____stdcall_CBCGPMDIFrameWnd::GetThisClass_void_]
mov ecx, dword [esp + 0xc]
push eax
call sub.MFC70.DLL_Ordinal_3754
test eax, eax
je 0x40fdcf
mov eax, dword [esi + 0x20]
push ebx
push edi
push edi
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
dec ebx
mov dword [esp + 0x14], ebx
js 0x40fdce
push ebp
jmp 0x40fb70
mov esi, dword [esp + 0x1c]
xor edi, edi
lea esp, [esp]
push 7
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x30], edi
call sub.MFC70.DLL_Ordinal_2695
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x58], edi
call dword [sym.imp.MSVCR70.dll_atoi]
add esp, 4
push 6
mov ebp, eax
push ebx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call sub.MFC70.DLL_Ordinal_2695
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
mov byte [esp + 0x54], 1
je 0x40fbff
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jge 0x40fbd5
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401960
jmp 0x40fbff
push ecx
call fcn.004013a0
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40fbf4
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, 3
jne 0x40fc4e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR70.dll_atol]
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push 0x40ef00
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40fd7e
cmp ebp, 5
jne 0x40fcab
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCR70.dll_atol]
add esp, 4
push eax
call sub.MFC70.DLL_Ordinal_2201
mov ebp, eax
call sub.MFC70.DLL_Ordinal_983
test eax, eax
je 0x40fc7d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov edi, eax
jmp 0x40fc7f
xor edi, edi
mov esi, 0xab7d
push esi
mov ecx, edi
call fcn.00403c90
cmp eax, ebp
je 0x40fc9e
inc esi
cmp esi, 0xab86
jle 0x40fc84
jmp 0x40fd7e
mov dword [esp + 0x24], 1
jmp 0x40fd9c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR70.dll_atol]
add esp, 4
push eax
call sub.MFC70.DLL_Ordinal_2201
push 0xa
lea ecx, [esp + 0x34]
mov ebx, eax
call sub.MFC70.DLL_Ordinal_390
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x54], 2
call dword [sym.imp.BCGCBPRO720.dll_public:_class_CObList_const____thiscall_CBCGPMDIFrameWnd::GetMDITabGroups_void_const]
push eax
lea ecx, [esp + 0x34]
call sub.MFC70.DLL_Ordinal_891
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40fd6c
lea ecx, [ecx]
mov eax, ebp
mov ecx, dword [eax + 8]
mov ebp, dword [ebp]
push ecx
call dword [sym.imp.BCGCBPRO720.dll_public:_static_struct_CRuntimeClass____stdcall_CBCGPTabWnd::GetThisClass_void_]
push eax
call sub.MFC70.DLL_Ordinal_946
mov esi, eax
mov edx, dword [esi]
add esp, 8
mov ecx, esi
xor edi, edi
call dword [edx + 0x180]
test eax, eax
jle 0x40fd56
lea ebx, [ebx]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x184]
push eax
call dword [sym.imp.BCGCBPRO720.dll_public:_static_struct_CRuntimeClass____stdcall_CBCGPMDIChildWnd::GetThisClass_void_]
push eax
call sub.MFC70.DLL_Ordinal_946
add esp, 8
test eax, eax
je 0x40fd47
mov ecx, dword [eax + 0x20]
cmp ecx, dword [ebx + 0x20]
je 0x40fd64
mov edx, dword [esi]
mov ecx, esi
inc edi
call dword [edx + 0x180]
cmp edi, eax
jl 0x40fd20
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40fd6c
test ebp, ebp
jne 0x40fcf0
jmp 0x40fd6c
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
call sub.MFC70.DLL_Ordinal_618
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40fd9c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
push 0
push ebx
push 0x1008
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
dec ebx
mov dword [esp + 0x18], ebx
jns 0x40fb66
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret