Function at 0x46a190
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x495119
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
push edi
lea ebx, [ebp + 0x384]
lea edx, [esp + 0x1c]
mov ecx, ebx
push edx
lea edi, [ebx + 3]
push 0x400
mov word [ecx], ax
mov dword [esp + 0x20], ebp
mov byte [ecx + 2], al
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x107]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x207]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x307]
mov ecx, 0xc1
mov dword [esp + 0x18], edi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._tmpFile.txt
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
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, [ebx + 0x207]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x107]
lea esi, [ebx + 3]
push edi
push esi
lea eax, [esp + 0x28]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x207]
push eax
push edi
push esi
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x424], ebx
call fcn.00469c90
mov ecx, dword [esp + 0x42c]
mov eax, dword [esp + 0x430]
lea edx, [ebp + 0x18]
mov dword [ebp + 0x330], ecx
mov dword [ebp + 0x334], eax
mov dword [ebp + 0x10], ebp
mov dword [ebp + 0x1c], edx
mov edi, dword [ecx + 0x18]
mov eax, dword [eax + 0x1c]
push 0x64
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x424], 1
je 0x46a2eb
mov ecx, dword [esp + 0x10]
push ecx
push edi
mov ecx, esi
call fcn.00481d00
mov dword [esi], 0x4a04d0
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
jmp 0x46a2ed
xor esi, esi
push 0x64
mov byte [esp + 0x428], bl
mov dword [ebp + 0x34c], esi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x424], 2
je 0x46a337
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push edi
call fcn.00481d00
mov dword [esi], 0x4a04d0
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
jmp 0x46a339
xor esi, esi
push 0x64
mov byte [esp + 0x428], bl
mov dword [ebp + 0x350], esi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x424], 3
je 0x46a383
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.004810d0
mov dword [esi], 0x4a0400
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
jmp 0x46a385
xor esi, esi
push 0x64
mov byte [esp + 0x428], bl
mov dword [ebp + 0x358], esi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x424], 4
je 0x46a3cf
mov ecx, dword [esp + 0x10]
push ecx
push edi
mov ecx, esi
call fcn.004810d0
mov dword [esi], 0x4a0400
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
jmp 0x46a3d1
xor esi, esi
mov edx, dword [ebp + 0x358]
mov eax, dword [esp + 0x42c]
mov dword [ebp + 0x35c], esi
mov dword [ebp + 0x354], edx
mov ecx, dword [eax + 0x18]
pop edi
mov dword [ebp + 0x24], ecx
mov ecx, dword [esp + 0x418]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x418
ret 8