Function at 0x492a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd8e0
mov eax, dword fs:[0]
push eax
mov eax, 0x4064
call fcn.0059a600
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 eax, dword [ebp + 8]
mov dword [ebp - 0x4024], eax
call fcn.0046d4f0
xor ebx, ebx
test eax, eax
je 0x492ad3
push ebx
push str.CSetupFilesInfo::GetWaveFileName_n
push 0x6bf268
call fcn.00599ee3
mov ecx, dword [str.ENTRY:]
mov edx, dword [0x5ccf7c]
mov eax, 0x6bf268
mov dword [0x6bf168], ecx
add esp, 0xc
mov dword [0x6bf16c], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x492a88
mov edi, 0x6bf168
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x492aa0
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 0x6bf168
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov dword [ebp - 0x4028], ebx
call fcn.004a8620
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x492af3
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 - 0x4014], eax
mov dword [ebp - 4], ebx
call fcn.004a8620
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x492b22
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 - 0x402c], eax
mov byte [ebp - 4], 1
call fcn.004a8620
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x492b52
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x4018], ebx
mov byte [ebp - 4], 2
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x492b82
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 - 0x4020], eax
push 0xa
lea ecx, [ebp - 0x4070]
mov byte [ebp - 4], 3
call fcn.004a7e5d
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x4010], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [ebp - 0x4024]
lea edx, [edi + 0xc]
push edx
lea ecx, [ebp - 0x2090]
call fcn.00407f40
mov eax, dword [edi + 0x40]
cmp dword [eax - 0xc], 0
lea esi, [edi + 0x40]
mov byte [ebp - 4], 5
je 0x492cfd
lea ecx, [ebp - 0x402c]
push ecx
lea edx, [edi + 0x10]
push edx
lea ecx, [ebp - 0x2090]
call fcn.00490050
test eax, eax
je 0x4932a5
push esi
lea ecx, [ebp - 0x400c]
call fcn.00407f40
lea eax, [ebp - 0x4020]
push eax
lea ecx, [ebp - 0x402c]
push ecx
lea ecx, [ebp - 0x400c]
mov byte [ebp - 4], 6
call fcn.0046f350
test eax, eax
je 0x492c43
mov dword [ebp - 0x4010], 1
lea ecx, [ebp - 0x400c]
mov byte [ebp - 4], 5
call fcn.004339c0
cmp dword [ebp - 0x4010], 0
je 0x4932a5
push 0x5f
push 0x20
lea ecx, [ebp - 0x4020]
call fcn.0048ff90
lea ecx, [ebp - 0x4020]
call fcn.004027d0
mov eax, dword [edi + 0x78]
cmp eax, 7
je 0x492d1a
cmp eax, 0xb
je 0x492d1a
cmp eax, 8
je 0x492d1a
push 0x5cf6b4
lea ecx, [ebp - 0x4010]
call fcn.00403380
push eax
lea ecx, [ebp - 0x401c]
push edi
push ecx
mov byte [ebp - 4], 0xa
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x4014]
mov byte [ebp - 4], 0xb
call fcn.00402af0
mov eax, dword [ebp - 0x401c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492cf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4010]
jmp 0x492db9
lea edx, [ebp - 0x4020]
push edx
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp - 0x2090]
call fcn.0046f350
test eax, eax
jmp 0x492c59
push str.INFOTHER.INF
lea ecx, [ebp - 0x4030]
call fcn.00403380
mov esi, eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x4010]
mov byte [ebp - 4], 7
call fcn.00403380
push esi
push eax
lea edx, [ebp - 0x401c]
push edx
mov byte [ebp - 4], 8
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x4014]
mov byte [ebp - 4], 9
call fcn.00402af0
mov eax, dword [ebp - 0x401c]
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 0x492d8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4010]
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 0x492db3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4030]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492dd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
lea ecx, [ebp - 0x4054]
call fcn.004a7e5d
push 1
push 0
lea ecx, [ebp - 0x4014]
push ecx
lea ecx, [ebp - 0x4054]
mov byte [ebp - 4], 0xc
call fcn.00403440
mov eax, dword [ebp - 0x4050]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x4038], eax
mov dword [ebp - 0x401c], eax
test eax, eax
je 0x493296
mov edi, edi
cmp dword [ebp - 0x4028], 0
jne 0x493296
lea edx, [ebp - 0x401c]
push edx
lea eax, [ebp - 0x4034]
push eax
lea ecx, [ebp - 0x4054]
call fcn.0045f5b0
mov ecx, dword [eax]
mov esi, dword [ebp - 0x4014]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
cmp eax, esi
je 0x492eb1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x492ea1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x492ea1
push eax
call fcn.004022e0
mov dword [ebp - 0x4030], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x492e90
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x4030]
add ecx, 0x10
mov dword [ebp - 0x4014], ecx
jmp 0x492eb1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x4014]
call fcn.004026b0
mov eax, dword [ebp - 0x4034]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492ed7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4014]
push ecx
lea ecx, [ebp - 0x400c]
call fcn.00407f40
lea ecx, [ebp - 0x4070]
mov byte [ebp - 4], 0xf
call fcn.004a7fe2
lea edx, [ebp - 0x4070]
push edx
lea ecx, [ebp - 0x400c]
call fcn.00428e90
test eax, eax
je 0x49326f
mov eax, dword [ebp - 0x406c]
mov dword [ebp - 0x4010], eax
test eax, eax
je 0x49326f
jmp 0x492f36
mov eax, dword [ebp - 0x4010]
cmp dword [ebp - 0x4028], 0
jne 0x49326f
test eax, eax
je case.0x493054.0
mov ecx, dword [ebp - 0x4010]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
lea esi, [eax - 0x10]
lea edi, [ebx - 0x10]
mov dword [ebp - 0x4010], edx
cmp esi, edi
je 0x493009
cmp dword [edi + 0xc], 0
jl 0x492ff3
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x492ff3
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x492f9b
cmp eax, dword [esi]
jne 0x492f9b
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x492fcf
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x493402
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0059aa3b
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x492fe8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0x10
mov dword [ebp - 0x4018], ebx
jmp 0x493009
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x4018]
call fcn.004026b0
mov ebx, dword [ebp - 0x4018]
mov esi, dword [ebx - 0xc]
test esi, esi
js 0x493407
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x493037
push esi
lea ecx, [ebp - 0x4018]
call fcn.00402280
mov ebx, dword [ebp - 0x4018]
lea eax, [esi + 1]
push eax
push ebx
call fcn.0059a1fe
add esp, 8
cmp eax, 0x50
ja case.0x493054.0
movzx ecx, byte [eax + 0x493428]
jmp dword [ecx*4 + 0x493418]
cmp esi, dword [ebx - 8]
jg 0x493407
mov eax, dword [ebp - 0x4020]
mov dword [ebx - 0xc], esi
mov byte [esi + ebx], 0
test eax, eax
je 0x493262
cmp dword [ebx - 0xc], 0
jl 0x493262
push eax
push ebx
call fcn.0059a963
add esp, 8
test eax, eax
je 0x493262
sub eax, ebx
cmp eax, 0xffffffff
je 0x493262
mov ecx, dword [ebp - 0x4024]
mov esi, dword [ebp - 0x4014]
mov edi, dword [ecx + 0x68]
add ecx, 0x68
add esi, 0xfffffff0
sub edi, 0x10
cmp esi, edi
je 0x493168
cmp dword [edi + 0xc], 0
jl 0x493158
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x493158
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4930f7
cmp eax, dword [esi]
jne 0x4930f7
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x49312b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x493402
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0059aa3b
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x493144
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x4024]
add ebx, 0x10
mov dword [eax + 0x68], ebx
mov ebx, dword [ebp - 0x4018]
jmp 0x493168
mov eax, dword [ebp - 0x4014]
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.004026b0
mov ecx, dword [ebp - 0x4024]
mov edi, dword [ecx + 0x6c]
add ecx, 0x6c
lea esi, [ebx - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x493224
cmp dword [edi + 0xc], 0
jl 0x49321a
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x49321a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4931b9
cmp eax, dword [esi]
jne 0x4931b9
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4931ed
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x493402
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0059aa3b
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x493206
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x4024]
add ebx, 0x10
mov dword [eax + 0x6c], ebx
mov ebx, dword [ebp - 0x4018]
jmp 0x493224
mov eax, dword [ebx - 0xc]
push eax
push ebx
call fcn.004026b0
call fcn.0046d4f0
test eax, eax
je 0x493258
mov eax, dword [ebp - 0x4014]
push ebx
push eax
push str.csWaveFileName___s__csWaveBusTypeAndDeviceID___s_n
push 0x6bf068
call fcn.00599ee3
add esp, 0x10
push 0x6bf068
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov dword [ebp - 0x4028], 1
cmp dword [ebp - 0x4010], 0
jne 0x492f30
lea ecx, [ebp - 0x400c]
call fcn.00433d10
lea ecx, [ebp - 0x400c]
mov byte [ebp - 4], 0xd
call fcn.004339c0
cmp dword [ebp - 0x401c], 0
jne 0x492e20
lea ecx, [ebp - 0x4054]
mov byte [ebp - 4], 5
call fcn.004a8028
call fcn.0046d4f0
test eax, eax
je 0x493326
mov ecx, dword [ebp - 0x4028]
push ecx
push str.CSetupFilesInfo::GetWaveFileName_:_bRetVal___d_n
push 0x6bef68
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x6bee6c], eax
mov eax, 0x6bef68
add esp, 0xc
mov dword [0x6bee68], edx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4932e4
mov edi, 0x6bee68
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4932f3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6bee68
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 - 0x2090]
mov byte [ebp - 4], 4
call fcn.004339c0
lea ecx, [ebp - 0x4070]
mov byte [ebp - 4], 3
call fcn.004a8028
mov eax, dword [ebp - 0x4020]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49336a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49338a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x402c]
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 0x4933b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4014]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4933d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4028]
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 4
call fcn.004a6edd
call fcn.00401f40
push 0x80070057
call fcn.00401b60
call fcn.004a6ea5
mov edi, edi
pop ebx
xor byte [ecx], cl
adc dword [ecx + ecx*2], esi
add ch, bh
xor ecx, dword [ecx]
std
xor ecx, dword [ecx]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3