Function at 0x1000bad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0dcc
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100f5074]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x70], 0
je 0x1000bb14
mov eax, 1
jmp 0x1000bde2
mov eax, dword [vtable._BaseModule::CCriticalSection.0]
push 0x100f501c
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - vtable._BaseModule::CCriticalSection.0], 0x100f501c
call dword [eax]
cmp dword [edi + 0x70], 0
mov dword [ebp - 4], 0
je 0x1000bb4b
mov esi, 1
jmp 0x1000bdcb
test esi, esi
je 0x1000bdcb
push esi
lea ecx, [ebp - 0x428]
call fcn.10007e20
mov byte [ebp - 4], 1
call fcn.1000e670
or ebx, 0xffffffff
test eax, eax
je 0x1000bb83
push 5
push str._hkkt
lea ecx, [ebp - 0x428]
call fcn.1000b910
jmp 0x1000bbce
lea eax, [ebp - 0x424]
push 1
push eax
call fcn.10095a60
add esp, 8
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.1000b910
mov edx, dword [ebp - 0x424]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bbce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.popmgrstub
push 1
call fcn.1000b9c0
mov ecx, eax
call fcn.10012560
push 0
push 0
push 1
push 0
push 0x100cd344
call fcn.1000b9c0
mov ecx, eax
call fcn.10012580
mov ecx, 0x100f8d8c
call fcn.1000da00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009e830
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.1000e670
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x1000bc52
push str.Haokan
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x1000bc96
lea eax, [ebp - 0x424]
push 1
push eax
call fcn.10095060
add esp, 8
push dword [ebp - 0x424]
call esi
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x424]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bc96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1009e830
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call esi
mov esi, eax
push str._PopMgrStub.log
push esi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0x100cd318
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.10007e20
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 3
push eax
mov ecx, 0x100f8d8c
call fcn.1000ddd0
mov edx, dword [ebp - 0x424]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bd3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x428]
push str.Start_init_stub__s
call fcn.1000c680
add esp, 8
lea ecx, [edi + 0x14]
push dword [ebp - 0x428]
call fcn.10009020
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
call dword [eax + 4]
push 0xffffffffffffffff
push dword [edi + 0x74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.PopMgrWndClassName_78F9CD13_C831_48D7_B90C_3D16C214DADA
push str.PopMgrWndClassName_78F9CD13_C831_48D7_B90C_3D16C214DADA
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1000bd93
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1000bda0
push str.check_popmgr_wnd_not_exits.
call fcn.1000c680
add esp, 4
mov eax, dword [ebp - 0x428]
mov esi, 1
mov dword [edi + 0x70], 1
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000bdcb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [vtable._BaseModule::CCriticalSection.0]
push 0x100f501c
mov dword [ebp - 4], 4
call dword [ecx + 4]
mov eax, esi
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.10010efc
mov esp, ebp
pop ebp
ret 8