Function at 0x10004420
Capabilities:
Enumerate services
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
xor edi, edi
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1c], edi
call fcn.1000dd80
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push str.java_util_Vector
push esi
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x30], ebx
je 0x10004526
mov ecx, dword [esi]
push str.java_lang_String
push esi
call dword [ecx + 0x18]
cmp eax, edi
mov dword [esp + 0x38], eax
je 0x10004526
mov edx, dword [esi]
push str._I_V
push str._init_
push ebx
push esi
call dword [edx + 0x84]
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x10004526
mov eax, dword [esi]
push str._Ljava_lang_Object__V
push str.addElement
push ebx
push esi
call dword [eax + 0x84]
cmp eax, edi
mov dword [esp + 0x3c], eax
je 0x10004526
push 4
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x44], ebx
je 0x10004526
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push edi
push 3
push 0x30
push ebx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1000ea50
add esp, 4
mov edi, eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
push 3
push 0x30
push ebx
mov dword [esp + 0x60], edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x1000453a
push edi
call fcn.1000ce20
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x48]
call fcn.1000d8c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0xc]
lea ecx, [eax*4]
push ecx
call fcn.1000ea50
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jbe 0x100045c4
lea eax, [edi + 4]
mov dword [esp + 0x20], eax
jmp 0x10004570
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x24], ecx
je 0x100045a8
mov edi, dword [eax - 4]
push 0x10
call fcn.1000ea50
add esp, 4
test eax, eax
je 0x1000459a
mov edx, dword [esp + 0x24]
push edx
push edi
mov ecx, eax
call fcn.10004b20
jmp 0x1000459c
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x20]
inc ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
inc ecx
add eax, 0x24
cmp ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jb 0x10004570
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x10]
push 0x10002770
push 4
push ebx
push edx
call fcn.1000f340
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi]
add esp, 0x10
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
push eax
push edx
push esi
call dword [ecx + 0x78]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x1c], eax
jbe 0x100046cd
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push 0
push ecx
push 2
push esi
call dword [eax + 0x2b0]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x30]
push edx
call fcn.10004b70
push eax
lea ecx, [esp + 0x4c]
call fcn.1000e0f0
lea ecx, [esp + 0x30]
call fcn.1000d8c0
push 0
lea ecx, [esp + 0x4c]
call fcn.1000d920
push eax
push esi
call fcn.100021b0
mov ecx, dword [esi]
add esp, 8
push eax
push 0
push ebx
push esi
call dword [ecx + 0x2b8]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x28]
push edx
call fcn.10002d60
push eax
lea ecx, [esp + 0x4c]
call fcn.1000e0f0
lea ecx, [esp + 0x28]
call fcn.1000d8c0
push 0
lea ecx, [esp + 0x4c]
call fcn.1000d920
push eax
push esi
call fcn.100021b0
mov ecx, dword [esi]
add esp, 8
push eax
push 1
push ebx
push esi
call dword [ecx + 0x2b8]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
push esi
mov dword [esp + 0x60], ebx
call dword [edx + 0xfc]
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jb 0x10004604
mov ecx, dword [esp + 0x40]
push ecx
call fcn.1000ce20
mov edx, dword [esp + 0x48]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
jbe 0x10004714
nop
mov eax, dword [esp + 0x10]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x1000470b
mov ecx, esi
call fcn.100027b0
push esi
call fcn.1000ce20
add esp, 4
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
jb 0x100046f0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1000ce20
add esp, 4
lea ecx, [esp + 0x48]
call fcn.1000d8c0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8