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

Disassembly:
sub esp, 0x38
push esi
push edi
mov edi, dword [sym.imp.user32.dll_GetFocus]
mov esi, ecx
call edi
push eax
call fcn.004fe74c
test eax, eax
je 0x475ea7
push ebx
call edi
push eax
call fcn.004fe74c
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0x1c]
xor edi, edi
cmp eax, ecx
jne 0x475cdd
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x475cdd
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x475cdd
mov ecx, dword [esi + 0x74]
mov ebx, dword [esi + 0x78]
call fcn.004fc7ca
push ebx
mov ecx, esi
call fcn.00475030
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x50]
push ebp
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.user32.dll_GetSubMenu]
push eax
call fcn.00501a70
push edi
mov edi, dword [sym.imp.user32.dll_SendMessageA]
push 0xffffffffffffffff
mov ebp, eax
mov eax, dword [esi + 0x1c]
push 0x448
push eax
call edi
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x1c]
push 1
push ecx
push 0x403
push edx
call edi
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 4]
movzx ebx, word [esi + 0x64]
mov dword [esp + 0x10], ecx
mov ecx, esi
or ebx, 0x80900000
call fcn.004ff156
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x1c]
push edx
push ebx
push 0x11f
push eax
call edi
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x41d
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00504f41
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
call fcn.004fe74c
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.user32.dll_GetWindowRect]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call dword [sym.imp.user32.dll_IntersectRect]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], 0x14
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [0x592420], esi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
xor ebx, ebx
push ebx
push 0x475ac0
push 0xffffffffffffffff
call dword [sym.imp.user32.dll_SetWindowsHookExA]
cmp ebp, ebx
mov dword [0x592424], eax
jne 0x475e01
xor ebp, ebp
jmp 0x475e04
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push 0x1042
push ebp
call dword [sym.imp.user32.dll_TrackPopupMenuEx]
mov eax, dword [0x592424]
push eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x1c]
push ebx
push ecx
push 0x403
push edx
mov dword [0x592424], ebx
mov dword [0x592420], ebx
call edi
cmp dword [esi + 0x7c], ebx
jne 0x475e71
cmp dword [esi + 0x78], ebx
je 0x475e71
cmp dword [esi + 0xbc], ebx
jne 0x475e71
mov eax, dword [esi + 0x1c]
push 0x105
push ebx
push ebx
push eax
mov dword [esi + 0x78], ebx
call dword [sym.imp.user32.dll_RedrawWindow]
cmp dword [esi + 0x80], ebx
jne 0x475ea5
mov eax, dword [esi + 0x50]
cmp eax, ebx
jne 0x475e84
xor ebp, ebp
jmp 0x475e87
mov ebp, dword [eax + 4]
movzx ebx, word [esi + 0x64]
mov ecx, esi
or ebx, 0xffff0000
call fcn.004ff156
mov ecx, dword [eax + 0x1c]
push ebp
push ebx
push 0x11f
push ecx
call edi
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x38
ret