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

Disassembly:
push 0xffffffffffffffff
push 0x50711b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x378
mov eax, dword [0x556a10]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov ebp, ecx
mov dword [esp + 0x384], ebx
je 0x407b7d
mov eax, 1
jmp 0x408553
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x17e]
mov word [esp + 0x17c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x17c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x17c]
push ecx
lea ecx, [esp + 0x20]
call fcn.004ea7b5
lea edx, [esp + 0x17c]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x394], ebx
call fcn.004ea7b5
push 0x556998
lea ecx, [esp + 0x1c]
mov byte [esp + 0x394], 1
call fcn.004ea7b5
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x394], 2
call fcn.004e38eb
mov esi, eax
cmp esi, 0xffffffff
jne 0x407c65
push str.SetupData.dat
lea ecx, [esp + 0x18]
call fcn.004ea8d8
push str.license.dat
lea ecx, [esp + 0x20]
call fcn.004ea8d8
lea edi, [ebp + 0x16c]
push str.AppIcon.ico
mov ecx, edi
call fcn.004ea8d8
lea ecx, [ebp + 0x170]
push str.Policy.ipz
call fcn.004ea8d8
push str.SetupExeName
lea ecx, [esp + 0x1c]
call fcn.004ea8d8
push str.CustomFile.dat
lea ecx, [ebp + 0x17c]
call fcn.004ea8d8
jmp 0x407e89
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004e381f
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x394], 3
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 2
call fcn.004ea741
push 0x53f210
lea ecx, [esp + 0x18]
call fcn.004eab32
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.004e381f
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x394], 4
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 2
call fcn.004ea741
push 0x53f1f4
lea ecx, [esp + 0x20]
call fcn.004eab32
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.004e381f
lea edi, [ebp + 0x16c]
push eax
mov ecx, edi
mov byte [esp + 0x394], 5
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 2
call fcn.004ea741
push 0x53f1d8
mov ecx, edi
call fcn.004eab32
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004e381f
lea ebx, [ebp + 0x170]
push eax
mov ecx, ebx
mov byte [esp + 0x394], 6
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 2
call fcn.004ea741
push 0x53f1c0
mov ecx, ebx
call fcn.004eab32
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.004e381f
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x394], 7
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 2
call fcn.004ea741
push 0x53f1a4
lea ecx, [esp + 0x1c]
call fcn.004eab32
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.004e381f
lea ebx, [ebp + 0x17c]
push eax
mov ecx, ebx
mov byte [esp + 0x394], 8
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 2
call fcn.004ea741
push 0x53f184
mov ecx, ebx
call fcn.004eab32
lea ecx, [esp + 0x5c]
call fcn.004e7acd
lea eax, [esp + 0x10]
mov bl, 9
push esi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x398], bl
call fcn.004e381f
mov eax, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0x40
push eax
mov byte [esp + 0x3a0], 0xa
call fcn.0048e800
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], bl
call fcn.004ea741
mov eax, dword [esp + 0x64]
xor esi, esi
test eax, eax
jbe 0x407e76
mov edx, dword [esp + 0x60]
push str.SPECIAL_
lea ecx, [edx + esi*4]
call fcn.004e390d
cmp eax, 0xffffffff
jne 0x407e63
mov eax, dword [esp + 0x64]
inc esi
cmp esi, eax
jb 0x407e42
jmp 0x407e76
mov eax, dword [esp + 0x60]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [ebp + 0x1b0]
call fcn.004ea888
lea ecx, [esp + 0x5c]
mov byte [esp + 0x390], 2
call fcn.004e7b00
xor ebx, ebx
mov eax, dword [edi]
push eax
call fcn.00420db0
add esp, 4
test eax, eax
jne 0x407ea4
push 0x556998
mov ecx, edi
call fcn.004ea8d8
mov eax, dword [ebp + 0x170]
lea esi, [ebp + 0x170]
push eax
call fcn.00420db0
add esp, 4
test eax, eax
jne 0x407ec9
push 0x556998
mov ecx, esi
call fcn.004ea8d8
mov edx, dword [esp + 0x18]
push edx
call fcn.00420db0
add esp, 4
test eax, eax
jne 0x407eea
push 0x556998
lea ecx, [esp + 0x1c]
call fcn.004ea8d8
jmp 0x407ef6
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.004120d0
lea ecx, [esp + 0x2c]
call fcn.004efb49
lea ecx, [esp + 0x48]
mov byte [esp + 0x390], 0xb
call fcn.004ef603
mov ecx, dword [0x543c98]
mov byte [esp + 0x390], 0xc
mov dword [esp + 0x58], ecx
mov esi, vtable.CFileException.0
or edi, 0xffffffff
mov byte [esp + 0x390], 0xd
push ebx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edi
call fcn.004ea8d8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push 0x40
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x39c], 0xe
call fcn.004efcfb
test eax, eax
jne 0x407fd0
mov byte [esp + 0x390], 0xb
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x390], 0xf
call fcn.004ea741
lea ecx, [esp + 0x2c]
mov byte [esp + 0x390], 2
call fcn.004efc3e
lea ecx, [esp + 0x18]
mov byte [esp + 0x390], 1
call fcn.004ea741
lea ecx, [esp + 0x14]
mov byte [esp + 0x390], 0
call fcn.004ea741
lea ecx, [esp + 0x1c]
mov dword [esp + 0x390], edi
call fcn.004ea741
xor eax, eax
jmp 0x408553
lea ecx, [esp + 0x2c]
call fcn.004efff5
mov esi, eax
mov dword [esp + 0x3c], ebx
cmp esi, 8
mov dword [esp + 0x24], ebx
jbe 0x408465
lea ecx, [esp + 0x2c]
call fcn.004efff5
cmp esi, eax
ja 0x408465
lea ecx, [esi - 8]
push ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.004efe9d
lea edx, [esp + 0x24]
push 4
push edx
lea ecx, [esp + 0x34]
call fcn.004efe18
lea eax, [esp + 0x3c]
push 4
push eax
lea ecx, [esp + 0x34]
call fcn.004efe18
mov eax, dword [esp + 0x3c]
cmp eax, 4
je 0x40805c
cmp eax, ebx
je 0x408465
cmp eax, 4
ja 0x408465
mov edi, dword [esp + 0x24]
mov ecx, 0xfffffff8
sub ecx, edi
add esi, ecx
cmp esi, 8
ja 0x407fec
jmp 0x408465
mov eax, dword [esp + 0x24]
cmp eax, 0x100000
ja 0x408465
cmp eax, 8
jb 0x408465
push eax
call fcn.004eae0a
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 4
sub esi, eax
sub esi, 8
lea ecx, [esp + 0x2c]
push ebx
push esi
call fcn.004efe9d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push edx
push edi
call fcn.004efe18
lea ecx, [esp + 0x70]
call fcn.004915c0
push edi
lea ecx, [esp + 0x74]
mov byte [esp + 0x394], 0x12
call fcn.004922f0
push edi
call fcn.004eae33
add esp, 4
lea ecx, [esp + 0x70]
push 0x53f168
call fcn.00492630
push str.notshowversion
lea ecx, [esp + 0x74]
mov dword [ebp + 0x24], eax
call fcn.00492630
push str.packagetitle
lea ecx, [esp + 0x74]
mov dword [ebp + 0x160], eax
call fcn.00492630
cmp eax, ebx
je 0x408130
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
call fcn.00492b30
push eax
lea ecx, [ebp + 0x15c]
mov byte [esp + 0x394], 0x13
call fcn.004559d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 0x12
call fcn.00455820
push str.userlicense
lea ecx, [esp + 0x74]
call fcn.00492630
push str.CustomFile
lea ecx, [esp + 0x74]
mov dword [ebp + 0x164], eax
call fcn.00492630
cmp eax, ebx
je 0x40818b
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x74]
call fcn.00492b30
mov eax, dword [eax]
lea ecx, [ebp + 0x180]
push eax
mov byte [esp + 0x394], 0x14
call fcn.004ea8d8
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 0x12
call fcn.00455820
push str.PackMsiGuid
lea ecx, [esp + 0x74]
call fcn.00492630
cmp eax, ebx
je 0x4081d2
lea edx, [esp + 0x10]
lea ecx, [esp + 0x70]
push edx
call fcn.00492b30
mov eax, dword [eax]
lea ecx, [ebp + 0x184]
push eax
mov byte [esp + 0x394], 0x15
call fcn.004ea8d8
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 0x12
call fcn.00455820
push str.SpecialAccount
lea ecx, [esp + 0x74]
call fcn.00492630
cmp eax, ebx
mov dword [ebp + 0x28], eax
je 0x40834a
lea ecx, [esp + 0x70]
call fcn.00492930
push ebx
lea ecx, [esp + 0x74]
call fcn.00492630
test eax, eax
je 0x408341
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
call fcn.00492b30
lea ecx, [esp + 0x5c]
mov byte [esp + 0x390], 0x16
call fcn.004e8042
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
push ebx
push ecx
push edx
mov byte [esp + 0x39c], 0x17
call fcn.00419330
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0xa4]
push esi
push eax
push 0x512164
mov edi, eax
call fcn.00495200
lea ecx, [esp + 0x40]
call fcn.00424020
shr esi, 1
push esi
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x398], 0x18
call fcn.004552b0
mov eax, dword [esp + 0x20]
mov ebx, 0x19
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x394], bl
call fcn.0044f880
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x394], 0x1a
call fcn.004240d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x390], bl
call fcn.00450090
lea edi, [ebp + 0x2c]
lea ecx, [esp + 0x40]
push edi
push 0x53f0bc
call fcn.00424e80
lea esi, [ebp + 0x30]
lea ecx, [esp + 0x40]
push esi
push 0x53f0b0
call fcn.00424e80
mov esi, dword [esi]
mov dword [esp + 0x390], ebx
mov eax, dword [esi - 8]
test eax, eax
jne 0x4082ed
xor esi, esi
mov edi, dword [edi]
push 0
push esi
push edi
lea ecx, [ebp + 0x34]
call fcn.00404320
lea ecx, [esp + 0x20]
mov byte [esp + 0x390], 0x18
call fcn.00455820
lea ecx, [esp + 0x40]
mov byte [esp + 0x390], 0x17
call fcn.00424090
lea ecx, [esp + 0x5c]
mov byte [esp + 0x390], 0x16
call fcn.004e8075
lea ecx, [esp + 0x10]
mov byte [esp + 0x390], 0x12
call fcn.00455820
xor ebx, ebx
lea ecx, [esp + 0x70]
call fcn.00492960
push str.WriteRegistry
lea ecx, [esp + 0x74]
call fcn.00492630
test eax, eax
je 0x40844a
lea ecx, [esp + 0x70]
call fcn.00492930
push ebx
lea ecx, [esp + 0x74]
call fcn.00492630
test eax, eax
je 0x40844a
lea ecx, [esp + 0x20]
push str.value
push ecx
lea ecx, [esp + 0x78]
call fcn.00492b80
mov edx, dword [esp + 0x20]
mov byte [esp + 0x390], 0x1d
cmp dword [edx - 8], ebx
je 0x408439
lea ecx, [esp + 0xa4]
call fcn.0041f810
mov eax, dword [esp + 0x20]
mov bl, 0x1e
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x394], bl
call fcn.0044f880
mov eax, dword [eax]
lea ecx, [esp + 0xa4]
push eax
mov byte [esp + 0x394], 0x1f
call fcn.0041fcc0
lea ecx, [esp + 0x28]
mov byte [esp + 0x390], bl
call fcn.00450090
lea ecx, [esp + 0xa4]
call fcn.004207b0
lea ecx, [ebp + 0x19c]
mov dword [ebp + 0x188], eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.004207d0
lea edx, [ebp + 0x18c]
lea ecx, [esp + 0xa4]
push edx
call fcn.004207c0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x390], 0x1d
call fcn.0041f990
lea ecx, [esp + 0x20]
mov byte [esp + 0x390], 0x12
call fcn.00455820
mov dword [0x556a10], 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x390], 0xe
call fcn.00491650
lea ecx, [esp + 0x2c]
call fcn.004eff16
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
push 0x40
push ecx
lea ecx, [esp + 0x38]
call fcn.004efcfb
test eax, eax
je 0x4084e3
lea ecx, [esp + 0x2c]
call fcn.004efff5
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.004eae0a
mov esi, eax
add esp, 4
test esi, esi
je 0x4084da
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
lea ecx, [esp + 0x34]
call fcn.004efe18
add ebp, 0x168
push esi
mov ecx, ebp
call fcn.00450350
push esi
call fcn.004eae33
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.004eff16
mov esi, dword [0x556a10]
mov byte [esp + 0x390], 0xb
mov dword [esp + 0x48], vtable.CFileException.0
lea ecx, [esp + 0x58]
mov byte [esp + 0x390], 0x20
call fcn.004ea741
lea ecx, [esp + 0x2c]
mov byte [esp + 0x390], 2
call fcn.004efc3e
lea ecx, [esp + 0x18]
mov byte [esp + 0x390], 1
call fcn.004ea741
lea ecx, [esp + 0x14]
mov byte [esp + 0x390], 0
call fcn.004ea741
lea ecx, [esp + 0x1c]
mov dword [esp + 0x390], 0xffffffff
call fcn.004ea741
mov eax, esi
mov ecx, dword [esp + 0x388]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x384
ret