Function at 0x43f970
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x521d27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ecx
push ebx
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.0041ce40
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ebx
stosw word es:[edi], ax
lea ecx, [esp + 0x44]
push 0x17
push ecx
push ebx
mov dword [esp + 0x15c], ebx
stosb byte es:[edi], al
call esi
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43f9fb
lea edx, [esp + 0x2c]
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, ebp
call fcn.004389a0
push ebx
lea ecx, [esp + 0x44]
push 2
push ecx
push ebx
call esi
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43fa27
lea edx, [esp + 0x2c]
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, ebp
call fcn.004389a0
mov edi, dword [esp + 0x30]
mov ebx, dword [edi]
cmp ebx, edi
je 0x43fbb4
lea ecx, [ebx + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.004c73e6
mov dl, byte [esp + 0x13]
xor esi, esi
push esi
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 1
mov byte [esp + 0x20], dl
call fcn.0041ce40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push esi
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, ebp
call fcn.00438640
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov edi, dword [eax]
cmp edi, eax
je 0x43fb28
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004c73e6
mov eax, dword [ebp + 0x50]
mov byte [esp + 0x14c], 3
mov esi, dword [eax]
cmp esi, eax
je 0x43fb09
lea edx, [esi + 8]
lea ecx, [esp + 0x28]
push edx
call fcn.004c73e6
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x43faf4
mov esi, dword [esi]
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString
cmp esi, dword [ebp + 0x50]
jne 0x43fab6
jmp 0x43fb09
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString
inc dword [esp + 0x14]
mov edi, dword [edi]
lea ecx, [esp + 0x38]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x43fa98
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp edx, ecx
jne 0x43fb58
test ecx, ecx
jbe 0x43fb58
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004c73e6
lea eax, [ebp + 0x4c]
mov ecx, ebp
push eax
call fcn.004380b0
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov ebx, dword [ebx]
cmp esi, eax
mov byte [esp + 0x14c], 1
mov edi, eax
je 0x43fb85
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0041cb40
cmp esi, edi
jne 0x43fb6a
mov eax, dword [esp + 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x14c], al
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x30]
cmp ebx, edi
jne 0x43fa35
mov esi, dword [edi]
mov dword [esp + 0x14c], 0xffffffff
cmp esi, edi
je 0x43fbe0
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.0041cb40
cmp esi, edi
jne 0x43fbc5
mov edi, dword [esp + 0x30]
push edi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x148]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret