Function at 0x409c30
Capabilities:
Enumerate services
Get common file path
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.00408180
mov eax, dword [0x80c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x80e304]
mov ecx, dword [0x27263b4]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x180
jne 0x409c6f
lea ecx, [edx + 0xa231]
cmp ecx, 0x141
jne 0x409c83
mov dword [0x80ee08], edi
mov dword [0x80ee0c], esi
inc eax
cmp eax, 0x12376ec
jl 0x409c62
mov edi, dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov dword [0x27263b4], ecx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x409cb2
mov eax, dword [0x80cef8]
mov dword [0x27264e4], eax
cmp ecx, 0x3c
jne 0x409cc6
lea ecx, [ebp - 0x2d0]
push ecx
call edi
mov ecx, dword [0x27263b4]
inc esi
cmp esi, 0x5f6c74
jl 0x409ca0
cmp ecx, 0x7c
jne 0x409db5
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
lea ecx, [ebp - 0x1014]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor eax, eax
xor edx, edx
mov word [ebp - 0x100a], ax
xor ecx, ecx
mov word [ebp - 0x1006], dx
lea eax, [ebp - 0x1020]
push eax
mov word [ebp - 0x1008], cx
mov ecx, dword [ebp - 0x1008]
push ecx
mov word [ebp - 0x100c], dx
mov edx, dword [ebp - 0x100c]
push edx
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
lea ecx, [ebp - 0x404]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [0x27263b4], 0x11
jne 0x409d84
lea edx, [ebp - 0x100c]
push edx
lea eax, [ebp - 0x1008]
push eax
push ebx
lea ecx, [ebp - 0x1044]
push ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
cmp dword [0x27263b4], 0x2d
jne 0x409d97
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x80a540
push 0x80ed80
call fcn.00401015
push ebx
call fcn.00401235
mov ecx, dword [0x27263b4]
add esp, 0xc
cmp ecx, 0x110a
jne 0x409e2e
mov dword [0x27263a8], ebx
mov dword [0x27263ac], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push ebx
push ebx
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1004]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
push ebx
push ebx
call fcn.004010c6
push ebx
push ebx
call fcn.004010c6
call fcn.004083d4
push ebx
push ebx
call fcn.00401240
push ebx
call fcn.00401155
push ebx
call fcn.00401092
add esp, 0x20
call fcn.00409890
xor esi, esi
cmp dword [0x27263b4], ebx
jbe 0x409e9c
mov edi, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov ebx, 0x19b0
jmp 0x409e50
mov ecx, dword [0x27264e4]
mov dword [ebp - 0x1008], ecx
mov eax, 0xa231
add dword [ebp - 0x1008], eax
mov edx, dword [ebp - 0x1008]
mov al, byte [edx + esi]
mov ecx, dword [0x27261fc]
mov byte [ecx + esi], al
cmp dword [0x27263b4], 0x5ab
jne 0x409e93
push 0
push 0
push 0
call edi
mov dword [0x2726200], ebx
inc esi
cmp esi, dword [0x27263b4]
jb 0x409e50
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.00409900
call fcn.004098d0
call fcn.00409bf0
call fcn.004098c0
mov ecx, dword [ebp - 0x1040]
xor eax, eax
cmp eax, 0x408e
jle 0x409ed2
cmp ecx, 0xf5bed7
jne 0x409eda
inc eax
cmp eax, 0x687ed2
jl 0x409ec3
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x100c], 0x1e4165
mov ebx, 0x8e46a6f0
jmp 0x409f00
cmp dword [0x27263b4], 0xcc1
jne 0x409f14
push 0
push 0
push 0
call esi
cmp dword [0x27263b4], 0x7c4
mov dword [0x27263b0], ebx
jne 0x409f28
call edi
sub dword [ebp - 0x100c], 1
jne 0x409f00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401006
mov esp, ebp
pop ebp
ret