Function at 0x51ab00
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x3f4
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [edi], eax
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
and ebx, 0x40000000
je 0x51ab45
mov edx, dword [esi + 4]
push edx
call ebp
jmp 0x51ab51
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x48]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
jne 0x51abc8
test edi, edi
je 0x51ab83
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x51ab81
test eax, 0x20000000
je 0x51ab83
xor edi, edi
lea eax, [esp + 0x38]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test edi, edi
jne 0x51abba
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x51abf5
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x51abf5
mov eax, dword [esi + 4]
push eax
call ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x38]
mov ebx, eax
push ecx
push ebx
call ebp
lea edx, [esp + 0x18]
push edx
push edi
call ebp
lea eax, [esp + 0x18]
push 2
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
sub ebp, edx
mov edx, dword [esp + 0x18]
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 + 0x1c]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x24]
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 + 0x38]
cmp ecx, eax
jl 0x51ac53
mov eax, dword [esp + 0x40]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x51ac55
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp edi, eax
jl 0x51ac6a
mov eax, dword [esp + 0x44]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x51ac6c
sub eax, ebp
mov edi, eax
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
xor ebp, ebp
push ecx
push ebp
push eax
call ebx
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [esi + 4]
push 0xe800
push 0x5600094c
push ebp
push 0xe1
push eax
call fcn.00411280
add esp, 0x14
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 4]
push 0x3ea
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov edi, eax
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edx
push eax
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebp
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x28]
push ecx
push edx
call edi
test eax, eax
je 0x51ad04
mov ecx, dword [esi + 4]
lea eax, [esp + 0x30]
push eax
push ecx
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub edx, eax
push ebp
push edx
mov edx, dword [esp + 0x38]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x30]
push ecx
push ebp
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x11
cmp ebx, 0xd
je 0x51ad41
mov ecx, dword [esi + 0x30]
push ebp
push ebx
push 0x416
push ecx
call edi
dec ebx
cmp ebx, 5
jge 0x51ad2f
mov edx, dword [esi + 0x30]
push ebp
push 3
push 0x416
push edx
call edi
mov ecx, esi
call fcn.0051b2f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [0x554e04]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x55f438]
push ebx
call fcn.0042cf80
mov ecx, dword [0x554e04]
mov ebx, eax
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebp
je 0x51ad9e
lea edx, [esi + 0x1c]
mov dword [esp + 0x10], edx
jmp 0x51ada2
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
lea ecx, [ebx + 4]
push eax
call fcn.00446df0
cmp esi, ebp
je 0x51adbc
add esi, 0x20
mov dword [esp + 0x10], esi
jmp 0x51adc0
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebx + 0x10]
call fcn.00446df0
mov esi, dword [esp + 0x14]
push 0x554e08
push 0x554e08
mov edx, dword [esi]
push edx
call fcn.005193e0
mov eax, dword [esi]
push ebp
push str.explorer
push eax
call fcn.005193e0
mov ecx, dword [esi]
add esp, 0x18
push ecx
call dword [sym.imp.USER32.dll_ShowCaret]
mov edx, dword [esi]
push ebp
push ebp
push 0x101c
push edx
call edi
mov eax, dword [esi]
push ebp
push ebp
push 0x101c
push eax
call edi
mov ecx, dword [esi]
push ebp
push ebp
push 0x101c
push ecx
call edi
mov edx, dword [esi]
push ebp
push ebp
push 0x101c
push edx
call edi
mov eax, dword [0x547570]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.Info
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x51ae7b
push ecx
call ebx
mov edi, eax
cmp edi, ebp
je 0x51ae7b
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x51ae7b
mov edx, dword [esp + 0x10]
inc edi
push edi
push str.Info
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], 7
mov dword [esp + 0x58], 0x64
call fcn.0042f5a0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51aee0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51aee0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [0x547570]
mov edx, 0x550cb8
test edx, edx
mov dword [esp + 0x10], ecx
je 0x51af29
push edx
call ebx
mov edi, eax
cmp edi, ebp
je 0x51af29
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x51af29
mov eax, dword [esp + 0x10]
inc edi
push edi
push 0x550cb8
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x32
push ebp
push ecx
push ebp
mov ecx, esi
call fcn.0042f390
lea ecx, [esp + 0x10]
call fcn.00405700
push str.Name
lea ecx, [esp + 0x18]
call fcn.00405730
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x64
push ebp
push eax
push ebp
mov ecx, esi
call fcn.0042f390
lea ecx, [esp + 0x14]
call fcn.00405700
push ebp
push 0x25
mov ecx, esi
call fcn.0051b950
mov edx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword [edx], 1
mov eax, 1
pop ebx
add esp, 0x58
ret 0x10