Function at 0x519e40
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 0x519e85
mov edx, dword [esi + 4]
push edx
call ebp
jmp 0x519e91
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 0x519f08
test edi, edi
je 0x519ec3
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x519ec1
test eax, 0x20000000
je 0x519ec3
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 0x519efa
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 0x519f35
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x519f35
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 0x519f93
mov eax, dword [esp + 0x40]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x519f95
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp edi, eax
jl 0x519faa
mov eax, dword [esp + 0x44]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x519fac
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.00411430
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 0x51a044
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 0x51a081
mov ecx, dword [esi + 0x30]
push ebp
push ebx
push 0x416
push ecx
call edi
dec ebx
cmp ebx, 5
jge 0x51a06f
mov edx, dword [esi + 0x30]
push ebp
push 3
push 0x416
push edx
call edi
mov ecx, esi
call fcn.0051a630
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [0x553d94]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x55e380]
push ebx
call fcn.0042cee0
mov ecx, dword [0x553d94]
mov ebx, eax
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebp
je 0x51a0de
lea edx, [esi + 0x1c]
mov dword [esp + 0x10], edx
jmp 0x51a0e2
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
lea ecx, [ebx + 4]
push eax
call fcn.004ce5b0
cmp esi, ebp
je 0x51a0fc
add esi, 0x20
mov dword [esp + 0x10], esi
jmp 0x51a100
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebx + 0x10]
call fcn.004ce5b0
mov esi, dword [esp + 0x14]
push 0x553d98
push 0x553d98
mov edx, dword [esi]
push edx
call fcn.00518780
mov eax, dword [esi]
push ebp
push str.explorer
push eax
call fcn.00518780
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 [0x546560]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.Info
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x51a1bb
push ecx
call ebx
mov edi, eax
cmp edi, ebp
je 0x51a1bb
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x51a1bb
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.0042f4f0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51a220
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51a220
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [0x546560]
mov edx, 0x54fc48
test edx, edx
mov dword [esp + 0x10], ecx
je 0x51a269
push edx
call ebx
mov edi, eax
cmp edi, ebp
je 0x51a269
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x51a269
mov eax, dword [esp + 0x10]
inc edi
push edi
push 0x54fc48
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.0042f2e0
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.0042f2e0
lea ecx, [esp + 0x14]
call fcn.00405700
push ebp
push 0x25
mov ecx, esi
call fcn.0051ac90
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