Function at 0x40e021
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4c1280]
xor eax, esp
mov dword [esp + 0x70], eax
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
call fcn.00414810
mov dword [esp + 0x1c], eax
xor esi, esi
push dword [esi + 0x4a3b90]
lea ecx, [esp + 0x6c]
call fcn.00438ab0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x6c]
call fcn.0043aff4
lea ecx, [esp + 0x54]
call fcn.0043645f
movzx eax, byte [0x4c5b4b]
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x6c]
push eax
push 0
lea eax, [esp + 0x44]
push eax
call fcn.00414978
lea ecx, [esp + 0x68]
call fcn.00438dea
add esi, 4
cmp esi, 0x58
jb 0x40e05d
lea esi, [edi + 0x78]
mov eax, dword [esi]
mov dword [esp + 0x18], esi
mov edi, dword [eax]
mov dword [esp + 0x14], edi
cmp edi, eax
je 0x40e1b4
mov ebx, esi
lea ecx, [esp + 0x14]
call fcn.00405291
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x6c]
call fcn.00438559
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x6c]
call fcn.0043aff4
lea ecx, [esp + 0x54]
call fcn.0043645f
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call fcn.0041404b
cmp dword [eax], esi
jne 0x40e197
lea ecx, [edi + 0x24]
call fcn.0043fdec
push eax
lea ecx, [edi + 0x10]
call fcn.0043fdec
push eax
push str.unsupported_argument:__s_s
push 0
push 0
push 2
call fcn.00404c99
add esp, 0x18
lea eax, [esp + 0x38]
mov ecx, ebx
push edi
push eax
call fcn.00407331
lea ecx, [esp + 0x54]
call fcn.00438b2f
lea ecx, [esp + 0x68]
call fcn.0043fdec
push eax
push str.UnexpectedParam__s_
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0043a4d2
add esp, 0x10
lea ecx, [esp + 0x40]
call fcn.0043645f
lea ecx, [esp + 0x54]
call fcn.0043fdec
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00408b5c
lea ecx, [esp + 0x54]
call fcn.00438dea
lea ecx, [esp + 0x68]
call fcn.00438dea
mov edi, dword [esp + 0x14]
cmp edi, dword [ebx]
jne 0x40e0ca
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
call fcn.004197de
test al, al
je 0x40e1ff
push str.found_multi_user_installation__enforcing_persist0
push 0
push 0
push 1
call fcn.00404c99
add esp, 0x10
lea ecx, [esp + 0x54]
push 0x4a5294
call fcn.00438ae2
push 0x4a6480
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.00405740
mov ecx, eax
call fcn.00438e7a
lea ecx, [esp + 0x54]
call fcn.00438dea
and dword [esp + 0x24], 0
lea ecx, [esp + 0x24]
and dword [esp + 0x28], 0
call fcn.00414810
push dword [0x4a3b80]
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], eax
call fcn.00438ab0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.0043aff4
lea ecx, [esp + 0x40]
call fcn.0043645f
movzx eax, byte [0x4c5b4b]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x58]
push eax
push 0
lea eax, [esp + 0x44]
push eax
call fcn.00414978
lea ecx, [esp + 0x54]
call fcn.00438dea
mov eax, dword [esp + 0x2c]
xor cl, cl
add eax, 0x88
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov edi, dword [eax]
mov dword [esp + 0x14], edi
cmp edi, eax
je 0x40e34b
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.00405291
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x58]
call fcn.00438559
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.0043aff4
lea ecx, [esp + 0x40]
call fcn.0043645f
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041404b
cmp dword [eax], esi
je 0x40e308
lea ecx, [edi + 0x24]
mov byte [esp + 0x13], 1
call fcn.0043fdec
push eax
lea ecx, [edi + 0x10]
call fcn.0043fdec
push eax
push str.unsupported_argument:__s_s
push 0
push 0
push 2
call fcn.00404c99
add esp, 0x18
lea eax, [esp + 0x34]
mov ecx, ebx
push edi
push eax
call fcn.00407331
lea ecx, [esp + 0x54]
call fcn.00438dea
mov edi, dword [esp + 0x14]
cmp edi, dword [ebx]
jne 0x40e289
mov cl, byte [esp + 0x13]
mov ebx, dword [esp + 0x30]
test cl, cl
je 0x40e34b
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x40]
push 0
call fcn.0040df61
push eax
mov ecx, ebx
call fcn.0043641b
lea ecx, [esp + 0x40]
call fcn.0043645f
jmp 0x40e357
push 0x4a46ac
mov ecx, ebx
call fcn.004363fb
lea ecx, [esp + 0x24]
call fcn.00414029
lea ecx, [esp + 0x1c]
call fcn.00414029
mov ecx, dword [esp + 0x7c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046a7e5
mov esp, ebp
pop ebp
ret