Function at 0x1d0f390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1e2fc1a
mov eax, dword fs:[0]
push eax
sub esp, 0x74c
mov eax, dword [0x1e94008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1d0fb36
cmp byte [esi], 0
je 0x1d0fb36
mov ecx, dword [0x1ea778c]
push 4
mov eax, dword [ecx]
call dword [eax + 0xb4]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1d0f3e8
sub ecx, edx
lea eax, [esi + ecx]
cmp eax, esi
jbe 0x1d0f403
cmp byte [eax - 1], 0x2e
je 0x1d0f403
dec eax
cmp eax, esi
ja 0x1d0f3f8
push 0x103
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.01e0d270
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x758], 1
mov dword [ebp - 0x754], 0
mov dword [ebp - 0x750], 0
mov dword [ebp - 0x74c], 0
mov dword [ebp - 0x73c], 0
mov dword [ebp - 0x748], 0
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 0
mov dword [ebp - 0x738], method.CImportImageDialog.virtual_184
mov dword [ebp - 0x734], fcn.01d1e270
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 1
push 0x1e3ef34
push eax
call fcn.01e06197
add esp, 0x14
test eax, eax
jne 0x1d0f5fe
lea eax, [ebp - 0x730]
mov ecx, edi
push eax
lea eax, [ebp - 0x758]
push eax
push esi
call fcn.01d10c50
test al, al
jne 0x1d0f8f4
mov eax, dword [ebp - 0x730]
cmp eax, 1
jne 0x1d0f502
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3ef38
push 0x1e3ef5c
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 2
jne 0x1d0f540
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3ef80
push 0x1e3efac
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 3
jne 0x1d0f57e
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3efd0
push 0x1e3f000
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 4
jne 0x1d0f5bc
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f024
push 0x1e3f058
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 5
jne 0x1d0fb0a
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f07c
push 0x1e3f0ac
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
lea eax, [ebp - 0x114]
push 0x1e3f0d0
push eax
call fcn.01e06197
add esp, 8
test eax, eax
je 0x1d0f7a3
lea eax, [ebp - 0x114]
push str.jpeg
push eax
call fcn.01e06197
add esp, 8
test eax, eax
je 0x1d0f7a3
lea eax, [ebp - 0x114]
push 0x1e3f268
push eax
call fcn.01e06197
add esp, 8
test eax, eax
jne 0x1d0f8f4
push esi
lea eax, [ebp - 0x758]
mov ecx, edi
push eax
call fcn.01d10430
test eax, eax
je 0x1d0f8f4
cmp eax, 1
jne 0x1d0f6a7
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f26c
push 0x1e3f290
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 2
jne 0x1d0f6e5
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f2b4
push 0x1e3f2e0
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 3
jne 0x1d0f723
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f304
push 0x1e3f334
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 4
jne 0x1d0f761
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x1d0faf6
push 0
push str.GameUI_Image_Import_Error_BMP_Format_Not_Supported
push 0x1e3f38c
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 5
jne 0x1d0fb0a
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f3b0
push 0x1e3f3e0
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
push esi
lea eax, [ebp - 0x758]
mov ecx, edi
push eax
call fcn.01d10080
test eax, eax
je 0x1d0f8f4
cmp eax, 1
jne 0x1d0f7f8
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f0dc
push 0x1e3f100
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 2
jne 0x1d0f836
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f124
push 0x1e3f150
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 3
jne 0x1d0f874
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f174
push 0x1e3f1a4
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 5
jne 0x1d0f8b2
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x1d0faf6
push 0
push 0x1e3f1c8
push 0x1e3f1f8
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 4
jne 0x1d0fb0a
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1d0faf6
push 0
push str.GameUI_Image_Import_Image_Wrong_Size
push 0x1e3f244
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
lea eax, [ebp - 0x524]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x524]
push eax
push str._suserdata_avatar.tga
lea eax, [ebp - 0x72c]
push 0x104
push eax
call fcn.01d11f90
push 2
push 0x208
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x72c]
push eax
call dword [sym.imp.vstdlib_d.dll_V_UTF16ToUTF8]
add esp, 0x20
test eax, eax
je 0x1d0fabd
cmp byte [ebp - 0x31c], 0
lea eax, [ebp - 0x31c]
je 0x1d0f966
cmp byte [eax], 0x2f
jne 0x1d0f960
mov byte [eax], 0x5c
inc eax
cmp byte [eax], 0
jne 0x1d0f958
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1d0f970
sub ecx, edx
cmp byte [ebp + ecx - 0x31d], 0x5c
jne 0x1d0f993
dec ecx
cmp ecx, 0x208
jae 0x1d0fa03
mov byte [ebp + ecx - 0x31c], al
mov ecx, dword [0x1ea8644]
push 0x1e3f434
push str.userdata
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea eax, [ebp - 0x31c]
mov ecx, edi
push eax
lea eax, [ebp - 0x758]
push eax
call fcn.01d11480
test eax, eax
je 0x1d0faef
cmp eax, 1
jne 0x1d0fa08
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x1d0faf6
push 0
push str.GameUI_Image_Import_Error_Memory
push 0x1e3f46c
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
call fcn.01e02e38
cmp eax, 2
jne 0x1d0fa46
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0x12
test eax, eax
je 0x1d0faf6
push 0
push str.GameUI_Image_Import_Error_Reading_Image
push 0x1e3f4bc
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 3
jne 0x1d0fa81
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x1d0faf6
push 0
push str.GameUI_Image_Import_Error_Image_File_Corrupt
push 0x1e3f510
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 4
jne 0x1d0fab8
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x1d0faf6
push 0
push str.GameUI_Image_Import_Error_TGA_Format_Not_Supported
push 0x1e3f568
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
cmp eax, 5
jne 0x1d0fb0a
push 0x124
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x1d0faf6
push 0
push str.GameUI_Image_Import_Error_Writing_Temp_Output
push str.GameUI_Image_Import_Error_Title
mov ecx, eax
call fcn.01dd2040
mov ecx, eax
jmp 0x1d0faf8
call fcn.01d0ff30
jmp 0x1d0fb0a
xor ecx, ecx
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1d0fb0a
mov eax, dword [ecx]
push 0
call dword [eax + 0x2f8]
mov ecx, dword [0x1ea778c]
push 0
mov eax, dword [ecx]
call dword [eax + 0xb4]
cmp dword [ebp - 0x74c], 0
jl 0x1d0fb36
mov eax, dword [ebp - 0x754]
test eax, eax
je 0x1d0fb36
push eax
call fcn.01e06279
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e029b1
mov esp, ebp
pop ebp
ret 4