Function at 0x40188b
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call ebx
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test edi, edi
mov ebp, eax
jne 0x4018c7
test ebp, 0x40000000
je 0x4018b9
mov edx, dword [esi + 4]
push edx
call ebx
jmp 0x4018c5
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebp, 0x40000000
jne 0x401940
test edi, edi
je 0x4018fb
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x4018f9
test eax, 0x20000000
je 0x4018fb
xor edi, edi
lea eax, [esp + 0x24]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test edi, edi
jne 0x401932
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x40196d
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x40196d
mov eax, dword [esi + 4]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
push ebx
call ebp
lea edx, [esp + 0x14]
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 2
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
sub ebp, edx
mov edx, dword [esp + 0x14]
sub ebx, edi
lea eax, [ecx + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ebp
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x24]
cmp ecx, eax
jl 0x4019cb
mov eax, dword [esp + 0x2c]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x4019cd
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x28]
cmp edi, eax
jl 0x4019e2
mov eax, dword [esp + 0x30]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x4019e4
sub eax, ebp
mov edi, eax
mov eax, dword [esi + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x46c118]
mov edi, eax
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], edi
mov edi, dword [0x46c2d0]
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00401f90
cmp eax, 0xffffffff
jne 0x401a2f
xor edi, edi
jmp 0x401a35
mov ecx, dword [edi + 4]
mov edi, dword [ecx + eax*4]
mov edx, dword [0x46c118]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x401a52
lea eax, [esi + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x401a5a
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 4]
call fcn.00401d70
lea edx, [esi + 0x34]
lea edi, [esi + 0x20]
push 0
push edx
push 0x3f0
mov ecx, edi
call fcn.00401f20
lea eax, [esi + 0x30]
push 0
push eax
push 0x3f1
mov ecx, edi
call fcn.00401f20
push 0
push 0
push 0
lea ecx, [esi + 0x2c]
push 4
push ecx
push 0x3f3
mov ecx, edi
call fcn.00401dd0
test eax, eax
je 0x401aef
push 0
push 0
push 0
lea edx, [esi + 0x28]
push 4
push edx
push 0x3ef
mov ecx, edi
call fcn.00401dd0
test eax, eax
je 0x401aef
lea eax, [esi + 0x24]
push 0
push eax
push 0x3ee
mov ecx, edi
call fcn.004021b0
push 0
push 0
push 0
push 0
push 1
push edi
push 0x3f2
mov ecx, edi
call fcn.004021f0
mov ecx, dword [esi + 4]
push 0x3ee
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esi + 0x24], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x10