Function at 0x1005d2c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008d4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], vtable.CStringBufferW.0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x68], 1
push dword [eax + 4]
lea ecx, [esp + 0x20]
push dword [eax + 0xc]
mov dword [esp + 0x24], vtable.CStringBufferW.0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call fcn.1003ea90
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x68], 2
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1005d392
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x1005d388
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x1005d37d
mov eax, dword [esp + 0x28]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x1005d388
cmp eax, 0x2f
je 0x1005d388
push 0x5c
lea ecx, [esp + 0x20]
call fcn.1003eea0
push esi
lea ecx, [esp + 0x20]
call fcn.1003ef80
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 3
call fcn.100436b0
mov dword [esp + 0x18], vtable.CSetupRegW.0
push 0
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x70], 4
mov edi, dword [esp + 0x30]
push str.HookDllPath
push edi
push eax
call fcn.1004c5d0
mov byte [esp + 0x68], 3
mov ebx, dword [esp + 0x48]
test eax, eax
je 0x1005d4ed
test ebx, ebx
je 0x1005d4ed
cmp dword [esp + 0x40], 0
je 0x1005d4ed
lea ecx, [esp + 0x10]
call fcn.100436b0
mov dword [esp + 0x18], vtable.CSetupRegW.0
mov esi, dword [ebp + 0x10]
push 0
push esi
push str.HookDllVersion
push edi
push eax
mov byte [esp + 0x7c], 5
call fcn.1004c5d0
mov byte [esp + 0x68], 3
test eax, eax
je 0x1005d4ed
cmp dword [esi + 0xc], 0
je 0x1005d4ed
cmp dword [esi + 4], 0
je 0x1005d4ed
mov dword [esp + 0x2c], vtable.CStringBufferW.0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
push ecx
push str.Software
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 6
call fcn.1003e580
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x68], 7
push dword [eax + 0xc]
lea ecx, [esp + 0x50]
call fcn.1003ef30
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push dword [eax + 0x30]
call fcn.1003ef30
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x10]
call fcn.100436b0
mov dword [esp + 0x18], vtable.CSetupRegW.0
push 0
lea ecx, [esp + 0x30]
push ecx
push str.HookDllName
push esi
push eax
mov byte [esp + 0x7c], 8
call fcn.1004c5d0
test eax, eax
je 0x1005d4d7
cmp dword [esp + 0x38], 0
je 0x1005d4d7
cmp dword [esp + 0x30], 0
je 0x1005d4d7
mov esi, 1
jmp 0x1005d4d9
xor esi, esi
lea ecx, [esp + 0x4c]
call fcn.10022960
lea ecx, [esp + 0x2c]
call fcn.10022960
jmp 0x1005d4ef
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005d506
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
test edi, edi
je 0x1005d513
push edi
call fcn.1006eaef
add esp, 4
test ebx, ebx
je 0x1005d520
push ebx
call fcn.1006eaef
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc