Function at 0x100e6940
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x560
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc2]
mov word [esp + 0xc0], bx
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x160], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x162]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x164]
push 5
xor esi, esi
push eax
push ebx
xor ebp, ebp
mov dword [esp + 0x20], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100e6c30
lea ecx, [esp + 0x160]
lea edx, [esp + 0x368]
push ecx
push str._sWXWorkLocalGlobalConfig.cfg
push 0x103
push edx
call fcn.100ed8bc
add esp, 0x10
lea eax, [esp + 0x368]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x100e6c1f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jbe 0x100e6bb9
push 0x1001
call fcn.1019a42e
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x100e6bb9
mov ecx, 0x400
xor eax, eax
mov edi, ebp
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push ebx
push edx
push 0x1000
push ebp
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e6ba0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100e6ba0
cmp eax, 0x1000
jae 0x100e6a71
mov byte [eax + ebp], bl
cmp word [esp + 0xc0], bx
jne 0x100e6af2
push str._kAccountKey_:__
push ebp
call fcn.100eda30
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x100e6af2
mov edi, str._kAccountKey_:__
or ecx, 0xffffffff
xor eax, eax
push 0x22
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
push esi
call fcn.100ed800
add esp, 8
cmp eax, ebx
je 0x100e6af2
lea ecx, [esp + 0xc0]
push 0x4f
sub eax, esi
push ecx
push eax
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [0x102cb7c8], ebx
je 0x100e6af2
lea edx, [esp + 0xc0]
push edx
push str.GetLogonUserNameByConfig_User__s_
push str.WxWork
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
cmp word [esp + 0x20], bx
jne 0x100e6b71
push str._QrcodeLoginNickName_:__
push ebp
call fcn.100eda30
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x100e6b6a
mov edi, str._QrcodeLoginNickName_:__
or ecx, 0xffffffff
xor eax, eax
push 0x22
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
push esi
call fcn.100ed800
add esp, 8
cmp eax, ebx
je 0x100e6b6a
lea ecx, [esp + 0x20]
push 0x4f
sub eax, esi
push ecx
push eax
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [0x102cb7c8], ebx
je 0x100e6b6a
lea edx, [esp + 0x20]
push edx
push str.GetLogonUserNameByConfig_Nick__s_
push str.WxWork
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
cmp word [esp + 0x20], bx
je 0x100e6b7b
cmp word [esp + 0xc0], bx
jne 0x100e6b9c
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push ebx
push eax
push 0x1000
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100e6a5b
jmp 0x100e6ba0
mov esi, dword [esp + 0x18]
cmp word [esp + 0x20], bx
jne 0x100e6bb1
cmp word [esp + 0xc0], bx
je 0x100e6bb9
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
je 0x100e6bcd
push ebp
call fcn.1019a457
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100e6c53
mov esi, dword [esp + 0x578]
mov edi, dword [esp + 0x574]
lea edx, [esp + 0xc0]
lea ecx, [esi - 1]
push ecx
push edx
push edi
call fcn.100ecb95
mov word [edi + esi*2 - 2], bx
mov esi, dword [esp + 0x58c]
mov edi, dword [esp + 0x588]
lea ecx, [esp + 0x2c]
lea eax, [esi - 1]
push eax
push ecx
push edi
call fcn.100ecb95
add esp, 0x18
mov word [edi + esi*2 - 2], bx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 0x10
cmp dword [0x102cb7c8], ebx
je 0x100e6c51
push str.GetLogonUserNameByConfig_
push str.WxWork
push 0xffffffffffffffff
push 0x102caf34
call fcn.10131cf0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 0x10