Function at 0x10041b60
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1006413d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x214]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
mov edx, str.OriginalDatabase
mov ecx, ebx
call fcn.10027ad0
add esp, 4
test al, al
jne 0x10041bdf
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10041c0f
push eax
jmp 0x10041c09
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
lea eax, [edi + eax*2]
cmp eax, edi
jb 0x10041bfd
nop dword [eax]
cmp word [eax], 0x5c
je 0x10041c47
sub eax, 2
cmp eax, edi
jae 0x10041bf0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10041c0f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x65b
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10044a98
lea esp, [ebp + 0x20c]
pop ebp
ret 4
xor ecx, ecx
mov word [eax + 2], cx
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10041d0a
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push 0x12
push str.Directory_of_CABs:
call fcn.10010b90
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10041ceb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10041d0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0xc
push ebx
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov ebx, eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test ecx, ecx
je 0x10041d40
push ecx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push str.SELECT__Feature__FROM__Feature_
push ebx
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
je 0x10041d8b
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x10041d66
push ebx
call esi
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10041d74
push eax
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10041bfd
push eax
call esi
jmp 0x10041bfd
push 0
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10041d5b
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xe
push 0x320
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ebx, ebx
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov dword [ebp - 0x3c], 0xc8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10041dcf
push eax
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
test eax, eax
jne 0x10042147
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov edx, 1
push eax
call fcn.10028740
add esp, 4
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10041ed4
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x40]
push 0x13
push str._Analyzing_feature:
call fcn.10010b90
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x48]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x12
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10041eaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10041ece
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x14]
call fcn.10041660
test al, al
jne 0x10041f08
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10041ef5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x10041dc5
xor eax, eax
lea ecx, [ebp]
push 0xffffffffffffffff
mov edx, edi
mov word [ebp], ax
call fcn.10013290
add esp, 4
cmp word [eax], 0
je 0x10041f2c
add eax, 2
cmp word [eax], 0
jne 0x10041f23
mov esi, dword [ebp - 0x10]
mov ecx, eax
push 0xffffffffffffffff
mov edx, esi
call fcn.10013290
add esp, 4
cmp word [eax], 0
je 0x10041f4c
add eax, 2
cmp word [eax], 0
jne 0x10041f43
push 0xffffffffffffffff
mov edx, str..cab
mov ecx, eax
call fcn.10013290
add esp, 4
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete byte [ebp - 0x1d]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x1004202b
call fcn.1001af00
mov edi, eax
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x44]
push 9
push str.Cab_file:
call fcn.10010b90
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x4c]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x1c
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004200c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004202b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x100420fb
call fcn.1001af00
mov edi, eax
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x26
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10042065
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10010b90
call fcn.10009f40
test eax, eax
je 0x10042264
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x50]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x26
or eax, 0xffffffff
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100420dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100420fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1d], 0
jne 0x1004211c
mov eax, dword [ebp - 0x14]
inc eax
add dword [ebp - 0x34], eax
mov eax, esi
xor esi, esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], esi
mov dword [ecx + ebx*4], eax
inc ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xe
test esi, esi
je 0x1004212b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x2c]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x10041dc5
mov eax, dword [ebp - 0x34]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x2e
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x34]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x10], ebx
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
mov word [ebx], ax
js 0x100421df
mov esi, ebx
mov ebx, dword [ebp - 0x1c]
nop
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + ebx*4]
movzx eax, word [edx]
test ax, ax
je 0x100421b1
mov ecx, edx
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [esi + ecx]
test ax, ax
jne 0x100421a2
mov eax, 0x3b
mov edi, esi
mov word [esi], ax
add esi, 2
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub ebx, 1
jns 0x10042190
mov ebx, dword [ebp - 0x10]
cmp esi, ebx
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
je 0x100421dc
xor eax, eax
mov word [edi], ax
mov edi, dword [ebp - 0x2c]
push ebx
push str.AI_DISABLED_FEATURES
push dword [ebp - 0x54]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 0xe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10042217
push eax
call ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x10042233
push eax
call esi
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10042241
push eax
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1004224f
push eax
call esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1004225d
push edi
call ebx
xor eax, eax
jmp 0x10041c14
push 0x80004005
call fcn.10005390
int3