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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523b8d
mov eax, dword fs:[0]
push eax
sub esp, 0xd14
mov eax, dword [0x576644]
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 ebx, ecx
mov dword [ebp - 0xd1c], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4252b6
push eax
call fcn.0040f290
mov esi, eax
add esp, 4
mov dword [ebp - 0xd20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4252b6
push 5
push str.errno
lea ecx, [ebp - 0xa30]
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
call fcn.00429bd0
push 1
lea eax, [ebp - 0xa30]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.004b14f0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa30]
mov edi, eax
call fcn.00412ee0
push 0
push 0x5379e0
lea ecx, [ebp - 0xad8]
mov dword [ebp - 0xac8], 0
mov dword [ebp - 0xac4], 0xf
mov byte [ebp - 0xad8], 0
call fcn.00429bd0
push 3
push 0x5389dc
lea ecx, [ebp - 0xac0]
mov byte [ebp - 4], 2
mov dword [ebp - 0xab0], 0
mov dword [ebp - 0xaac], 0xf
mov byte [ebp - 0xac0], 0
call fcn.00429bd0
lea eax, [ebp - 0xad8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xac0]
push eax
lea eax, [ebp - 0xaf0]
push esi
push eax
call fcn.004b1560
add esp, 0x10
lea ecx, [ebp - 0xac0]
call fcn.00412ee0
lea ecx, [ebp - 0xad8]
mov byte [ebp - 4], 6
call fcn.00412ee0
test edi, edi
je 0x424aee
cmp dword [ebp - 0xadc], 0x10
lea eax, [ebp - 0xaf0]
lea ecx, [ebp - 0xc08]
cmovae eax, dword [ebp - 0xaf0]
push 0xfde9
mov dword [ebp - 0xc0c], ecx
lea ecx, [ebp - 0xc0c]
push eax
call fcn.00423090
push dword [ebp - 0xc0c]
lea ecx, [ebp - 0xd14]
mov byte [ebp - 4], 7
call fcn.00411080
mov eax, dword [ebp - 0xc0c]
lea ecx, [ebp - 0xc08]
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x424a9a
push eax
call fcn.004f54a8
add esp, 4
mov eax, dword [ebp - 0xd14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0xd1c], edi
call fcn.0040d1f0
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
push 1
call fcn.00425860
mov edx, dword [ebp - 0xd14]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4252a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4252a2
sub esp, 0x28
xor ebx, ebx
mov eax, esp
mov dword [ebp - 0xd14], esp
mov dword [eax + 0x24], ebx
push ebx
push ebx
push 0x5389e0
mov byte [ebp - 4], 0xa
call fcn.00416d40
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00412080
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004ca680
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x538a04
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424b72
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.config.set
lea eax, [ebp - 0x218]
push eax
call edi
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.004ca680
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x400
lea eax, [ebp - 0xa18]
push eax
push 0x537e58
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 0x424bc7
sub ecx, edx
mov edi, 0xffffffff
sar ecx, 1
jne 0x4251e9
push 0x538a44
push esi
call fcn.0040f180
mov edi, eax
add esp, 8
test edi, edi
je 0x4251e6
push 0
push 0x5379e0
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa68], 0
mov dword [ebp - 0xa64], 0xf
mov byte [ebp - 0xa78], 0
call fcn.00429bd0
push 0x13
push str.openid_encrypt_self
lea ecx, [ebp - 0xa60]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0xf
mov byte [ebp - 0xa60], 0
call fcn.00429bd0
lea eax, [ebp - 0xa78]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xa60]
push eax
lea eax, [ebp - 0xb08]
push edi
push eax
call fcn.004b1560
add esp, 0x10
mov edx, dword [ebp - 0xa4c]
mov byte [ebp - 4], 0xe
cmp edx, 0x10
jb 0x424cb7
mov ecx, dword [ebp - 0xa60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424cad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4252d4
push edx
push ecx
call fcn.004a7285
add esp, 8
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0xf
mov byte [ebp - 0xa60], 0
mov edx, dword [ebp - 0xa64]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x424d10
mov ecx, dword [ebp - 0xa78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424d06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4252d9
push edx
push ecx
call fcn.004a7285
add esp, 8
push 0
push 0x5379e0
lea ecx, [ebp - 0xa30]
mov dword [ebp - 0xa68], 0
mov dword [ebp - 0xa64], 0xf
mov byte [ebp - 0xa78], 0
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
call fcn.00429bd0
push 7
push str.openkey
lea ecx, [ebp - 0xa90]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xa80], 0
mov dword [ebp - 0xa7c], 0xf
mov byte [ebp - 0xa90], 0
call fcn.00429bd0
lea eax, [ebp - 0xa30]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xa90]
push eax
lea eax, [ebp - 0xaa8]
push edi
push eax
call fcn.004b1560
add esp, 0x10
mov edx, dword [ebp - 0xa7c]
mov byte [ebp - 4], 0x13
cmp edx, 0x10
jb 0x424de9
mov ecx, dword [ebp - 0xa90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424ddf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4252de
push edx
push ecx
call fcn.004a7285
add esp, 8
mov dword [ebp - 0xa80], 0
mov dword [ebp - 0xa7c], 0xf
mov byte [ebp - 0xa90], 0
mov edx, dword [ebp - 0xa1c]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x424e42
mov ecx, dword [ebp - 0xa30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424e38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4252e3
push edx
push ecx
call fcn.004a7285
add esp, 8
mov dword [ebp - 0xa38], 0
mov dword [ebp - 0xa34], 0xf
mov byte [ebp - 0xa48], 0
push 0x24
push str.71E58A6A_F71A_4109_8D51_6B26C620D311
lea ecx, [ebp - 0xa30]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
call fcn.00429bd0
lea eax, [ebp - 0xa48]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xb08]
push eax
call fcn.00489940
mov edx, dword [ebp - 0xa1c]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 0x15
sete bl
cmp edx, 0x10
jb 0x424ef2
mov ecx, dword [ebp - 0xa30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424ee8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4252e8
push edx
push ecx
call fcn.004a7285
add esp, 8
test bl, bl
je 0x424f03
push str.PhoneInputWnd::ParseData_token_encrypt_fail
call fcn.00430f10
add esp, 4
cmp dword [ebp - 0xa34], 0x10
lea eax, [ebp - 0xa48]
lea ecx, [ebp - 0xc08]
cmovae eax, dword [ebp - 0xa48]
push 3
mov dword [ebp - 0xc0c], ecx
lea ecx, [ebp - 0xc0c]
push eax
call fcn.00423090
mov esi, dword [ebp - 0xc0c]
mov byte [ebp - 4], 0x17
call fcn.00422de0
mov ecx, eax
test ecx, ecx
je 0x4252ed
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd18], eax
mov byte [ebp - 4], 0x18
test esi, esi
je 0x424f91
test esi, 0xffff0000
jne 0x424f79
movzx eax, si
lea ecx, [ebp - 0xd18]
push eax
call fcn.00417e40
jmp 0x424fa0
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424f80
sub ecx, edx
sar ecx, 1
jmp 0x424f93
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xd18]
call fcn.00412590
mov eax, dword [ebp - 0xc0c]
lea ecx, [ebp - 0xc08]
mov byte [ebp - 4], 0x1a
cmp eax, ecx
je 0x424fbd
push eax
call fcn.004f54a8
add esp, 4
cmp dword [ebp - 0xa94], 0x10
lea eax, [ebp - 0xaa8]
lea ecx, [ebp - 0xd0c]
cmovae eax, dword [ebp - 0xaa8]
push 3
mov dword [ebp - 0xd10], ecx
lea ecx, [ebp - 0xd10]
push eax
call fcn.00423090
mov esi, dword [ebp - 0xd10]
mov byte [ebp - 4], 0x1b
call fcn.00422de0
mov ecx, eax
test ecx, ecx
je 0x4252f7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd14], eax
mov byte [ebp - 4], 0x1c
test esi, esi
je 0x425051
test esi, 0xffff0000
jne 0x425033
movzx eax, si
lea ecx, [ebp - 0xd14]
push eax
call fcn.00417e40
jmp 0x425060
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425040
sub ecx, edx
sar ecx, 1
jmp 0x425053
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xd14]
call fcn.00412590
mov eax, dword [ebp - 0xd10]
lea ecx, [ebp - 0xd0c]
mov byte [ebp - 4], 0x1a
cmp eax, ecx
je 0x42507d
push eax
call fcn.004f54a8
add esp, 4
mov edi, dword [ebp - 0xd18]
lea eax, [ebp - 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push edi
push str.token
push str.login
call ebx
mov esi, dword [ebp - 0xd14]
lea eax, [ebp - 0x218]
push eax
push esi
push str.token_key
push str.login
call ebx
mov ebx, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4250d4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4250f0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa34]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x42512e
mov ecx, dword [ebp - 0xa48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425124
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425301
push edx
push ecx
call fcn.004a7285
add esp, 8
mov edx, dword [ebp - 0xa94]
mov dword [ebp - 0xa38], 0
mov dword [ebp - 0xa34], 0xf
mov byte [ebp - 0xa48], 0
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x425187
mov ecx, dword [ebp - 0xaa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42517d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425306
push edx
push ecx
call fcn.004a7285
add esp, 8
mov edx, dword [ebp - 0xaf4]
mov dword [ebp - 0xa98], 0
mov dword [ebp - 0xa94], 0xf
mov byte [ebp - 0xaa8], 0
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x4251e0
mov ecx, dword [ebp - 0xb08]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4251d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42530b
push edx
push ecx
call fcn.004a7285
add esp, 8
mov esi, dword [ebp - 0xd20]
or edi, 0xffffffff
lea eax, [ebp - 0xd18]
mov dword [ebp - 0xd14], eax
call fcn.00422de0
mov ecx, eax
test ecx, ecx
je 0x425310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd18], eax
mov eax, 0x537e58
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xd18]
test eax, 0xffff0000
jne 0x425233
movzx eax, ax
push eax
call fcn.00417e40
jmp 0x42523f
push 0
push 0x537e58
call fcn.00412590
mov eax, dword [ebp - 0xd1c]
push 0xce
mov byte [ebp - 4], 0x1e
mov eax, dword [eax + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf0]
test eax, eax
je 0x425268
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x20]
mov edx, dword [ebp - 0xd18]
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x425287
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xd1c]
push 0
push ebx
push dword [eax + 0x12c]
push dword [eax + 0x128]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0xaf0]
call fcn.00412ee0
push esi
call fcn.0040efa0
add esp, 4
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.004a7695
mov esp, ebp
pop ebp
ret 4
call fcn.004d5d48
call fcn.004d5d48
call fcn.004d5d48
call fcn.004d5d48
call fcn.004d5d48
push 0x80004005
call fcn.00409d40
push 0x80004005
call fcn.00409d40
call fcn.004d5d48
call fcn.004d5d48
call fcn.004d5d48
push 0x80004005
call fcn.00409d40
int3