Function at 0x412540
Capabilities:
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x844
mov eax, dword [0x44e310]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0
call esi
push 1
lea ebx, [eax - 1]
call esi
push 0x206
lea edi, [eax - 1]
xor eax, eax
push eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
call fcn.0042e710
xor eax, eax
push 0x206
push eax
mov word [esp + 0x44c], ax
lea eax, [esp + 0x44e]
push eax
call fcn.0042e710
xor eax, eax
push 0x206
push eax
mov word [esp + 0x250], ax
lea eax, [esp + 0x252]
push eax
call fcn.0042e710
xor eax, eax
push 0x206
push eax
mov word [esp + 0x66c], ax
lea eax, [esp + 0x66e]
push eax
call fcn.0042e710
mov esi, dword [sym.imp.USER32.dll_WindowFromPoint]
add esp, 0x30
push 1
push 1
call esi
push 1
push ebx
mov dword [esp + 0x18], eax
call esi
push edi
push 1
mov dword [esp + 0x14], eax
call esi
push edi
push ebx
mov dword [esp + 0x1c], eax
call esi
mov ebx, dword [esp + 0x10]
mov edi, eax
test ebx, ebx
je 0x41280d
cmp dword [esp + 0xc], 0
je 0x41280d
cmp dword [esp + 0x14], 0
je 0x41280d
test edi, edi
je 0x41280d
mov esi, dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x28]
push 0x104
push eax
push ebx
call esi
push 0x104
lea eax, [esp + 0x43c]
push eax
push dword [esp + 0x14]
call esi
push 0x104
lea eax, [esp + 0x234]
push eax
push dword [esp + 0x1c]
call esi
push 0x104
lea eax, [esp + 0x644]
push eax
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x1c]
push eax
push ebx
call esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x10]
call esi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call esi
lea eax, [esp + 0x18]
push eax
push edi
call esi
cmp ebx, dword [esp + 0xc]
jne 0x4126d3
cmp ebx, dword [esp + 0x14]
jne 0x4126d3
cmp ebx, edi
jne 0x4126d3
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4126e0
sub eax, edx
sar eax, 1
je 0x4127b3
lea ecx, [esp + 0x438]
lea eax, [esp + 0x28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412726
test dx, dx
je 0x412722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412726
add eax, 4
add ecx, 4
test dx, dx
jne 0x412700
xor eax, eax
jmp 0x41272b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4127b3
lea ecx, [esp + 0x230]
lea eax, [esp + 0x28]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412766
test dx, dx
je 0x412762
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412766
add eax, 4
add ecx, 4
test dx, dx
jne 0x412740
xor eax, eax
jmp 0x41276b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4127b3
lea ecx, [esp + 0x640]
lea eax, [esp + 0x28]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4127a6
test dx, dx
je 0x4127a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4127a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x412780
xor eax, eax
jmp 0x4127ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4126b9
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jne 0x41280d
cmp eax, dword [esp + 0x20]
jne 0x41280d
cmp eax, dword [esp + 0x18]
jne 0x41280d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.USER32.dll_GetShellWindow]
push eax
call esi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x4126b9
cmp ecx, dword [esp + 0x24]
jne 0x4126b9
cmp eax, dword [esp + 0x20]
jne 0x4126b9
cmp eax, dword [esp + 0x18]
jne 0x4126b9
mov ecx, dword [esp + 0x84c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret