Function at 0x47c960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xaa0]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004a57a5
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
mov edi, eax
lea eax, [esp + 0x30]
mov ecx, dword [edi + 0x1c]
push eax
push ecx
call ebx
lea edx, [esp + 0x30]
mov ecx, edi
push edx
call fcn.004ad279
mov eax, dword [esi + 0x64]
mov edi, 0xa000
test edi, eax
je 0x47c9fe
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
cmp eax, ebp
mov ecx, eax
jl 0x47c9e6
mov ecx, ebp
mov edx, dword [esp + 0x34]
cmp edx, ecx
jle 0x47c9f4
mov dword [esp + 0x14], edx
jmp 0x47ca24
cmp eax, ebp
jge 0x47ca24
mov dword [esp + 0x14], eax
jmp 0x47ca24
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
cmp eax, ebp
mov ecx, eax
jl 0x47ca0e
mov ecx, ebp
mov edx, dword [esp + 0x30]
cmp edx, ecx
jle 0x47ca1c
mov dword [esp + 0x10], edx
jmp 0x47ca24
cmp eax, ebp
jge 0x47ca24
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
test dword [esi + 0x64], edi
mov eax, dword [esp + 0x1c]
jne 0x47ca50
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esi + 0xaa0], eax
call ebx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004ad279
test dword [esi + 0x64], edi
je 0x47caae
push 0
lea ecx, [esp + 0x24]
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x64]
test ah, 0x82
je 0x47ca9d
mov edx, dword [esp + 0x14]
lea eax, [edx + 3]
mov dword [esp + 0x24], eax
add eax, 3
mov dword [esp + 0x2c], eax
jmp 0x47cae1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
add eax, 0xfffffffd
mov dword [esp + 0x24], eax
jmp 0x47cae1
push 0xfffffffffffffffe
lea eax, [esp + 0x24]
push 0
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x64]
test ah, 0x14
mov eax, dword [esp + 0x10]
je 0x47cad6
mov dword [esp + 0x20], eax
add eax, 3
mov dword [esp + 0x28], eax
jmp 0x47cae1
mov dword [esp + 0x28], eax
add eax, 0xfffffffd
mov dword [esp + 0x20], eax
push 0
lea ecx, [esp + 0x44]
call fcn.004ad3cf
lea edi, [esi + 0xa8c]
mov dword [esp + 0x5c], 0
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x47cb12
lea ecx, [esp + 0x40]
push edi
push ecx
mov ecx, esi
call fcn.0047ce00
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, edi
push edi
mov dword [edx], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.0047ce00
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004ad441
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret