Function at 0x452180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b55fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
call edx
add eax, 0x10
mov dword [ebp + 4], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [esp + 0x28], 1
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [esp + 0x28], 2
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
lea edi, [ebp + 0x10]
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x28], 3
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
call edx
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [esp + 0x28], 4
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
call edx
add eax, 0x10
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x20], ebx
mov esi, dword [esp + 0x34]
mov byte [esp + 0x28], 6
mov dword [ebp], esi
mov dword [ebp + 0x1c], ebx
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
push esi
call ecx
cmp eax, ebx
je 0x452283
mov ecx, eax
lea edx, [ecx + 2]
mov dword [esp + 0x14], edx
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x452270
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov ebx, ecx
push eax
mov eax, edi
call fcn.00405920
lea edi, [esp + 0x14]
call fcn.0040f4f0
lea edi, [ebp + 0x14]
mov byte [esp + 0x28], 7
call fcn.0040d2b0
mov byte [esp + 0x28], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4522c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov byte [esp + 0x30], 8
call fcn.00452ba0
test eax, eax
jne 0x452347
mov eax, dword [ebp + 0x18]
lea ebx, [ebp + 0x18]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, 0x400
sub eax, ecx
or edx, eax
mov dword [esp + 0x14], ecx
jge 0x45230e
mov eax, ebx
call fcn.00405860
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x18]
call fcn.004547e0
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x452335
push ecx
push eax
call fcn.004913b1
add esp, 8
test eax, eax
jl 0x45235b
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x45235b
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
mov esi, dword [esp + 0x34]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push esi
call eax
test eax, eax
jne 0x452365
xor ecx, ecx
jmp 0x45237f
push 0x80070057
call fcn.004058d0
mov ecx, eax
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x452370
sub ecx, edi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [ebp + 4]
call fcn.00405920
mov ecx, dword [esi]
mov edx, dword [ecx + 0x24]
push esi
call edx
test eax, eax
jne 0x45239a
xor ecx, ecx
jmp 0x4523af
mov ecx, eax
lea edi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4523a0
sub ecx, edi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [ebp + 8]
call fcn.00405920
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push esi
call ecx
test eax, eax
jne 0x4523ca
xor ecx, ecx
jmp 0x4523df
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4523d0
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [ebp + 0xc]
call fcn.00405920
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45240a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8