Function at 0x417ca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f9648
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push 0
push 0
mov dword [esp + 0x70], 0
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x30]
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
lea edi, [esp + 0x18]
mov ebx, eax
call fcn.0041a300
mov eax, dword [esi + 0x28]
mov edi, dword [eax]
lea ebx, [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], edi
mov edi, edi
cmp ebx, ebx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
je 0x417d30
call fcn.005d29f1
cmp edi, dword [esp + 0x20]
je 0x417e7d
cmp edi, dword [ebx + 4]
jne 0x417d44
call fcn.005d29f1
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
call fcn.005d2da6
add esp, 8
test eax, eax
je 0x417d6f
cmp edi, dword [ebx + 4]
jne 0x417d65
call fcn.005d29f1
mov eax, dword [edi]
mov dword [esp + 0x28], eax
mov edi, eax
jmp 0x417d20
mov ecx, dword [esi + 0x34]
push 0
push 0
add esi, 0x34
push 0x1009
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, dword [ebx + 4]
jne 0x417d8f
call fcn.005d29f1
mov edi, dword [edi + 8]
mov eax, dword [edi + 8]
mov ebx, dword [eax]
add edi, 4
lea ebx, [ebx]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp eax, dword [edx + 4]
jne 0x417db2
call fcn.005d29f1
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 8]
add eax, 4
cmp edi, eax
mov dword [esp + 0x30], edx
je 0x417dcc
call fcn.005d29f1
cmp ebx, dword [esp + 0x30]
je 0x417e19
cmp ebx, dword [edi + 4]
jne 0x417ddc
call fcn.005d29f1
mov eax, dword [ebx + 8]
mov edx, dword [esi]
mov ecx, dword [eax]
push 0
push 0
push 0x1004
push edx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push esi
mov edx, eax
mov ecx, 1
call fcn.00403410
cmp ebx, dword [edi + 4]
jne 0x417e15
call fcn.005d29f1
mov ebx, dword [ebx]
jmp 0x417da0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, 3
push 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
push 0x102b
push eax
mov dword [esp + 0x44], 0
call edi
test eax, eax
je 0x417e7d
mov ecx, dword [esi]
push 0
push 0
push 0x1013
push ecx
call edi
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417ea5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret