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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x90]
mov edx, dword [eax + 4]
xor ebx, ebx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, dword [esp + 0x94]
mov edi, eax
push 1
mov ecx, ebp
mov dword [esp + 0x2c], edi
call sub.MFC80U.DLL_Ordinal_5727
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
mov edx, dword [edx + 0x14c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], ecx
push ebp
mov ecx, esi
call edx
cmp dword [esi + 0x108], ebx
je 0x67b52d08
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x70]
push eax
add edi, 0xffffffff
push edi
call fcn.67b4bb90
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x4c]
mov eax, edi
cdq
lea ebx, [ecx - 4]
idiv ebx
xor ebx, ebx
mov edx, eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
add eax, 0xa
imul edx, eax
mov eax, dword [esp + 0x48]
cmp edx, eax
jle 0x67b52c02
sub edi, dword [esp + 0x74]
push 6
add ecx, edi
push ecx
push eax
push ebx
push ebx
mov dword [esp + 0x60], ecx
push ebx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_6061
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push 0xfffffffffffffffd
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x48]
push ebx
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esi + 0x90]
push ebx
call fcn.67b4bb90
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
sub ecx, dword [esp + 0x80]
mov dword [esp + 0x3c], edx
cdq
idiv ecx
lea edi, [ecx + 8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
cmp eax, ebx
jle 0x67b52d1a
mov ebx, eax
mov edi, edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x144], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x148], ecx
mov dword [esi + 0x14c], edx
mov edx, dword [esi]
mov edx, dword [edx + 0x148]
mov dword [esi + 0x150], eax
lea eax, [esp + 0x30]
push eax
push ebp
mov ecx, esi
call edx
mov eax, dword [esp + 0x60]
add dword [esp + 0x38], edi
add eax, edi
mov dword [esp + 0x60], eax
add eax, 2
push 0x76
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], eax
call sym.ImLookU.dll_Ordinal_994
mov ecx, eax
call sym.ImLookU.dll_Ordinal_434
push eax
push 0x75
call sym.ImLookU.dll_Ordinal_994
mov ecx, eax
call sym.ImLookU.dll_Ordinal_434
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_2066
sub ebx, 1
jne 0x67b52c80
jmp 0x67b52d1a
mov edx, dword [esi]
mov edx, dword [edx + 0x148]
lea eax, [esp + 0x40]
push eax
push ebp
mov ecx, esi
call edx
mov eax, dword [esi + 0x90]
mov eax, dword [eax + 4]
xor edi, edi
push edi
push 1
push eax
call dword [sym.imp.USER32.dll_GetMenuDefaultItem]
cmp dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 8
mov dword [esp + 0x1c], edi
jbe 0x67b52f56
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esi + 0x90]
push edi
call fcn.67b4bb90
cmp dword [esi + 0x108], 0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x50], edx
je 0x67b52ef5
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
lea eax, [ecx - 4]
cmp ebx, eax
jle 0x67b52ef5
mov eax, ebx
cdq
lea ebp, [ecx - 4]
idiv ebp
mov ebp, dword [esp + 0x14]
cmp ebp, eax
jg 0x67b52da4
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x18], ebp
je 0x67b52e5c
mov eax, dword [esi + 0x90]
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_GetMenuState]
push 0x400
push edi
push eax
call ebx
test eax, 0x800
je 0x67b52ded
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x94]
lea eax, [edx + ecx + 4]
mov dword [esp + 0x1c], eax
jmp 0x67b52f44
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 4]
push 0x400
push ecx
push edx
call ebx
test eax, 0x800
je 0x67b52e50
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, dword [esi + 0x90]
call fcn.67b4bb90
cmp dword [esp + 0x18], 0
jne 0x67b52e34
mov edx, dword [esp + 0x40]
mov dword [esp + 0x80], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x94]
mov eax, dword [eax + 0x148]
lea ecx, [esp + 0x80]
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x54]
imul ecx, ebp
mov edx, dword [esp + 0x50]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
sub eax, ecx
sub eax, dword [esp + 0x1c]
mov ecx, ebp
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x58]
push eax
mov dword [esp + 0x6c], edx
push ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x74], ebx
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
push edx
call ebx
mov ecx, dword [esp + 0x64]
cmp ecx, 4
jge 0x67b52f79
mov eax, 4
sub eax, ecx
add dword [esp + 0x20], eax
push eax
push 0
lea eax, [esp + 0x68]
push eax
call ebx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x90]
push edi
mov dword [esp + 0x64], edx
call fcn.67b4bbc0
mov ebp, dword [esp + 0x94]
mov ecx, dword [esi + 0x90]
push edi
call fcn.67b4bb70
cmp dword [esp + 0x2c], edi
mov ebx, eax
jne 0x67b52f0f
or ebx, 0x100
cmp dword [esi + 0x108], 0
je 0x67b52f24
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.67b4fd30
xor edx, edx
cmp dword [esi + 0xe4], edi
push ebx
sete dl
lea eax, [esp + 0x54]
lea ecx, [esp + 0x34]
push edx
push eax
push ebp
push edi
push ecx
mov ecx, esi
call fcn.67b522f0
add dword [esp + 0x10], 1
add edi, 1
cmp edi, dword [esp + 0x28]
jb 0x67b52d55
cmp dword [esi + 0x13c], 0
je 0x67b52fc4
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
sub eax, dword [esp + 0x40]
sub edi, dword [esp + 0x44]
xor ecx, ecx
xor edx, edx
test ebp, ebp
jne 0x67b52fa2
jmp 0x67b52fa5
mov edx, dword [esp + 0x4c]
add edx, 0xfffffffe
cmp dword [esp + 0x6c], edx
jle 0x67b52ec1
add ebp, 1
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x94]
sub edi, 1
sub dword [esp + 0x10], 1
jmp 0x67b52f44
mov ebp, dword [ebp + 4]
mov ebx, dword [esi + 0x1cc]
push ebx
push edx
push ecx
push edi
push eax
mov eax, dword [esi + 0x13c]
push ebp
push eax
call sym.ImLookU.dll_Ordinal_994
mov ecx, eax
call sym.ImLookU.dll_Ordinal_1595
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5829
pop edi
mov dword [esi + 0x140], 0
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4