Function at 0x4102e0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1c30
call fcn.0041e190
mov eax, dword [esp + 0x1c3c]
mov dl, byte [0x42a800]
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 0x4103d7
cmp ebx, 0x19
jle 0x41038a
push ebx
lea edx, [esp + 0xc44]
push str.IPClient_x.dll
push edx
jmp 0x41039b
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.00414e90
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 0x410448
push str.SHGetSpecialFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410441
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.00412330
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 0x41047f
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.00412330
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x410503
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 0x4104de
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 0x4104fa
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.00410ed0
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.00410840
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 0x4105bc
lea ecx, [esp + 0x440]
push esi
push ecx
mov ecx, edi
call fcn.00410840
cmp eax, 3
mov dword [esp + 0x2c], eax
jge 0x4105b1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, edi
call fcn.00410840
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
xor edx, edx
jmp 0x4105c6
mov ecx, dword [esp + 0x14]
xor edx, edx
mov byte [ecx], 0
jmp 0x4105c6
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
mov byte [esi], 0
mov al, byte [ebp]
test al, al
je 0x4105ec
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 0x41064f
test al, al
jne 0x410608
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 0x410617
mov dword [esp + 0x18], eax
mov eax, dword [esi + ebx + 4]
mov edi, dword [esp + 0x20]
cmp edi, eax
jg 0x410627
mov dword [esp + 0x20], eax
mov eax, dword [esi + ebx + 8]
mov edi, dword [esp + 0x1c]
cmp edi, eax
jg 0x410637
mov dword [esp + 0x1c], eax
mov eax, dword [esi + ebx + 0xc]
cmp eax, edx
je 0x41064f
mov edi, dword [esp + 0x10]
cmp edi, edx
je 0x41064b
cmp eax, edi
jge 0x41064f
mov dword [esp + 0x10], eax
cmp byte [ecx], 0
je 0x4106b0
cmp byte [ebp], 0
jne 0x410669
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 0x410678
mov dword [esp + 0x18], eax
mov eax, dword [ecx + ebx + 4]
mov esi, dword [esp + 0x20]
cmp esi, eax
jg 0x410688
mov dword [esp + 0x20], eax
mov eax, dword [ecx + ebx + 8]
mov esi, dword [esp + 0x1c]
cmp esi, eax
jg 0x410698
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + ebx + 0xc]
cmp eax, edx
je 0x4106b0
mov ecx, dword [esp + 0x10]
cmp ecx, edx
je 0x4106ac
cmp eax, ecx
jge 0x4106b0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, 0x40
mov esi, 0x424d80
mov edi, ebp
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4106db
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c4c]
test eax, eax
je 0x4106e8
cmp eax, dword [edi]
jge 0x4106e8
jmp 0x4106e6
mov edi, dword [esp + 0x1c4c]
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x4106f4
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push 2
push 0
push edx
call fcn.00412490
mov ecx, dword [esp + 0x1c5c]
mov edx, dword [esp + 0x44]
add esp, 0xc
cmp esi, edx
mov dword [ecx], eax
jg 0x41072a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41072d
mov esi, dword [edi]
add esi, 0x813300
cmp edx, esi
jge 0x41072d
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 0x410763
lea ecx, [edx + 0x83d600]
add edx, 0xfffffff6
push ecx
push edx
push eax
call fcn.00412490
mov edx, dword [esp + 0x1c60]
add esp, 0xc
mov dword [edx], eax
jmp 0x410770
mov eax, dword [esp + 0x1c54]
mov dword [eax], 0
mov eax, dword [esp + 0x34]
mov edi, 3
cmp eax, edi
mov bl, 1
jne 0x4107c3
mov esi, dword [esp + 0x24]
push 1
lea ecx, [esp + 0x844]
push ebp
push ecx
mov ecx, esi
call fcn.00410a30
test al, al
jne 0x410813
push 2
lea edx, [esp + 0x444]
push ebp
push edx
mov ecx, esi
call fcn.00410a30
test al, al
jne 0x410813
push edi
lea eax, [esp + 0x44]
push ebp
push eax
mov ecx, esi
call fcn.00410a30
test al, al
jne 0x410813
jmp 0x410811
cmp dword [esp + 0x2c], edi
jne 0x4107f7
mov esi, dword [esp + 0x24]
push 2
lea ecx, [esp + 0x444]
push ebp
push ecx
mov ecx, esi
call fcn.00410a30
test al, al
jne 0x410813
push edi
lea edx, [esp + 0x44]
push ebp
push edx
mov ecx, esi
call fcn.00410a30
test al, al
jne 0x410813
jmp 0x410811
cmp dword [esp + 0x28], edi
jne 0x410811
mov ecx, dword [esp + 0x24]
push edi
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.00410a30
test al, al
jne 0x410813
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