Function at 0x402f1a
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov ecx, 2
mov dword [esp], edx
mov edx, 2
call fcn.00401910
test eax, eax
mov ebx, eax
jne 0x402fa2
cmp esi, 2
mov edx, dword [ebp - 0x1c]
je 0x403068
cmp esi, 7
je 0x403040
cmp esi, 1
je 0x402fc0
test byte [0x41901c], 1
mov ebx, 0x7c
je 0x402fa2
mov eax, str.level__u_not_implemented_n
mov edx, str.svcctl_ChangeServiceConfig2W
mov dword [esp + 0x10], esi
mov ecx, 0x41901c
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 0
call fcn.00401740
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [edi]
test eax, eax
je 0x402fa2
xor esi, esi
cmp word [eax], 0
jne 0x403108
test byte [0x41901c], 8
jne 0x403130
mov dword [ebp - 0x2c], edx
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call fcn.00407a40
mov edx, dword [ebp - 0x2c]
mov eax, dword fs:[0x18]
mov ecx, dword [edx + 0x14]
xor edx, edx
mov ecx, dword [ecx + 0x5c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
sub esp, 0xc
mov dword [eax + 0x5c], esi
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call fcn.00406540
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call fcn.00407a60
jmp 0x402fa2
test byte [0x41901c], 8
jne 0x4030c8
mov dword [ebp - 0x2c], edx
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call fcn.00407a40
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edi]
mov eax, dword [edx + 0x14]
mov dword [eax + 0x58], ecx
jmp 0x403021
test byte [0x41901c], 1
je 0x402fa2
mov eax, dword [edi + 8]
call fcn.00401a30
mov esi, eax
mov eax, dword [edi + 4]
call fcn.00401a30
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov eax, str.SERVICE_CONFIG_FAILURE_ACTIONS_not_implemented:_period__u_msg__s_cmd__s_n
mov dword [esp + 0xc], eax
mov eax, str.svcctl_ChangeServiceConfig2W
mov dword [esp + 8], eax
mov eax, 0x41901c
mov dword [esp + 4], eax
call fcn.00401740
jmp 0x402fa2
mov dword [ebp - 0x2c], edx
mov eax, dword [edi]
mov esi, str.changing_service__p_preshutdown_timeout_to__d_n
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, str.svcctl_ChangeServiceConfig2W
mov dword [esp + 8], eax
mov eax, 0x41901c
mov dword [esp + 4], eax
call fcn.00401740
mov edx, dword [ebp - 0x2c]
jmp 0x403049
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call fcn.00409850
mov edx, dword [ebp - 0x2c]
test eax, eax
mov esi, eax
jne 0x402fd2
mov ebx, 8
jmp 0x402fa2
mov dword [ebp - 0x2c], edx
mov eax, esi
mov edi, str.svcctl_ChangeServiceConfig2W
call fcn.00401a30
mov edx, dword [ebp - 0x2c]
mov ecx, str.changing_service__p_descr_to__s_n
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp], 3
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, 0x41901c
mov dword [esp + 4], eax
call fcn.00401740
mov edx, dword [ebp - 0x2c]
jmp 0x402fdf