Function at 0x1010a200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016b9cb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x101bd92c]
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 dword [ebp - 0x43c], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x448], ebx
call fcn.10098090
add esp, 0xc
cmp word [ebx], 0
jne 0x1010a273
xor ecx, ecx
jmp 0x1010a28f
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x1010a280
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a280
sub ecx, edx
sar ecx, 1
push ecx
add edi, 0x2c
push ebx
mov ecx, edi
call fcn.100048b0
push 7
push str.gbk.idx
mov ecx, edi
call fcn.10004660
cmp word [ebx], 0
jne 0x1010a2b3
xor ecx, ecx
jmp 0x1010a2cf
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x1010a2c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a2c0
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x43c]
push ecx
push dword [ebp - 0x448]
add ebx, 0x44
mov ecx, ebx
call fcn.100048b0
push 7
push str.gbk.dat
mov ecx, ebx
call fcn.10004660
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._s_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a32a
xor ecx, ecx
jmp 0x1010a342
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a333
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x43c]
push ecx
add eax, 0x5c
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
mov dword [ebp - 0x444], eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._s_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a396
xor ecx, ecx
jmp 0x1010a3af
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a3a0
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x43c]
push ecx
add eax, 0x74
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
mov dword [ebp - 0x440], eax
call fcn.100048b0
mov eax, dword [ebp - 0x43c]
mov ecx, eax
mov byte [eax + 6], 0xf
call fcn.10109220
test eax, eax
jne 0x1010a8ea
cmp word [esi], ax
jne 0x1010a3ef
xor ecx, ecx
jmp 0x1010a403
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a3f4
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.100048b0
push 7
push str.gbk.idx
mov ecx, edi
call fcn.10004660
cmp word [esi], 0
jne 0x1010a424
xor ecx, ecx
jmp 0x1010a43f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a430
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.100048b0
push 7
push str.gbk.dat
mov ecx, ebx
call fcn.10004660
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a48c
xor ecx, ecx
jmp 0x1010a4a4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a495
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a4ed
xor ecx, ecx
jmp 0x1010a505
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a4f6
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
mov ecx, dword [ebp - 0x43c]
call fcn.10109220
test eax, eax
jne 0x1010a8ea
mov esi, dword [ebp - 0x44c]
cmp word [esi], ax
jne 0x1010a53a
xor ecx, ecx
jmp 0x1010a54f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a540
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.100048b0
push 7
push str.gbk.idx
mov ecx, edi
call fcn.10004660
cmp word [esi], 0
jne 0x1010a570
xor ecx, ecx
jmp 0x1010a584
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a575
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.100048b0
push 7
push str.gbk.dat
mov ecx, ebx
call fcn.10004660
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a5d1
xor ecx, ecx
jmp 0x1010a5ef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a5e0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a638
xor ecx, ecx
jmp 0x1010a650
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a641
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
mov ecx, dword [ebp - 0x43c]
call fcn.10109220
test eax, eax
jne 0x1010a8ea
mov esi, dword [ebp - 0x448]
push esi
lea ecx, [ebp - 0x438]
call fcn.10004410
push 7
push str.gbk.idx
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.10004660
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.10098090
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x420], 0
jne 0x1010a6df
xor ecx, ecx
jmp 0x1010a6ff
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
jmp 0x1010a6f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a6f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, edi
call fcn.100048b0
push 6
push str.dz.dat
mov ecx, edi
call fcn.10004660
cmp dword [edi + 0x14], 8
jb 0x1010a724
mov edi, dword [edi]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push edi
push eax
call fcn.1000e180
add esp, 8
cmp word [esi], 0
jne 0x1010a74c
xor ecx, ecx
jmp 0x1010a760
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a751
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.100048b0
push 7
push str.gbk.dat
lea ecx, [ebp - 0x438]
call fcn.10004660
cmp word [ebp - 0x420], 0
jne 0x1010a78d
xor ecx, ecx
jmp 0x1010a7a5
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a796
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, ebx
call fcn.100048b0
push 7
push str.gbk.dat
mov ecx, ebx
call fcn.10004660
cmp dword [ebx + 0x14], 8
jb 0x1010a7ca
mov ebx, dword [ebx]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push ebx
push eax
call fcn.1000e180
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sTEMP_s_s_d
push eax
call fcn.10091da4
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x1010a81b
xor ecx, ecx
jmp 0x1010a833
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a824
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_GBK_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sTEMP_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a87c
xor ecx, ecx
jmp 0x1010a894
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a885
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
mov ebx, dword [ebp - 0x43c]
mov ecx, ebx
call fcn.10109220
lea ecx, [ebp - 0x438]
test eax, eax
jne 0x1010a8e3
call fcn.10004470
xor eax, eax
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.1009174c
mov esp, ebp
pop ebp
ret 0xc
call fcn.10004470
jmp 0x1010a8f0
mov ebx, dword [ebp - 0x43c]
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x1010a8c3
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x1010a8c3
cmp dword [esi + 0xc], 0x4e20
jne 0x1010a8c3
mov ecx, str.__GS__
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010a930
test dl, dl
je 0x1010a92c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010a930
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010a910
xor eax, eax
jmp 0x1010a935
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010a8c3
lea eax, [esi + 0x10]
mov dword [ebx + 0x20], eax
cmp dword [edi + 0xc], 0x4e20
jne 0x1010a8c3
mov ecx, str.__GS__
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010a973
test dl, dl
je 0x1010a96f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010a973
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010a953
xor eax, eax
jmp 0x1010a978
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010a8c3
lea eax, [edi + 0x10]
mov dword [ebx + 0x28], eax
mov byte [ebx + 5], 1
mov eax, 1
jmp 0x1010a8c5