Function at 0x2f3a06a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2f3a35e
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x360
push ebx
push esi
push edi
xor ebx, ebx
cmp dword [0x2f587c8], ebx
jne 0x2f3a1e3
mov dword [0x2f587c8], 1
push 0x2f25108
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x2f3a1e3
push 0x2f250f4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x2f250e0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2f250c4
mov dword [ebp - 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2f250b8
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x2f3a1dc
cmp dword [ebp - 0x18], ebx
je 0x2f3a1dc
cmp dword [ebp - 0x10], ebx
je 0x2f3a1dc
test eax, eax
je 0x2f3a1dc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ecx
call eax
test eax, eax
jl 0x2f3a1bb
cmp dword [ebp - 0x10], ebx
je 0x2f3a1bb
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x2f3a13e
push dword [ebp + 0xc]
mov ecx, eax
call sub.HWDLL.dll_Ordinal_14
jmp 0x2f3a140
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x18]
mov dword [0x2f59938], eax
mov dword [ebp - 0x80], ecx
xor ecx, ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], ecx
cmp dword [0x2f5965c], 3
mov dword [ebp - 0x78], ecx
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], 0x2f3a38a
mov dword [ebp - 0x68], edx
jne 0x2f3a186
push 0x7533
call fcn.02f4fb75
lea eax, [ebp - 0x80]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x2f3a24f
push dword [ebp + 0x14]
push ebx
call dword [ebp - 0x18]
test eax, eax
je 0x2f3a24f
push 0
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call fcn.02f39c7b
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], 0
je 0x2f3a1dc
test ebx, ebx
je 0x2f3a1d1
push ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
push dword [ebp - 0x10]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x2f587c8], 0
je 0x2f3a336
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x2f3a21d
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x36c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [ebp - 0x60]
xor eax, eax
mov ecx, 0x13
push 4
rep stosd dword es:[edi], eax
call sub.MFC42.DLL_operatornew
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 1
mov esi, eax
test esi, esi
je 0x2f3a267
push dword [ebp + 0xc]
mov ecx, esi
call sub.HWDLL.dll_Ordinal_14
jmp 0x2f3a269
mov dword [ebp - 0x14], 0
jmp 0x2f3a1bb
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x18]
mov dword [0x2f59938], eax
lea eax, [ebp - 0x268]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x60], 0x4c
mov dword [ebp - 0x5c], ecx
test edi, edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0x60
jne 0x2f3a29e
mov edi, 0x2f24e24
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp - 0x164]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0x104
call sub.MFC42.DLL_AfxGetModuleState
cmp dword [0x2f5965c], 3
mov eax, dword [eax + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], 0x2f3a3b5
mov dword [ebp - 0x18], 0x13ab
jne 0x2f3a2fd
push 0x7533
call fcn.02f4fb75
lea eax, [ebp - 0x60]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
push dword [ebp + 0x14]
push 0x104
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call fcn.02f39c7b
test ebx, ebx
je 0x2f3a336
lea eax, [ebp - 0x36c]
push eax
call fcn.02f3a478
xor edx, edx
cmp dword [ebp - 0x14], edx
je 0x2f3a374
mov ecx, dword [ebp + 0x24]
cmp ecx, edx
je 0x2f3a374
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0x2e
jne 0x2f3a374
cmp byte [eax + 1], dl
jne 0x2f3a374
push 0xffffffffffffffff
push edx
push ecx
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x2f3a377
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20