Function at 0x1000d900
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028b4d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1003b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x48], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], edi
test esi, esi
je 0x1000da0d
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
push 0
call fcn.10010652
add esp, 4
lea eax, [ebp - 0x44]
xor edi, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
push eax
push 0x10033dcc
push str.TempFolder
push esi
mov dword [ebp - 0x44], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x1000d9e1
mov esi, dword [ebp - 0x44]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x44], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010649
add esp, 4
mov edi, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], esi
push eax
push edi
push str.TempFolder
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
test edi, edi
je 0x1000d9e1
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d9d0
sub ecx, edx
sar ecx, 1
jmp 0x1000d9e3
xor ecx, ecx
push ecx
push edi
mov ecx, ebx
call fcn.10007bb0
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.10010652
mov edi, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x1000da83
lea ecx, [ebp - 0x40]
call fcn.10001110
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10002c30
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x1000da3d
mov edx, dword [edx]
test edx, edx
jne 0x1000da45
xor ecx, ecx
jmp 0x1000da5f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000da50
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.10007bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10001b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10001b50
call fcn.100082f0
mov ecx, eax
test ecx, ecx
je 0x1000dca3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 6
cmp dword [ebp - 0x48], 0
je 0x1000db7a
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 7
push 0
call fcn.10010652
add esp, 4
lea eax, [ebp - 0x54]
xor edi, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
push eax
push 0x10033dcc
push 0x10034df0
push dword [ebp - 0x48]
mov dword [ebp - 0x54], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x1000db51
mov esi, dword [ebp - 0x54]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x54], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010649
add esp, 4
mov edi, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], esi
push eax
push edi
push 0x10034df0
push dword [ebp - 0x48]
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
test edi, edi
je 0x1000db51
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000db40
sub ecx, edx
sar ecx, 1
jmp 0x1000db53
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.10007bb0
mov byte [ebp - 4], 6
push edi
call fcn.10010652
add esp, 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
jmp 0x1000dbc8
mov edx, dword [edi]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x1000dbcb
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x1000dbbc
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1000dbbc
call fcn.10007ad0
mov dword [ebp - 0x48], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x1000dbb4
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x48]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
jmp 0x1000dbcb
push dword [edx - 0xc]
lea ecx, [ebp - 0x44]
push edx
call fcn.10007bb0
mov esi, dword [ebp - 0x44]
push 1
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.10007330
mov byte [ebp - 4], 8
mov ecx, 0x10033e14
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000dc09
test dx, dx
je 0x1000dc05
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000dc09
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000dbe3
xor edi, edi
jmp 0x1000dc0e
sbb edi, edi
or edi, 1
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000dc2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1000dc3f
push 1
push 0x10033e14
mov ecx, ebx
call fcn.10007d60
push 7
push str.AI_WSP_
mov ecx, ebx
call fcn.10007d60
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.10007d60
cmp byte [ebp + 8], 0
je 0x1000dc68
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000dc87
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000feb6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100084e0
int3