Function at 0x10049070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101479b4
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
push 0x206
mov dword [ebp - 0x27c], ebx
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.1011a400
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push esi
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1004914d
call fcn.1000af50
cmp eax, 2
jg 0x1004912d
push 2
push 0xc0b
push str.srcksafe_host.cpp
lea ecx, [ebp - 0x330]
call fcn.1000afc0
push str.Get_CSIDL_LOCAL_APPDATA_FolderPath_failed
mov dword [ebp - 4], ebx
add eax, 8
push str.SAFE_
mov ebx, 1
push eax
mov dword [ebp - 0x27c], ebx
call fcn.100025d0
add esp, 8
push eax
call fcn.100025d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1004931a
lea ecx, [ebp - 0x330]
call fcn.1000b010
jmp 0x1004931a
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], ebx
mov word [ebp - 0x260], ax
cmp word [ebp - 0x218], ax
jne 0x10049173
xor ecx, ecx
jmp 0x1004918f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10049180
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.1000c2b0
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1000de70
add esp, 8
push 0x18
xor eax, eax
mov byte [ebp - 4], 2
push str.liebaoUser_DataDefault
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.1000c2b0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x248]
call fcn.1000d990
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.1000d2b0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.1000baf0
cmp dword [ebp - 0x21c], 8
mov byte [ebp - 4], 2
jb 0x10049249
push dword [ebp - 0x230]
call fcn.1011a1ea
add esp, 4
lea eax, [ebp - 0x248]
push eax
call fcn.10017150
add esp, 4
test al, al
jne 0x1004926b
lea eax, [ebp - 0x248]
push eax
call fcn.10018350
add esp, 4
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], str.uproperty.db
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x27c], 0xc
push eax
lea ecx, [ebp - 0x248]
call fcn.1000dc00
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.1000d2b0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.1000baf0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10016a00
add esp, 8
push eax
lea ecx, [edi + 0xec8]
mov byte [ebp - 4], 6
call fcn.100e2990
cmp dword [ebp - 0x21c], 0x10
jb 0x100492f4
push dword [ebp - 0x230]
call fcn.1011a1ea
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.1000baf0
cmp dword [ebp - 0x24c], 8
jb 0x1004931a
push dword [ebp - 0x260]
call fcn.1011a1ea
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4