Function at 0x422e40
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531282
mov eax, dword fs:[0]
push eax
sub esp, 0xcf0
mov eax, dword [0x589644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xcf4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x423738
push eax
call fcn.0040e900
add esp, 4
lea ecx, [ebp - 0xcf0]
push eax
call fcn.0044dbd0
cmp dword [ebp - 0xcf0], 0
mov dword [ebp - 4], 0
je 0x42372d
push str.errno
lea ecx, [ebp - 0xa78]
call fcn.0041f430
push 1
lea eax, [ebp - 0xa78]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0xcf0]
call fcn.0044ded0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa78]
mov esi, eax
call fcn.00412ea0
push 0x54794c
lea ecx, [ebp - 0xac0]
call fcn.0041f430
push 0x5485e8
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], 2
call fcn.0041f430
lea eax, [ebp - 0xac0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xaa8]
push eax
push dword [ebp - 0xcf0]
lea eax, [ebp - 0xa90]
push eax
call fcn.0044e240
add esp, 0x10
lea ecx, [ebp - 0xaa8]
call fcn.00412ea0
lea ecx, [ebp - 0xac0]
mov byte [ebp - 4], 6
call fcn.00412ea0
test esi, esi
je 0x423009
cmp dword [ebp - 0xa7c], 0x10
lea eax, [ebp - 0xa90]
lea ecx, [ebp - 0xbd8]
cmovae eax, dword [ebp - 0xa90]
push 0xfde9
mov dword [ebp - 0xbdc], ecx
lea ecx, [ebp - 0xbdc]
push eax
call fcn.004217a0
push dword [ebp - 0xbdc]
lea ecx, [ebp - 0xce8]
mov byte [ebp - 4], 7
call fcn.004108d0
mov eax, dword [ebp - 0xbdc]
lea ecx, [ebp - 0xbd8]
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x422fb5
push eax
call fcn.005029f8
add esp, 4
mov eax, dword [ebp - 0xce8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0xcf4], esi
call fcn.0040c860
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
push 1
call fcn.00423c90
mov edx, dword [ebp - 0xce8]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423722
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x423722
sub esp, 0x28
xor edi, edi
mov eax, esp
mov dword [ebp - 0xce8], esp
mov dword [eax + 0x24], edi
push edi
push edi
push 0x5485ec
mov byte [ebp - 4], 0xa
call fcn.004171b0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00411f00
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x58cfe8]
test al, 1
jne 0x423071
or eax, 1
mov dword [0x58cfe4], edi
mov dword [0x58cfe8], eax
mov byte [ebp - 0xce1], 0
lea eax, [ebp - 0xcec]
mov byte [ebp - 4], 0xb
push eax
call fcn.00478ed3
lea eax, [ebp - 0xcec]
mov dword [ebp - 0xcfc], eax
lea eax, [ebp - 0xce1]
mov dword [ebp - 0xcf8], eax
lea eax, [ebp - 0xcfc]
push eax
push 0x41eb20
push 0x58cfe4
call fcn.004798cc
add esp, 0x10
test eax, eax
je 0x423755
lea eax, [ebp - 0xcec]
mov byte [ebp - 4], 0xd
push eax
call fcn.00478f0d
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 4
mov byte [ebp - 4], 6
push 0x58cfec
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42310c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.config.set
lea eax, [ebp - 0x218]
push eax
call esi
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x400
lea eax, [ebp - 0xa18]
push eax
push 0x547d64
push str.token
push str.login
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423161
sub ecx, edx
sar ecx, 1
jne 0x4236f1
push 0x548640
push dword [ebp - 0xcf0]
call fcn.0040e7f0
mov esi, eax
add esp, 8
test esi, esi
je 0x4236f1
mov dword [ebp - 0xa34], 0xf
mov dword [ebp - 0xa38], 0
mov byte [ebp - 0xa48], 0
push 0x20
lea ecx, [ebp - 0xa30]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
call fcn.00427e20
movups xmm0, xmmword [str.openid_encrypt_self]
mov dword [ebp - 0xa20], 0x13
mov dword [ebp - 0xa1c], 0x1f
movups xmmword [eax], xmm0
mov cx, word [0x548658]
mov word [eax + 0x10], cx
mov cl, byte [0x54865a]
mov byte [eax + 0x12], cl
mov byte [eax + 0x13], 0
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0xa48]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xad8]
push esi
push eax
call fcn.0044e240
add esp, 0x10
mov edx, dword [ebp - 0xa1c]
mov byte [ebp - 4], 0x13
cmp edx, 0x10
jb 0x423276
mov ecx, dword [ebp - 0xa30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42326c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423775
push edx
push ecx
call fcn.004b81da
add esp, 8
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
mov edx, dword [ebp - 0xa34]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x4232cf
mov ecx, dword [ebp - 0xa48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4232c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42377a
push edx
push ecx
call fcn.004b81da
add esp, 8
mov dword [ebp - 0xa34], 0xf
mov dword [ebp - 0xa38], 0
mov byte [ebp - 0xa48], 0
push 7
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa1c], 0xf
push str.openkey
push eax
mov byte [ebp - 0xa30], 0
mov dword [ebp - 0xa20], 7
call fcn.004d84d0
mov byte [ebp - 0xa29], 0
lea eax, [ebp - 0xa48]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa78]
push esi
push eax
call fcn.0044e240
add esp, 0x1c
mov edx, dword [ebp - 0xa1c]
mov byte [ebp - 4], 0x18
cmp edx, 0x10
jb 0x42337f
mov ecx, dword [ebp - 0xa30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x423375
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42377f
push edx
push ecx
call fcn.004b81da
add esp, 8
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
mov edx, dword [ebp - 0xa34]
mov byte [ebp - 4], 0x19
cmp edx, 0x10
jb 0x4233d8
mov ecx, dword [ebp - 0xa48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4233ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423784
push edx
push ecx
call fcn.004b81da
add esp, 8
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0xf
mov byte [ebp - 0xa60], 0
push 0x30
lea ecx, [ebp - 0xa30]
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
call fcn.00427e20
push 0x24
mov esi, eax
mov dword [ebp - 0xa20], 0x24
push str.71E58A6A_F71A_4109_8D51_6B26C620D311
push esi
mov dword [ebp - 0xa1c], 0x2f
call fcn.004d7650
mov byte [esi + 0x24], 0
mov dword [ebp - 0xa30], esi
lea eax, [ebp - 0xa60]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xad8]
push eax
call fcn.0049a760
mov edx, dword [ebp - 0xa1c]
add esp, 0x18
test eax, eax
mov byte [ebp - 4], 0x1a
sete al
mov byte [ebp - 0xce1], al
cmp edx, 0x10
jb 0x4234bc
mov ecx, dword [ebp - 0xa30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4234ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423789
push edx
push ecx
call fcn.004b81da
mov al, byte [ebp - 0xce1]
add esp, 8
test al, al
je 0x4234cd
push str.PhoneInputWnd::ParseData_token_encrypt_fail
call fcn.0042f5f0
add esp, 4
cmp dword [ebp - 0xa4c], 0x10
lea eax, [ebp - 0xa60]
lea ecx, [ebp - 0xbd8]
cmovae eax, dword [ebp - 0xa60]
push 3
mov dword [ebp - 0xbdc], ecx
lea ecx, [ebp - 0xbdc]
push eax
call fcn.004217a0
mov esi, dword [ebp - 0xbdc]
mov byte [ebp - 4], 0x1c
call fcn.004214f0
mov ecx, eax
test ecx, ecx
je 0x42378e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xcf8], eax
mov byte [ebp - 4], 0x1d
test esi, esi
je 0x423561
test esi, 0xffff0000
jne 0x423545
movzx eax, si
lea ecx, [ebp - 0xcf8]
push eax
call fcn.00418330
jmp 0x423570
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423550
sub ecx, edx
sar ecx, 1
jmp 0x423563
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xcf8]
call fcn.00412460
mov eax, dword [ebp - 0xbdc]
lea ecx, [ebp - 0xbd8]
mov byte [ebp - 4], 0x1f
cmp eax, ecx
je 0x42358d
push eax
call fcn.005029f8
add esp, 4
cmp dword [ebp - 0xa64], 0x10
lea eax, [ebp - 0xa78]
lea ecx, [ebp - 0xcdc]
cmovae eax, dword [ebp - 0xa78]
push 3
mov dword [ebp - 0xce0], ecx
lea ecx, [ebp - 0xce0]
push eax
call fcn.004217a0
mov esi, dword [ebp - 0xce0]
mov byte [ebp - 4], 0x20
call fcn.004214f0
mov ecx, eax
test ecx, ecx
je 0x423798
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xce8], eax
mov byte [ebp - 4], 0x21
test esi, esi
je 0x423621
test esi, 0xffff0000
jne 0x423605
movzx eax, si
lea ecx, [ebp - 0xce8]
push eax
call fcn.00418330
jmp 0x423630
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423610
sub ecx, edx
sar ecx, 1
jmp 0x423623
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xce8]
call fcn.00412460
mov eax, dword [ebp - 0xce0]
lea ecx, [ebp - 0xcdc]
mov byte [ebp - 4], 0x1f
cmp eax, ecx
je 0x42364d
push eax
call fcn.005029f8
add esp, 4
mov edi, dword [ebp - 0xcf8]
lea eax, [ebp - 0x218]
push eax
push edi
push str.token
push str.login
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, dword [ebp - 0xce8]
lea eax, [ebp - 0x218]
push eax
push esi
push str.token_key
push str.login
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [esi - 0x10]
mov dword [ebp - 0xce8], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4236ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1a
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4236c6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xa60]
call fcn.00427a00
lea ecx, [ebp - 0xa78]
call fcn.00427a00
lea ecx, [ebp - 0xad8]
mov byte [ebp - 4], 6
call fcn.00427a00
mov edi, dword [ebp - 0xce8]
push ecx
mov ecx, esp
push 0x547d64
call fcn.004108d0
mov esi, dword [ebp - 0xcf4]
mov ecx, esi
push 0
call fcn.00423c90
push 0
push edi
push dword [esi + 0x12c]
push dword [esi + 0x128]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0xa90]
call fcn.00412ea0
lea ecx, [ebp - 0xcf0]
call fcn.0044dbe0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b85ea
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xcec]
mov byte [ebp - 4], 0xe
push eax
call fcn.00478f4f
add esp, 4
mov byte [ebp - 4], 0xc
test al, al
jne 0x4237a2
call fcn.0047999d
call fcn.004e3298
call fcn.004e3298
call fcn.004e3298
call fcn.004e3298
call fcn.004e3298
push 0x80004005
call fcn.00408f30
push 0x80004005
call fcn.00408f30
sub esp, 8
lea eax, [ebp - 0xcec]
mov ecx, esp
push eax
call fcn.0040aa30
call fcn.0040b760
int3