Function at 0x45df20
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1c30
call fcn.0047a5c0
mov eax, dword [esp + 0x1c3c]
mov dl, byte [0x4d7690]
push ebx
push ebp
mov eax, dword [eax]
push esi
mov dword [esp + 0x20], ecx
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x841]
mov byte [esp + 0x840], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x441]
mov byte [esp + 0x440], dl
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x1c48]
lea ecx, [esp + 0x840]
stosw word es:[edi], ax
push 0x400
push ecx
stosb byte es:[edi], al
lea ebx, [ebp - 0x1301]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x45e017
cmp ebx, 0x19
jle 0x45dfca
push ebx
lea edx, [esp + 0xc44]
push str.IPClient_x.dll
push edx
jmp 0x45dfdb
lea eax, [ebx + 0x61]
lea ecx, [esp + 0xc40]
push eax
push str.IPClient_c.dll
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0xc4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x840]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x440]
push eax
call fcn.004688d0
mov edx, eax
mov edi, str.DllIPCMap.dll
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Shell32.DLL
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x45e088
push str.SHGetSpecialFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45e081
push 0
lea ecx, [esp + 0x44]
push 5
push ecx
push 0
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x40]
mov byte [esp + 0x43f], 0
push edx
call fcn.00462d50
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [esp + 0x44]
push 0x5c
push eax
call esi
add esp, 0xc
test eax, eax
je 0x45e0bf
lea ecx, [esp + 0x40]
push 0x5c
push ecx
call esi
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0x40]
push edx
call fcn.00462d50
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x45e143
mov edi, str.Local_SettingsApplication_DataMicrosoftMedia_Store_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
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
and ecx, 3
cmp ebx, 0x19
rep movsb byte es:[edi], byte [esi]
jle 0x45e11e
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push str.MediaLib_x.dll
lea eax, [esp + ecx + 0x48]
push eax
jmp 0x45e13a
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add ebx, 0x61
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push str.MediaLib_c.dll
lea ecx, [esp + ecx + 0x48]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [esp + 0x1c44]
mov ecx, dword [esp + 0x24]
push edx
push ebp
call fcn.0045eb10
push 0x8000
mov ebx, eax
call sub.MFC42.DLL_operatornew
push 0x8000
mov ebp, eax
call sub.MFC42.DLL_operatornew
push 0x8000
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x30]
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x840]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0x38], esi
call fcn.0045e480
xor edx, edx
cmp eax, 3
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], edx
jge 0x45e1fc
lea ecx, [esp + 0x440]
push esi
push ecx
mov ecx, edi
call fcn.0045e480
cmp eax, 3
mov dword [esp + 0x2c], eax
jge 0x45e1f1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, edi
call fcn.0045e480
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
xor edx, edx
jmp 0x45e206
mov ecx, dword [esp + 0x14]
xor edx, edx
mov byte [ecx], 0
jmp 0x45e206
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
mov byte [esi], 0
mov al, byte [ebp]
test al, al
je 0x45e22c
mov edi, dword [ebx + ebp]
mov dword [esp + 0x18], edi
mov edi, dword [ebx + ebp + 4]
mov dword [esp + 0x20], edi
mov edi, dword [ebx + ebp + 8]
mov dword [esp + 0x1c], edi
mov edi, dword [ebx + ebp + 0xc]
mov dword [esp + 0x10], edi
cmp byte [esi], 0
je 0x45e28f
test al, al
jne 0x45e248
mov ecx, 0x2000
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esi + ebx]
mov edi, dword [esp + 0x18]
cmp edi, eax
jg 0x45e257
mov dword [esp + 0x18], eax
mov eax, dword [esi + ebx + 4]
mov edi, dword [esp + 0x20]
cmp edi, eax
jg 0x45e267
mov dword [esp + 0x20], eax
mov eax, dword [esi + ebx + 8]
mov edi, dword [esp + 0x1c]
cmp edi, eax
jg 0x45e277
mov dword [esp + 0x1c], eax
mov eax, dword [esi + ebx + 0xc]
cmp eax, edx
je 0x45e28f
mov edi, dword [esp + 0x10]
cmp edi, edx
je 0x45e28b
cmp eax, edi
jge 0x45e28f
mov dword [esp + 0x10], eax
cmp byte [ecx], 0
je 0x45e2f0
cmp byte [ebp], 0
jne 0x45e2a9
mov ecx, 0x2000
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [ecx + ebx]
mov esi, dword [esp + 0x18]
cmp esi, eax
jg 0x45e2b8
mov dword [esp + 0x18], eax
mov eax, dword [ecx + ebx + 4]
mov esi, dword [esp + 0x20]
cmp esi, eax
jg 0x45e2c8
mov dword [esp + 0x20], eax
mov eax, dword [ecx + ebx + 8]
mov esi, dword [esp + 0x1c]
cmp esi, eax
jg 0x45e2d8
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + ebx + 0xc]
cmp eax, edx
je 0x45e2f0
mov ecx, dword [esp + 0x10]
cmp ecx, edx
je 0x45e2ec
cmp eax, ecx
jge 0x45e2f0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, 0x40
mov esi, 0x4d3ff4
mov edi, ebp
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x45e31b
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c4c]
test eax, eax
je 0x45e328
cmp eax, dword [edi]
jge 0x45e328
jmp 0x45e326
mov edi, dword [esp + 0x1c4c]
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x45e334
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push 2
push 0
push edx
call fcn.00463610
mov ecx, dword [esp + 0x1c5c]
mov edx, dword [esp + 0x44]
add esp, 0xc
cmp esi, edx
mov dword [ecx], eax
jg 0x45e36a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x45e36d
mov esi, dword [edi]
add esi, 0x813300
cmp edx, esi
jge 0x45e36d
inc eax
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [ebx + ebp], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + ebp + 4], edx
mov ecx, dword [ecx]
test eax, eax
mov dword [ebx + ebp + 8], ecx
je 0x45e3a3
lea ecx, [edx + 0x83d600]
add edx, 0xfffffff6
push ecx
push edx
push eax
call fcn.00463610
mov edx, dword [esp + 0x1c60]
add esp, 0xc
mov dword [edx], eax
jmp 0x45e3b0
mov eax, dword [esp + 0x1c54]
mov dword [eax], 0
mov eax, dword [esp + 0x34]
mov edi, 3
cmp eax, edi
mov bl, 1
jne 0x45e403
mov esi, dword [esp + 0x24]
push 1
lea ecx, [esp + 0x844]
push ebp
push ecx
mov ecx, esi
call fcn.0045e670
test al, al
jne 0x45e453
push 2
lea edx, [esp + 0x444]
push ebp
push edx
mov ecx, esi
call fcn.0045e670
test al, al
jne 0x45e453
push edi
lea eax, [esp + 0x44]
push ebp
push eax
mov ecx, esi
call fcn.0045e670
test al, al
jne 0x45e453
jmp 0x45e451
cmp dword [esp + 0x2c], edi
jne 0x45e437
mov esi, dword [esp + 0x24]
push 2
lea ecx, [esp + 0x444]
push ebp
push ecx
mov ecx, esi
call fcn.0045e670
test al, al
jne 0x45e453
push edi
lea edx, [esp + 0x44]
push ebp
push edx
mov ecx, esi
call fcn.0045e670
test al, al
jne 0x45e453
jmp 0x45e451
cmp dword [esp + 0x28], edi
jne 0x45e451
mov ecx, dword [esp + 0x24]
push edi
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.0045e670
test al, al
jne 0x45e453
xor bl, bl
push ebp
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x38]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 0xc
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c30
ret 0x14