Function at 0x416970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4727ef
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4934a4]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x4934a4]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x34], edi
jmp 0x4169c8
call fcn.0041e575
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4169e4
push 0x80004005
call fcn.00409620
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2a8], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2a8], 3
mov esi, dword [ebp + 0xc]
push esi
lea ecx, [esp + 0x2c]
call fcn.004097a0
mov byte [esp + 0x2a8], 4
push 0x10
push str.qw_xwdQ5fhAF5172
push esi
call fcn.0043cadc
add esp, 0xc
test eax, eax
je 0x416a92
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416a41
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401780
add esp, 8
mov byte [esp + 0x2a8], 5
push eax
lea ecx, [esp + 0x2c]
call fcn.0040a040
mov byte [esp + 0x2a8], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4ae1f4]
push ecx
push str._client_id
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x4803c4
push str._client_type
lea ecx, [esp + 0x20]
call fcn.0040db50
push str.4.5.3
push str._client_version
lea ecx, [esp + 0x20]
call fcn.0040db50
mov edx, dword [0x4ae1f8]
push edx
push str._phone_imei
lea ecx, [esp + 0x20]
call fcn.0040db50
mov eax, dword [0x4ae200]
push eax
push str.channel_id
lea ecx, [esp + 0x20]
call fcn.0040db50
mov ecx, dword [0x4ae1fc]
push ecx
push str.cuid
lea ecx, [esp + 0x20]
call fcn.0040db50
push str.baidu_appstore
push str.from
lea ecx, [esp + 0x20]
call fcn.0040db50
mov edx, dword [edi + 0x208]
push ebx
push ebx
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x18]
test eax, eax
je 0x416b41
push 0x480450
jmp 0x416b46
push 0x480440
push str.isphone
call fcn.0040db50
push str.GT_I9100
push str.model
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x480430
push str.net_type
lea ecx, [esp + 0x20]
call fcn.0040db50
mov eax, dword [esp + 0x28]
push eax
push str.passwd
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x480440
push str.stErrorNums
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x480450
push str.stMethod
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x480450
push str.stMode
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x480468
push str.stSize
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x480474
push str.stTime
lea ecx, [esp + 0x20]
call fcn.0040db50
push 0x480440
push str.stTimesNum
lea ecx, [esp + 0x20]
call fcn.0040db50
lea esi, [esp + 0x10]
call fcn.00416050
mov byte [esp + 0x2a8], 7
mov eax, dword [eax]
push eax
push str.timestamp
lea ecx, [esp + 0x20]
call fcn.0040db50
mov byte [esp + 0x2a8], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00401150
add esp, 8
mov byte [esp + 0x2a8], 9
mov eax, dword [eax]
push eax
push 0x480ecc
lea ecx, [esp + 0x20]
call fcn.0040db50
mov byte [esp + 0x2a8], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x416cc2
push eax
push str.vcode
lea ecx, [esp + 0x20]
call fcn.0040db50
mov ecx, dword [0x4ae21c]
push ecx
push str.vcode_md5
lea ecx, [esp + 0x20]
call fcn.0040db50
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040d780
mov byte [esp + 0x2a8], 0xb
push eax
lea ecx, [esp + 0x18]
call fcn.0040a040
mov byte [esp + 0x2a8], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x416d25
push edi
lea ecx, [esp + 0x18]
call fcn.004094d0
mov eax, dword [esp + 0x14]
push 0x1e
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push str.http:__c.tieba.baidu.com_c_s_login
mov edx, str.POST
mov ecx, str.http:__c.tieba.baidu.com_c_s_login
call fcn.004019b0
add esp, 0x18
test eax, eax
je 0x417485
lea edx, [esp + 0x214]
push edx
call fcn.00418c20
mov byte [esp + 0x2a8], 0xd
push ebx
lea edi, [esp + 0x50]
call fcn.0041c040
mov byte [esp + 0x2a8], 0xe
mov edi, dword [esp + 0x10]
mov esi, 0xf
mov eax, edi
mov dword [esp + 0x208], esi
mov dword [esp + 0x204], ebx
mov byte [esp + 0x1f4], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416da0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x1fc]
call fcn.00408130
mov byte [esp + 0x2a8], 0xf
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1fc]
push eax
lea ecx, [esp + 0x250]
call fcn.00408040
cmp dword [esp + 0x258], 0x10
mov edx, dword [esp + 0x244]
jae 0x416dee
lea edx, [esp + 0x244]
mov ecx, dword [esp + 0x254]
lea eax, [esp + 0x4c]
add ecx, edx
push eax
lea edi, [esp + 0x218]
call fcn.00418d30
mov bl, al
mov byte [esp + 0x2a8], 0xe
cmp dword [esp + 0x208], 0x10
jb 0x416e2c
mov ecx, dword [esp + 0x1f4]
push ecx
call fcn.0041dcac
add esp, 4
mov dword [esp + 0x208], esi
mov dword [esp + 0x204], 0
mov byte [esp + 0x1f4], 0
test bl, bl
je 0x41745b
push str.error_code
lea edx, [esp + 0x50]
push edx
call fcn.0041c890
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
call fcn.004097a0
mov byte [esp + 0x2a8], 0x10
mov eax, dword [esp + 0x2c]
push 0x480440
push eax
call fcn.0043c642
add esp, 8
test eax, eax
jne 0x4171f6
push str.anti
lea ecx, [esp + 0x50]
push ecx
call fcn.0041c890
push eax
lea ecx, [esp + 0x1f8]
call fcn.0041c1e0
mov byte [esp + 0x2a8], 0x11
cmp byte [esp + 0x1fc], 0
je 0x416ed8
push 0x48056c
lea edx, [esp + 0x1f8]
push edx
call fcn.0041c890
mov eax, dword [eax]
push eax
mov ecx, 0x4ae204
call fcn.00409760
push str.user
lea eax, [esp + 0x50]
push eax
call fcn.0041c890
push eax
lea ecx, [esp + 0x40]
call fcn.0041c1e0
mov bl, 0x12
mov byte [esp + 0x2a8], bl
cmp byte [esp + 0x44], 0
je 0x417038
sub esp, 0x10
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.0041c1e0
mov byte [esp + 0x2b8], 0x13
push str.name
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x2c0], bl
call fcn.00416120
mov byte [esp + 0x2a8], 0x14
push eax
mov ecx, 0x4ae20c
call fcn.0040a040
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x38]
call fcn.00409190
push 0x480f10
lea ecx, [esp + 0x40]
push ecx
call fcn.0041c890
mov eax, dword [eax]
push eax
mov ecx, 0x4ae208
call fcn.00409760
push 0x4803b0
lea edx, [esp + 0x40]
push edx
call fcn.0041c890
mov eax, dword [eax]
push eax
mov ecx, 0x4ae210
call fcn.00409760
push str.passwd
lea eax, [esp + 0x40]
push eax
call fcn.0041c890
mov eax, dword [eax]
push eax
mov ecx, 0x4ae214
call fcn.00409760
mov eax, dword [0x4ae210]
cmp dword [eax - 0xc], 0
jl 0x417038
push 0x480f14
push eax
call fcn.0043c2f2
add esp, 8
test eax, eax
je 0x417038
sub eax, dword [0x4ae210]
cmp eax, 0xffffffff
je 0x417038
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x4ae210
call fcn.0040ca20
mov byte [esp + 0x2a8], 0x15
push eax
lea edx, [esp + 0x3c]
push str.BDUSS
push edx
call fcn.00413640
add esp, 0xc
mov byte [esp + 0x2a8], 0x16
push eax
mov ecx, 0x4ae218
call fcn.0040a040
mov byte [esp + 0x2a8], 0x15
lea ecx, [esp + 0x38]
call fcn.00409190
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x30]
call fcn.00409190
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x25c]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str..Config.dat
test eax, eax
je 0x4170ca
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push str.UserName
push eax
call esi
mov ecx, dword [0x4ae214]
mov edi, dword [ebp + 8]
push str..Config.dat
push ecx
push str.PassWord
push edi
call esi
mov edx, dword [ebx + 0x208]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov eax, 0x480450
jne 0x4170a8
mov eax, 0x480440
push str..Config.dat
push eax
push str.IsPhone
push edi
call esi
push str..Config.dat
push edi
push str.UserName
push str.LAST_USER
call esi
jmp 0x4170fb
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4170fb
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..Config.dat
push 0
push str.UserName
push esi
call edi
push str..Config.dat
push 0
push str.PassWord
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.0041dcac
mov edx, dword [ebx]
mov eax, dword [edx + 0x158]
add esp, 4
mov ecx, ebx
call eax
mov byte [esp + 0x2a8], 0x11
lea ecx, [esp + 0x3c]
call fcn.0041c340
mov byte [esp + 0x2a8], 0x10
lea ecx, [esp + 0x1f4]
call fcn.0041c340
mov byte [esp + 0x2a8], 0xe
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a8], 0xd
lea ecx, [esp + 0x4c]
call fcn.0041c340
mov byte [esp + 0x2a8], 4
lea ecx, [esp + 0x214]
push ecx
call fcn.004107d0
mov byte [esp + 0x2a8], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4171af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a8], 1
lea ecx, [esp + 0x18]
push ecx
call fcn.00410750
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4171ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x417522
mov ecx, dword [esp + 0x2c]
push 0x480f5c
push ecx
call fcn.0043c642
add esp, 8
lea edx, [esp + 0x4c]
test eax, eax
jne 0x4173e8
push str.anti
push edx
call fcn.0041c890
push eax
lea ecx, [esp + 0x40]
call fcn.0041c1e0
mov bl, 0x1a
mov byte [esp + 0x2a8], bl
cmp byte [esp + 0x44], 0
je 0x417271
push str.vcode_md5
lea eax, [esp + 0x40]
push eax
call fcn.0041c890
mov eax, dword [eax]
push eax
mov ecx, 0x4ae21c
call fcn.00409760
push str.vcode_pic_url
lea ecx, [esp + 0x40]
push ecx
call fcn.0041c890
mov eax, dword [eax]
push eax
mov ecx, 0x4ae220
call fcn.00409760
lea edx, [esp + 0x5c]
push edx
call fcn.0040ccf0
mov byte [esp + 0x2a8], 0x1b
lea ecx, [esp + 0x5c]
call fcn.00426afd
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0041dcac
add esp, 4
cmp edi, 1
jne 0x417354
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0xe8]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00416970
mov esi, eax
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x5c]
call fcn.0040ce60
mov byte [esp + 0x2a8], 0x10
lea ecx, [esp + 0x3c]
call fcn.0041c340
mov byte [esp + 0x2a8], 0xe
lea ecx, [esp + 0x2c]
call fcn.00409190
mov byte [esp + 0x2a8], 0xd
lea ecx, [esp + 0x4c]
call fcn.0041c340
mov byte [esp + 0x2a8], 4
lea ecx, [esp + 0x214]
push ecx
call fcn.004107d0
mov byte [esp + 0x2a8], 3
lea ecx, [esp + 0x28]
call fcn.00409190
mov byte [esp + 0x2a8], 1
lea edx, [esp + 0x18]
push edx
call fcn.00410750
mov dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00409190
mov eax, esi
jmp 0x417522
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x5c]
call fcn.0040ce60
mov byte [esp + 0x2a8], 0x10
lea ecx, [esp + 0x3c]
call fcn.0041c340
mov byte [esp + 0x2a8], 0xe
lea ecx, [esp + 0x2c]
call fcn.00409190
mov byte [esp + 0x2a8], 0xd
lea ecx, [esp + 0x4c]
call fcn.0041c340
mov byte [esp + 0x2a8], 4
lea eax, [esp + 0x214]
push eax
call fcn.004107d0
mov byte [esp + 0x2a8], 3
lea ecx, [esp + 0x28]
call fcn.00409190
mov byte [esp + 0x2a8], 1
lea ecx, [esp + 0x18]
push ecx
call fcn.00410750
mov dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00409190
jmp 0x417520
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.0041c1e0
mov byte [esp + 0x2b8], 0x1c
push str.error_msg
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x2c0], 0x10
call fcn.00416120
mov byte [esp + 0x2a8], 0x1d
mov ecx, dword [esp + 0x34]
push 0
push 0
push ecx
call fcn.00425f49
mov edx, dword [esp + 0x10]
push edx
call fcn.0041dcac
add esp, 4
mov byte [esp + 0x2a8], 0x10
lea ecx, [esp + 0x34]
call fcn.00409190
mov byte [esp + 0x2a8], 0xe
lea ecx, [esp + 0x2c]
call fcn.00409190
mov byte [esp + 0x2a8], 0xd
lea ecx, [esp + 0x4c]
call fcn.0041c340
mov byte [esp + 0x2a8], 4
lea eax, [esp + 0x214]
push eax
call fcn.004107d0
xor ebx, ebx
jmp 0x417491
push ebx
push ebx
push 0x480f70
call fcn.00425f49
mov byte [esp + 0x2a8], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a8], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4174e9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0040e310
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.0041dcac
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0043ae62
mov esp, ebp
pop ebp
ret 0xc