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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4b3270]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call fcn.00412837
xor esi, esi
push dword [esi + 0x4978f0]
lea ecx, [esp + 0x6c]
call fcn.004319b9
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x6c]
call fcn.00433e03
lea ecx, [esp + 0x54]
call fcn.0042f60f
movzx eax, byte [0x4b7869]
push eax
lea eax, [esp + 0x6c]
push eax
push ecx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
call fcn.00412d6a
lea ecx, [esp + 0x68]
call fcn.00431bf9
add esi, 4
cmp esi, 0x48
jb 0x40cd4a
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 0x40cea0
mov ebx, esi
lea ecx, [esp + 0x14]
call fcn.004049b1
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x6c]
call fcn.00431552
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x6c]
call fcn.00433e03
lea ecx, [esp + 0x54]
call fcn.0042f60f
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041289c
cmp dword [eax], esi
jne 0x40ce83
lea ecx, [edi + 0x24]
call fcn.0043a30e
push eax
lea ecx, [edi + 0x10]
call fcn.0043a30e
push eax
push str.unsupported_argument:__s_s
push 0
push 0
push 2
call fcn.004043b9
add esp, 0x18
lea eax, [esp + 0x38]
mov ecx, ebx
push edi
push eax
call fcn.00406597
lea ecx, [esp + 0x54]
call fcn.00431a38
lea ecx, [esp + 0x68]
call fcn.0043a30e
push eax
push str.UnexpectedParam__s_
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004332e1
add esp, 0x10
lea ecx, [esp + 0x40]
call fcn.0042f60f
lea ecx, [esp + 0x54]
call fcn.0043a30e
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00407c72
lea ecx, [esp + 0x54]
call fcn.00431bf9
lea ecx, [esp + 0x68]
call fcn.00431bf9
mov edi, dword [esp + 0x14]
cmp edi, dword [ebx]
jne 0x40cdb6
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
call fcn.00416275
test al, al
je 0x40ceeb
push str.found_multi_user_installation__enforcing_persist0
push 0
push 0
push 1
call fcn.004043b9
add esp, 0x10
lea ecx, [esp + 0x54]
push 0x498c34
call fcn.004319eb
push 0x499de8
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.00404e60
mov ecx, eax
call fcn.00431c89
lea ecx, [esp + 0x54]
call fcn.00431bf9
lea ecx, [esp + 0x2c]
call fcn.00412837
push dword [0x4978b8]
lea ecx, [esp + 0x58]
call fcn.004319b9
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.00433e03
lea ecx, [esp + 0x40]
call fcn.0042f60f
movzx eax, byte [0x4b7869]
push eax
lea eax, [esp + 0x58]
push eax
push ecx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
call fcn.00412d6a
lea ecx, [esp + 0x54]
call fcn.00431bf9
mov eax, dword [esp + 0x1c]
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 0x40d028
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.004049b1
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x58]
call fcn.00431552
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.00433e03
lea ecx, [esp + 0x40]
call fcn.0042f60f
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
call fcn.0041289c
cmp dword [eax], esi
je 0x40cfe5
lea ecx, [edi + 0x24]
mov byte [esp + 0x13], 1
call fcn.0043a30e
push eax
lea ecx, [edi + 0x10]
call fcn.0043a30e
push eax
push str.unsupported_argument:__s_s
push 0
push 0
push 2
call fcn.004043b9
add esp, 0x18
lea eax, [esp + 0x34]
mov ecx, ebx
push edi
push eax
call fcn.00406597
lea ecx, [esp + 0x54]
call fcn.00431bf9
mov edi, dword [esp + 0x14]
cmp edi, dword [ebx]
jne 0x40cf66
mov cl, byte [esp + 0x13]
mov ebx, dword [esp + 0x20]
test cl, cl
je 0x40d028
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push 0
call fcn.0040cc5c
push eax
mov ecx, ebx
call fcn.0042f5cb
lea ecx, [esp + 0x40]
call fcn.0042f60f
jmp 0x40d034
push 0x498580
mov ecx, ebx
call fcn.0042f5ab
lea ecx, [esp + 0x2c]
call fcn.00412873
lea ecx, [esp + 0x24]
call fcn.00412873
mov ecx, dword [esp + 0x7c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045eff4
mov esp, ebp
pop ebp
ret