Function at 0x470b80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb231
mov eax, dword fs:[0]
push eax
sub esp, 0x278
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
mov ebx, ecx
call fcn.0046d4f0
test eax, eax
je 0x470c34
push 0
push str.CPrepareInstall_::_CopyInBuildInfFileToTemp_n
push 0x698ed0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x698dd0], eax
mov eax, 0x698ed0
mov dword [0x698dd4], ecx
add esp, 0xc
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x470bf0
mov edi, 0x698dd0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x470c01
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 0x698dd0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0xa
lea ecx, [ebp - 0x284]
call fcn.004a7e5d
lea edx, [ebp - 0x284]
push edx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0046e2f0
test eax, eax
jle 0x471458
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call fcn.0049cd20
add esp, 0xc
push str.UIU_INBUILD_INF
lea ecx, [ebp - 0x268]
call fcn.00403380
mov esi, eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.00403380
push esi
push eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 2
call fcn.00402910
add esp, 0xc
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470ce9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x268]
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 0x470d0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x22c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x470d38
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 - 0x224], eax
mov byte [ebp - 4], 6
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x470d68
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
mov byte [ebp - 4], 7
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x470d98
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 - 0x228], eax
mov eax, dword [ebp - 0x280]
mov byte [ebp - 4], 8
mov dword [ebp - 0x230], eax
test eax, eax
je 0x4713c0
mov ebx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x471506
mov ecx, dword [eax]
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x230], ecx
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x470e42
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x470e32
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470e32
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 0x470e21
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x224], ebx
mov ebx, dword [ebp - 0x220]
jmp 0x470e42
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x224]
call fcn.004026b0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00403380
push str.INF_
push eax
lea edx, [ebp - 0x260]
push edx
mov byte [ebp - 4], 9
call fcn.004029d0
lea ecx, [ebp - 0x224]
push ecx
push eax
lea edx, [ebp - 0x264]
push edx
mov byte [ebp - 4], 0xa
call fcn.00402910
add esp, 0x18
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
mov byte [ebp - 4], 0xb
cmp eax, esi
je 0x470ee6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x470ed0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470ed0
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 0x470ec5
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 0x470ee0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x220]
call fcn.004026b0
mov ebx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470f0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470f32
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], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470f58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5cd28c
lea ecx, [ebp - 0x25c]
call fcn.00403380
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x248]
push edx
mov byte [ebp - 4], 0xc
call fcn.00402910
lea ecx, [ebp - 0x224]
push ecx
push eax
lea edx, [ebp - 0x234]
push edx
mov byte [ebp - 4], 0xd
call fcn.00402910
add esp, 0x18
mov ecx, dword [eax]
mov esi, dword [ebp - 0x228]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
cmp eax, esi
je 0x471002
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x470ff2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470ff2
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 0x470fe1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x228], ebx
mov ebx, dword [ebp - 0x220]
jmp 0x471002
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x228]
call fcn.004026b0
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x248]
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 0x47104e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x25c]
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 0x471074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x228]
push 0
push esi
push ebx
lea ecx, [ebp - 0x219]
call fcn.00431ec0
test eax, eax
je 0x4710c2
push 0
push ebx
lea ecx, [ebp - 0x219]
call fcn.00431510
test al, 1
jne 0x4710f0
call fcn.0046d4f0
test eax, eax
je 0x4710f0
push ebx
push str.FAILED_DeleteAFile_:_Source___s_n
push 0x698cd0
call fcn.00599ee3
add esp, 0xc
push 0x698cd0
jmp 0x4710e4
call fcn.0046d4f0
test eax, eax
je 0x4710f0
push esi
push ebx
push str.FAILED_CopyAFile_:_Source___s__Destination___s_n
push 0x698bd0
call fcn.00599ee3
add esp, 0x10
push 0x698bd0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push str..PNF
push 0x5cd3c8
lea ecx, [ebp - 0x224]
call fcn.00408720
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x23c]
call fcn.00403380
push str.INF_
push eax
lea edx, [ebp - 0x238]
push edx
mov byte [ebp - 4], 0xf
call fcn.004029d0
lea ecx, [ebp - 0x224]
push ecx
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp - 4], 0x10
call fcn.00402910
add esp, 0x18
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
mov byte [ebp - 4], 0x11
cmp eax, esi
je 0x4711a9
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x471193
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x471193
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 0x471188
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 0x4711a3
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x220]
call fcn.004026b0
mov ebx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x250]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4711cf
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], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4711f5
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], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47121b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5cd28c
lea ecx, [ebp - 0x254]
call fcn.00403380
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x24c]
push edx
mov byte [ebp - 4], 0x12
call fcn.00402910
lea ecx, [ebp - 0x224]
push ecx
push eax
lea edx, [ebp - 0x244]
push edx
mov byte [ebp - 4], 0x13
call fcn.00402910
add esp, 0x18
mov ecx, dword [eax]
mov esi, dword [ebp - 0x228]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x14
cmp eax, esi
je 0x4712c5
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4712b5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4712b5
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 0x4712a4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x228], ebx
mov ebx, dword [ebp - 0x220]
jmp 0x4712c5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x228]
call fcn.004026b0
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x13
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4712eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471311
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x254]
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 0x471337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x228]
push 0
push esi
push ebx
lea ecx, [ebp - 0x219]
call fcn.00431ec0
test eax, eax
je 0x471385
push 0
push ebx
lea ecx, [ebp - 0x219]
call fcn.00431510
test al, 1
jne 0x4713b3
call fcn.0046d4f0
test eax, eax
je 0x4713b3
push ebx
push str.FAILED_DeleteAFile_:_Source___s_n
push 0x698ad0
call fcn.00599ee3
add esp, 0xc
push 0x698ad0
jmp 0x4713a7
call fcn.0046d4f0
test eax, eax
je 0x4713b3
push esi
push ebx
push str.FAILED_CopyAFile_:_Source___s__Destination___s_n
push 0x6989d0
call fcn.00599ee3
add esp, 0x10
push 0x6989d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
cmp dword [ebp - 0x230], 0
jne 0x470dc8
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4713e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47140c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
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 0x471432
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], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471458
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0046d4f0
test eax, eax
je 0x4714d8
push 0
push str.CPrepareInstall_::_CopyInBuildInfFileToTemp_n
push 0x6988d0
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x6988d0
mov dword [0x6987d0], ecx
add esp, 0xc
mov dword [0x6987d4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x471494
mov edi, 0x6987d0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4714a5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6987d0
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 - 0x284]
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
call fcn.004a6edd
int3