Function at 0x40c220
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46b7ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
push esi
push edi
mov eax, dword [str.MSVCRT]
mov cx, word [0x48b5e4]
mov dl, byte [0x48b5e6]
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov ecx, dword [str.MSVCIRT]
xor eax, eax
mov dword [esp + 0x26], ecx
mov cx, word [0x48b5d4]
mov word [esp + 0x23], ax
mov byte [esp + 0x22], dl
mov edx, dword [0x48b5dc]
mov byte [esp + 0x25], al
mov eax, dword [str.MFC42]
mov word [esp + 0x34], cx
mov cl, byte [0x48b5cc]
mov dword [esp + 0x2a], edx
mov edx, dword [str.MFC42LOC]
mov dword [esp + 0x30], eax
mov eax, dword [0x48b5c8]
mov byte [esp + 0x42], cl
mov ecx, dword [str.MSVCP70]
mov dword [esp + 0x3a], edx
mov edx, dword [str.MSVCP60]
mov dword [esp + 0x3e], eax
mov eax, dword [0x48b5b8]
mov dword [esp + 0x4e], ecx
mov ecx, dword [0x48b5b0]
mov dword [esp + 0x44], edx
mov edx, dword [0x48b5c0]
mov dword [esp + 0x48], eax
mov eax, dword [str.MSVCR70]
mov dword [esp + 0x5c], ecx
mov ecx, dword [str.OLEPRO32]
mov dword [esp + 0x52], edx
mov edx, dword [str.OLE32]
mov dword [esp + 0x58], eax
mov ax, word [0x48b59c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [str.OLEDLG]
mov dword [esp + 0x62], edx
mov edx, dword [0x48b5a4]
mov word [esp + 0x66], ax
mov al, byte [0x48b5a8]
xor ebx, ebx
mov dword [esp + 0x76], ecx
xor ecx, ecx
mov dword [esp + 0x70], edx
mov dx, word [0x48b594]
mov byte [esp + 0x74], al
mov al, byte [0x48b596]
mov word [esp + 0x7d], cx
mov word [esp + 0x7a], dx
mov edx, dword [str.ADVAPI32]
mov byte [esp + 0x7c], al
mov eax, dword [0x48b588]
mov byte [esp + 0x7f], cl
mov cl, byte [0x48b58c]
mov dword [esp + 0x80], edx
mov edx, dword [str.COMCTL32]
mov dword [esp + 0x84], eax
mov eax, dword [0x48b57c]
mov byte [esp + 0x88], cl
mov cl, byte [0x48b580]
mov word [esp + 0x2e], bx
mov dword [esp + 0x36], ebx
mov byte [esp + 0x43], bl
mov word [esp + 0x4c], bx
mov word [esp + 0x56], bx
mov word [esp + 0x60], bx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x75], bl
mov byte [esp + 0x89], bl
mov dword [esp + 0x8a], edx
mov dword [esp + 0x8e], eax
mov byte [esp + 0x92], cl
mov byte [esp + 0x93], bl
mov edx, dword [str.SETUPAPI]
mov cl, byte [0x48b574]
mov eax, dword [0x48b570]
mov dword [esp + 0x94], edx
mov edx, dword [str.STOP]
mov byte [esp + 0x9c], cl
mov dword [esp + 0x9e], edx
xor ecx, ecx
mov dword [esp + 0x98], eax
mov al, byte [0x48b440]
lea edx, [esp + 0x248]
mov dword [esp + 0xa3], ecx
push 0x104
push edx
mov byte [esp + 0xa5], bl
mov byte [esp + 0xaa], al
mov byte [esp + 0xaf], cl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x48b568
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa8]
call fcn.0043cf12
mov dword [esp + 0x454], ebx
mov esi, str.STOP
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40c49f
cmp cl, bl
je 0x40c49b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c49f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40c47b
xor eax, eax
jmp 0x40c4a4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40c6d1
mov ebp, dword [esp + 0x45c]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x40c4c5
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
lea edi, [esp + 0x248]
xor eax, eax
lea esi, [esp + 0xc4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0xc8]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..DLL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb0]
call fcn.0043cfd5
test eax, eax
je 0x40c68c
cmp dword [ebp], 0x1f4
jge 0x40c68c
lea ecx, [esp + 0x3cc]
lea edx, [esp + 0x34c]
push ecx
lea eax, [esp + 0x1cc]
push edx
lea ecx, [esp + 0xcc]
push eax
push ecx
call fcn.004033a0
add esp, 0x10
lea ecx, [esp + 0xa8]
call fcn.0043d1f5
lea edx, [esp + 0x18]
lea ecx, [esp + 0xa8]
push edx
call fcn.0043d3ed
mov ecx, dword [ebp]
mov eax, dword [eax]
shl ecx, 9
mov edi, eax
xor eax, eax
lea edx, [ecx + ebp + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00461a95
mov ecx, dword [ebp]
mov edi, 0x4a53ec
shl ecx, 9
xor eax, eax
lea edx, [ecx + ebp + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
lea edi, [esp + 0x1c8]
shl ecx, 9
lea edx, [ecx + ebp + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov edi, 0x4a53ec
shl ecx, 9
lea edx, [ecx + ebp + 0x184]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebp]
mov eax, dword [esp + 0x14]
mov esi, str.STOP
add eax, 0xa
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40c6c4
cmp cl, bl
je 0x40c6c0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c6c4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40c6a0
xor eax, eax
jmp 0x40c6c9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c4c1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x454], 0xffffffff
call fcn.0043cf4f
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret