Function at 0x434bf0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0290
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20005
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x434cbf
push 0x10000
call fcn.00475186
add esp, 4
push esi
mov edi, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x10000
push edi
push 3
push 0x30
push esi
push ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
cmp eax, 0xea
jne 0x434cad
mov eax, dword [ebp - 0x20]
push eax
push edi
mov esi, eax
call fcn.00475773
add esp, 8
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
push 3
push 0x30
push 0
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov edi, dword [ebp - 0x1c]
cmp eax, 0xea
je 0x434c72
xor esi, esi
cmp dword [ebp - 0x14], esi
jne 0x434cd5
cmp edi, esi
je 0x434cbf
push edi
call fcn.00473a61
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
lea esi, [ebx + 4]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
jbe 0x434ef2
lea edx, [ebx + 0x1c]
lea eax, [ebx + 0x2c]
add ebx, 0x3c
lea esi, [edi + 8]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], esi
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov edi, dword [esi - 8]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x434d53
test edi, 0xffff0000
jne 0x434d57
movzx edi, di
call fcn.004023c0
test eax, eax
je 0x434d7b
push eax
mov eax, edi
lea edi, [ebp - 0x18]
call fcn.00402d70
jmp 0x434d7b
xor eax, eax
jmp 0x434d6f
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434d60
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x18]
push ecx
mov ebx, eax
call fcn.00402e20
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00406c00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434db3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov edi, dword [esi - 4]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
test edi, edi
je 0x434df8
test edi, 0xffff0000
jne 0x434dfc
movzx edi, di
call fcn.004023c0
test eax, eax
je 0x434e1c
push eax
mov eax, edi
lea edi, [ebp - 0x18]
call fcn.00402d70
jmp 0x434e1c
xor eax, eax
jmp 0x434e10
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434e01
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x18]
push ecx
mov ebx, eax
call fcn.00402e20
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 3
call fcn.00406c00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434e54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 4]
mov edi, ecx
cmp esi, ebx
jae 0x434eaf
mov eax, dword [edi]
cmp eax, esi
ja 0x434eaf
mov ecx, esi
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [ebp - 0x10]
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [ecx + 8]
jne 0x434e8b
call fcn.00435340
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
lea edx, [edi + edi*8]
mov edi, dword [ecx + 4]
lea eax, [eax + edx*4]
test edi, edi
je 0x434ea9
mov ecx, 9
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add dword [ecx + 4], 0x24
jmp 0x434ed3
cmp ebx, dword [edi + 8]
jne 0x434ebb
mov ecx, edi
call fcn.00435340
mov edi, dword [edi + 4]
test edi, edi
je 0x434ecc
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
add dword [eax + 4], 0x24
mov eax, dword [ebp - 0x2c]
inc eax
add esi, 0x2c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x14]
jb 0x434d0e
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.00473a61
add esp, 4
mov byte [ebx + 0x4c], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4