Function at 0x4730a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb53c
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x6319d0]
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
call fcn.0046d4f0
test eax, eax
je 0x473153
push 0
push str.CPrepareInstall_::_CopyInBuildInfBackToLocation_n
push 0x69a6d0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x69a5d0], eax
mov eax, 0x69a6d0
mov dword [0x69a5d4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x473108
mov edi, 0x69a5d0
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x473120
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x69a5d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0xa
lea ecx, [ebp - 0x280]
call fcn.004a7e5d
push 0x104
lea edx, [ebp - 0x114]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x473193
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 1
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4731c3
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4731f3
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push 1
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov byte [ebp - 4], 3
call fcn.0049cd20
add esp, 0xc
push str.UIU_INBUILD_INF.
lea ecx, [ebp - 0x22c]
call fcn.00403380
mov esi, eax
lea edx, [ebp - 0x218]
mov bl, 4
push edx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call fcn.00403380
push esi
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 5
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.00402af0
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4732b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4732de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
lea ecx, [ebp - 0x264]
call fcn.004a7e5d
push 1
push 0
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 7
call fcn.00403440
mov eax, dword [ebp - 0x260]
mov byte [ebp - 4], 8
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x234], eax
test eax, eax
je 0x47373d
mov edi, dword [ebp - 0x21c]
lea esp, [esp]
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x264]
call fcn.0045f5b0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [ebp - 4], 9
cmp eax, esi
je 0x4733aa
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x473394
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x473394
push eax
call fcn.004022e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x473389
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x21c], ebx
jmp 0x4733a4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004026b0
mov edi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4733d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5c
push edi
call fcn.0059aa24
add esp, 8
test eax, eax
je 0x473496
sub eax, edi
mov ecx, eax
cmp ecx, 0xffffffff
je 0x473496
mov eax, dword [edi - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00407840
mov ecx, dword [eax]
mov esi, dword [ebp - 0x220]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x473470
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x47345a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47345a
push eax
call fcn.004022e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x47344f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x220], ebx
jmp 0x47346a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x220]
call fcn.004026b0
mov edi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x473189
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov ecx, str.INF_
mov byte [ebp - 4], 0xb
test ecx, 0xffff0000
jne 0x4734eb
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a84e0
test eax, eax
je 0x4734fd
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.00402570
jmp 0x4734fd
push 5
push str.INF_
lea ecx, [ebp - 0x228]
call fcn.004026b0
mov byte [ebp - 4], 0xc
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x473189
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xd
test ecx, 0xffff0000
jne 0x473557
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a84e0
test eax, eax
je 0x47357c
push esi
push eax
lea ecx, [ebp - 0x22c]
call fcn.00402570
jmp 0x47357c
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x473560
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004026b0
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402910
lea ecx, [ebp - 0x220]
push ecx
push eax
lea edx, [ebp - 0x240]
push edx
mov byte [ebp - 4], 0xf
call fcn.00402910
add esp, 0x18
mov ecx, dword [eax]
mov esi, dword [ebp - 0x230]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x10
cmp eax, esi
je 0x47361c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x473606
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x473606
push eax
call fcn.004022e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4735fb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x230], ebx
jmp 0x473616
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.004026b0
mov edi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473668
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47368e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4736b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x230]
push 0
push esi
push edi
lea ecx, [ebp - 0x221]
call fcn.00431ec0
test eax, eax
je 0x473702
push 0
push edi
lea ecx, [ebp - 0x221]
call fcn.00431510
test al, 1
jne 0x473730
call fcn.0046d4f0
test eax, eax
je 0x473730
push edi
push str.FAILED_DeleteAFile_:_Source___s_n
push 0x69a4d0
call fcn.00599ee3
add esp, 0xc
push 0x69a4d0
jmp 0x473724
call fcn.0046d4f0
test eax, eax
je 0x473730
push esi
push edi
push str.FAILED_CopyAFile_:_Source___s__Destination___s_n
push 0x69a3d0
call fcn.00599ee3
add esp, 0x10
push 0x69a3d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
cmp dword [ebp - 0x234], 0
jne 0x473330
push str.UIU_INBUILD_INF
lea ecx, [ebp - 0x238]
call fcn.00403380
mov esi, eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0x11
call fcn.00403380
push esi
push eax
lea edx, [ebp - 0x23c]
mov bl, 0x12
push edx
mov byte [ebp - 4], bl
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x13
call fcn.00402af0
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4737b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4737d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4737fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x220]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0046d4f0
test eax, eax
je 0x473889
push 0
push str.CPrepareInstall_::_CopyInBuildInfBackToLocation_n
push 0x69a2d0
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x69a2d0
mov dword [0x69a1d0], ecx
add esp, 0xc
mov dword [0x69a1d4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x473845
mov edi, 0x69a1d0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x473856
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x69a1d0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.004a8028
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4738b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4738de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473904
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0xffffffff
call fcn.004a8028
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.00599ed4
mov esp, ebp
pop ebp
ret