Function at 0x402d5a
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x1c]
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov dword [esp], edx
mov ecx, 2
mov edx, 2
call fcn.00401890
mov ebx, eax
test eax, eax
jne 0x402dd7
mov edx, dword [ebp - 0x1c]
cmp esi, 2
je 0x402ea0
cmp esi, 7
je 0x402e78
cmp esi, 1
je 0x402de8
mov ebx, 0x7c
test byte [section..data], 1
je 0x402dd7
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.level__u_not_implemented_n
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x418000
mov dword [esp], 0
call fcn.004016c0
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [edi]
test eax, eax
je 0x402dd7
xor esi, esi
cmp word [eax], 0
jne 0x402f40
test byte [section..data], 8
jne 0x402f68
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call fcn.004074b0
mov edx, dword [ebp - 0x2c]
mov eax, dword fs:[0x18]
mov ecx, dword [edx + 0x14]
mov ecx, dword [ecx + 0x5c]
mov dword [esp + 4], 0
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]
sub esp, 0xc
mov eax, dword [edx + 0x14]
mov dword [eax + 0x5c], esi
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call fcn.00405fa0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call fcn.004074d0
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [section..data], 8
jne 0x402f00
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call fcn.004074b0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edi]
mov eax, dword [edx + 0x14]
mov dword [eax + 0x58], ecx
jmp 0x402e4b
test byte [section..data], 1
je 0x402dd7
mov eax, dword [edi + 8]
call fcn.004019a0
mov esi, eax
mov eax, dword [edi + 4]
call fcn.004019a0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0xc], str.SERVICE_CONFIG_FAILURE_ACTIONS_not_implemented:_period__u_msg__s_cmd__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x418000
mov dword [esp], 0
call fcn.004016c0
jmp 0x402dd7
mov eax, dword [edi]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.changing_service__p_preshutdown_timeout_to__d_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x418000
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call fcn.004016c0
mov edx, dword [ebp - 0x2c]
jmp 0x402e81
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call fcn.004092e0
mov edx, dword [ebp - 0x2c]
test eax, eax
mov esi, eax
jne 0x402dfa
mov ebx, 8
jmp 0x402dd7
mov eax, esi
mov dword [ebp - 0x2c], edx
call fcn.004019a0
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0xc], str.changing_service__p_descr_to__s_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x418000
mov dword [esp], 3
call fcn.004016c0
mov edx, dword [ebp - 0x2c]
jmp 0x402e07