Function at 0x40ac10
Capabilities:
Access peb ldr_data
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x4574bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x40]
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push ecx
push edx
push 0
push 0
push ebx
push ebp
push eax
mov dword [esp + 0x30], 0
call dword [0x45a03c]
test eax, eax
jne 0x40acb6
call dword [0x45a464]
cmp eax, 0xea
jne 0x40acb6
mov ecx, dword [esp + 0x48]
lea esi, [ecx + 0x24]
lea edx, [esi + esi*8]
shl edx, 2
push edx
call fcn.004428c1
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push ecx
push edx
push esi
push edi
push ebx
push ebp
push eax
mov dword [esp + 0x38], edi
call dword [0x45a03c]
xor ecx, ecx
cmp eax, ecx
jne 0x40accc
push edi
call fcn.004428ea
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
cmp eax, ecx
jbe 0x40ae38
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x40], edi
jmp 0x40ace8
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov al, byte [esp + 0x40]
mov byte [esp + 0x20], al
mov dword [esp + 0x24], ecx
mov esi, dword [edx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.004049a0
test al, al
je 0x40ad40
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
mov eax, dword [ebx + 0x2c]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x38], esi
je 0x40ada9
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
cmp eax, edx
je 0x40ada9
lea ecx, [eax + 0x10]
cmp ecx, edx
jne 0x40ad8c
mov dword [esp + 0x44], eax
mov dword [ebx + 0x1c], ecx
mov dword [esp + 0x1c], eax
cmp eax, esi
mov byte [esp + 0x38], 2
je 0x40ad7e
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00404020
mov ecx, ebx
mov byte [esp + 0x38], 0
call fcn.00404740
jmp 0x40add4
mov dword [esp + 0x44], eax
mov dword [ebx + 0x1c], ecx
mov dword [esp + 0x1c], eax
cmp eax, esi
mov byte [esp + 0x38], 3
je 0x40add4
lea edx, [esp + 0x20]
mov ecx, eax
push edx
jmp 0x40adcf
mov ecx, ebx
call fcn.00404740
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 0x10]
mov dword [ebx + 0x1c], eax
cmp ecx, esi
mov byte [esp + 0x38], 1
je 0x40add4
lea edx, [esp + 0x20]
push edx
call fcn.00404020
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x24]
inc edx
cmp eax, esi
mov dword [ebx + 0x2c], edx
mov dword [esp + 0x38], 0xffffffff
je 0x40ae08
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40adff
cmp al, 0xff
je 0x40adff
dec al
mov byte [ecx], al
jmp 0x40ae08
push ecx
call fcn.004428ea
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
inc eax
add edx, 0x24
cmp eax, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], edx
jb 0x40ace6
mov edi, dword [esp + 0x18]
push edi
call fcn.004428ea
mov ecx, dword [esp + 0x34]
add esp, 4
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret