Function at 0x49ae29
Capabilities:
Get common file path

Disassembly:
push 0x20
mov eax, 0x4c8c2b
call fcn.004c5434
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC42u.dll_CString::CString]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MFC42u.dll_CString::CString]
mov esi, 0x104
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], bl
call dword [sym.imp.MFC42u.dll_CString::GetBuffer]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov esi, eax
call dword [sym.imp.MFC42u.dll_CString::ReleaseBuffer]
test esi, esi
je 0x49b05c
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x49b05c
mov edi, dword [sym.imp.msvcrt.dll___argc]
push 0x2f
pop ecx
mov dword [ebp - 0x1c], 0x2d
cmp dword [edi], 2
mov dword [ebp - 0x20], ecx
jle 0x49af0d
mov eax, dword [sym.imp.msvcrt.dll___wargv]
mov eax, dword [eax]
mov edx, dword [eax + 8]
movzx eax, word [edx]
cmp ax, word [ebp - 0x1c]
je 0x49af0d
cmp ax, cx
je 0x49af0d
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x49aec3
sub ecx, edi
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
jbe 0x49aef9
push 1
call fcn.004c591d
push eax
push 0x410218
call dword [sym.imp.msvcrt.dll_fputws]
add esp, 0xc
push 0x57
jmp 0x49b074
push edx
lea ecx, [ebp - 0x18]
call dword [0x4f63d8]
mov edi, dword [sym.imp.msvcrt.dll___argc]
mov byte [ebp - 0xd], 1
mov edx, dword [edi]
push 3
pop ecx
cmp edx, ecx
jle 0x49b009
cmp edx, 3
jle 0x49affe
mov eax, dword [sym.imp.msvcrt.dll___wargv]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ebx, dword [eax + ecx*4]
movzx eax, word [ebx]
cmp ax, word [ebp - 0x1c]
je 0x49af43
cmp ax, word [ebp - 0x20]
jne 0x49affe
cmp word [ebx + 2], 0x70
jne 0x49aef2
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
cmp eax, edx
jge 0x49affe
mov ebx, dword [ebp - 0x24]
push 0x2d
pop edx
mov ebx, dword [ebx + ecx*4 + 4]
movzx eax, word [ebx]
cmp ax, dx
je 0x49affe
push 0x2f
pop edx
cmp ax, dx
je 0x49affe
mov ecx, ebx
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x49af81
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
ja 0x49b020
mov edi, ebx
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x49afa5
sub edi, ecx
mov ecx, ebx
sar edi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x28]
jne 0x49afb9
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC42u.dll_CString::GetBuffer]
lea ecx, [edi + 1]
push ecx
push ebx
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0xffffffffffffffff
call dword [sym.imp.MFC42u.dll_CString::ReleaseBuffer]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [sym.imp.msvcrt.dll___argc]
mov edx, dword [edi]
inc ecx
cmp ecx, edx
jl 0x49af1a
cmp byte [ebp - 0xd], 0
jne 0x49b038
push 0x41027c
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
jmp 0x49aef2
push 1
call fcn.004c591d
push eax
push 0x410254
call dword [sym.imp.msvcrt.dll_fputs]
jmp 0x49aeef
push 1
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0049c300
test al, al
jne 0x49b075
push 0x57
pop esi
push esi
push 0x4102b8
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
jmp 0x49b075
push 1
call fcn.004c591d
push eax
push 0x4101d8
call dword [sym.imp.msvcrt.dll_fputws]
add esp, 0xc
push 3
pop esi
lea ecx, [ebp - 0x18]
call dword [0x4f63ac]
lea ecx, [ebp - 0x14]
call dword [0x4f63ac]
mov eax, esi
call fcn.004c5402
ret