Function at 0x413950
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fd68
mov eax, dword fs:[0]
push eax
mov eax, 0x48e4
call fcn.00497d20
mov eax, dword [0x4cc99c]
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
lea eax, [ebp - 0x48f0]
push eax
mov esi, ecx
call fcn.0047b400
lea ecx, [ebp - 0x4848]
xor edi, edi
push ecx
mov dword [ebp - 4], edi
call fcn.0047bee0
push 0x7fe
lea eax, [ebp - 0x80e]
xor edx, edx
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x810], dx
call sub.MSVCR100.dll_memset
add esp, 0x14
push edi
push 0x10
lea ecx, [ebp - 0x810]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
lea eax, [ebp - 0x810]
mov word [ebp - 0x482c], dx
mov dword [ebp - 0x4818], 7
mov dword [ebp - 0x481c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4139f6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x482c]
call fcn.004027c0
push 1
push 0x4adfcc
lea ecx, [ebp - 0x482c]
mov byte [ebp - 4], 2
call fcn.004026a0
lea ebx, [esi + 0x200]
mov eax, ebx
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x413a40
sub eax, ecx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x482c]
call fcn.004026a0
push 4
push 0x4b08a8
lea ecx, [ebp - 0x482c]
call fcn.004026a0
push 0x1ffe
lea edx, [ebp - 0x480e]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x4810], cx
call sub.MSVCR100.dll_memset
lea edi, [esi + 0x100]
push edi
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll__snwprintf_s]
push str._title:_s__id:_s
push 0xfff
lea eax, [ebp - 0x4810]
push 0x1000
push eax
call ebx
xor ecx, ecx
push 0x1ffe
push ecx
lea edx, [ebp - 0x280e]
push edx
mov word [ebp - 0x2810], cx
call sub.MSVCR100.dll_memset
lea eax, [esi + 0x180]
push eax
lea ecx, [esi + 0x1200]
push ecx
add esi, 0xa00
push esi
push str._s:__im:_s__u:_s__category:_s
push 0xfff
lea edx, [ebp - 0x2810]
push 0x1000
push edx
call ebx
add esp, 0x4c
lea eax, [ebp - 0x2810]
push eax
push edi
call fcn.00461170
lea ecx, [ebp - 0x48b8]
push ecx
call fcn.0047bee0
push str.gamedata_
push eax
lea edx, [ebp - 0x489c]
push edx
mov byte [ebp - 4], 3
call fcn.00408f20
push edi
push eax
lea eax, [ebp - 0x48d4]
push eax
mov byte [ebp - 4], 4
call fcn.00408f20
push str.game.ico
push eax
lea ecx, [ebp - 0x4880]
push ecx
mov byte [ebp - 4], 5
call fcn.00408f20
add esp, 0x30
mov esi, 8
cmp dword [ebp - 0x48c0], esi
jb 0x413b71
mov edx, dword [ebp - 0x48d4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, 7
xor edi, edi
xor eax, eax
mov dword [ebp - 0x48c0], ebx
mov dword [ebp - 0x48c4], edi
mov word [ebp - 0x48d4], ax
cmp dword [ebp - 0x4888], esi
jb 0x413ba5
mov ecx, dword [ebp - 0x489c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x4888], ebx
mov dword [ebp - 0x488c], edi
mov word [ebp - 0x489c], dx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x48a4], esi
jb 0x413bd6
mov eax, dword [ebp - 0x48b8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x4810]
mov word [ebp - 0x4864], dx
mov dword [ebp - 0x48a4], ebx
mov dword [ebp - 0x48a8], edi
mov word [ebp - 0x48b8], cx
mov dword [ebp - 0x4850], ebx
mov dword [ebp - 0x4854], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413c10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x4810]
push eax
lea ecx, [ebp - 0x4864]
call fcn.004027c0
push edi
lea ecx, [ebp - 0x4880]
push ecx
lea edx, [ebp - 0x4864]
push edx
lea eax, [ebp - 0x4848]
push eax
lea ecx, [ebp - 0x482c]
push ecx
lea edx, [ebp - 0x48f0]
push edx
mov byte [ebp - 4], 0xa
call fcn.0045bf80
add esp, 0x18
mov byte [ebp - 4], 9
cmp dword [ebp - 0x4850], esi
jb 0x413c7e
mov eax, dword [ebp - 0x4864]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x4818], esi
jb 0x413c97
mov eax, dword [ebp - 0x482c]
cmp eax, edi
jne 0x413c9d
push 0x4ab248
jmp 0x413c9e
lea eax, [ebp - 0x482c]
push eax
push str.GameShortcut
push str.SoftwareHuofeng
push SysReAllocString
call fcn.0047eff0
add esp, 0x10
cmp dword [ebp - 0x486c], esi
jb 0x413ccd
mov ecx, dword [ebp - 0x4880]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x486c], ebx
mov dword [ebp - 0x4870], edi
mov word [ebp - 0x4880], dx
cmp dword [ebp - 0x4818], esi
jb 0x413cfa
mov eax, dword [ebp - 0x482c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x4818], ebx
mov dword [ebp - 0x481c], edi
mov word [ebp - 0x482c], cx
cmp dword [ebp - 0x4834], esi
jb 0x413d27
mov edx, dword [ebp - 0x4848]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x4834], ebx
mov dword [ebp - 0x4838], edi
mov word [ebp - 0x4848], ax
cmp dword [ebp - 0x48dc], esi
jb 0x413d54
mov ecx, dword [ebp - 0x48f0]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
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.00497792
mov esp, ebp
pop ebp
ret