Function at 0x40c610
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46cd5b
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 [0x48d7dc]
mov dl, byte [0x48d7de]
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 [0x48d7cc]
mov word [esp + 0x23], ax
mov byte [esp + 0x22], dl
mov edx, dword [0x48d7d4]
mov byte [esp + 0x25], al
mov eax, dword [str.MFC42]
mov word [esp + 0x34], cx
mov cl, byte [0x48d7c4]
mov dword [esp + 0x2a], edx
mov edx, dword [str.MFC42LOC]
mov dword [esp + 0x30], eax
mov eax, dword [0x48d7c0]
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 [0x48d7b0]
mov dword [esp + 0x4e], ecx
mov ecx, dword [0x48d7a8]
mov dword [esp + 0x44], edx
mov edx, dword [0x48d7b8]
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 [0x48d794]
mov dword [esp + 0x6c], ecx
mov ecx, dword [str.OLEDLG]
mov dword [esp + 0x62], edx
mov edx, dword [0x48d79c]
mov word [esp + 0x66], ax
mov al, byte [0x48d7a0]
xor ebx, ebx
mov dword [esp + 0x76], ecx
xor ecx, ecx
mov dword [esp + 0x70], edx
mov dx, word [0x48d78c]
mov byte [esp + 0x74], al
mov al, byte [0x48d78e]
mov word [esp + 0x7d], cx
mov word [esp + 0x7a], dx
mov edx, dword [str.ADVAPI32]
mov byte [esp + 0x7c], al
mov eax, dword [0x48d780]
mov byte [esp + 0x7f], cl
mov cl, byte [0x48d784]
mov dword [esp + 0x80], edx
mov edx, dword [str.COMCTL32]
mov dword [esp + 0x84], eax
mov eax, dword [0x48d774]
mov byte [esp + 0x88], cl
mov cl, byte [0x48d778]
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 [0x48d76c]
mov eax, dword [0x48d768]
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 [0x48d638]
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, 0x48d760
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.0043dae2
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 0x40c88f
cmp cl, bl
je 0x40c88b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c88f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40c86b
xor eax, eax
jmp 0x40c894
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40cac1
mov ebp, dword [esp + 0x45c]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x40c8b5
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.0043dba5
test eax, eax
je 0x40ca7c
cmp dword [ebp], 0x1f4
jge 0x40ca7c
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.00403390
add esp, 0x10
lea ecx, [esp + 0xa8]
call fcn.0043ddc5
lea edx, [esp + 0x18]
lea ecx, [esp + 0xa8]
push edx
call fcn.0043dfbd
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.00462ded
mov ecx, dword [ebp]
mov edi, 0x4a778c
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, 0x4a778c
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 0x40cab4
cmp cl, bl
je 0x40cab0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40cab4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40ca90
xor eax, eax
jmp 0x40cab9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c8b1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x454], 0xffffffff
call fcn.0043db1f
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret