Function at 0x40c6ec
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
push 8
call fcn.00412c5a
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x30001
push 0
push ebx
push 1
mov eax, 2
mov ebx, 0x464160
call fcn.00412c48
add esp, 0x10
push 8
call fcn.00412c5a
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x4cc248
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push dword [0x5cd76c]
push str.pwd
push dword [0x5cd768]
push str.http:__sms.xudan123.com_do.aspx_actionloginInuid
mov ecx, 4
call fcn.0040107e
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_5_0_1_like_Mac_OS_X__AppleWebKit_534.46__KHTML__like_Gecko__Mobile_9A405
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 1
mov eax, 0x4cbb7a
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040562c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c831
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40c841
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40c851
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40c861
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40c871
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40c881
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40c891
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40c8a1
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40c8b1
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c8c1
push ebx
call fcn.00412c3c
add esp, 4
lea eax, [ebp - 0x48]
push eax
call fcn.004079e6
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40c8dd
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x40c8f0
mov eax, 0x4cbb50
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40c916
push ebx
call fcn.00412c3c
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c92a
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [ebp - 4], eax
push str._.___
push dword [0x5cd768]
mov ecx, 2
call fcn.0040107e
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40c962
mov eax, 0x4cbb50
push eax
push 0x30001
push 0
push dword [ebp - 8]
push 3
mov eax, 2
mov ebx, 0x4641c0
call fcn.00412c48
add esp, 0x28
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c994
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40c9a7
mov eax, 0x4cbb50
push eax
push 0x30001
push 0
push dword [ebp - 8]
push 2
mov eax, 2
mov ebx, 0x4645d0
call fcn.00412c48
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c9ee
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c9ea
imul eax, dword [ebx]
jmp 0x40c9df
mov ecx, eax
test ecx, ecx
je 0x40ca25
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push 0x30002
push 0
push ebx
push 1
mov eax, 2
mov ebx, 0x4644e0
call fcn.00412c48
add esp, 0x10
call fcn.00412c3c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c9f4
call fcn.00412c3c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
call fcn.004010f3
mov eax, 0
cmp eax, ecx
jl 0x40ca52
push 1
call fcn.00412c60
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0
push 0
push 0
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40ca7f
mov eax, 0x4cbb50
push eax
push 0x30002
push 0
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push 4
mov eax, 2
mov ebx, 0x464520
call fcn.00412c48
add esp, 0x34
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push str.token
push dword [0x5cd768]
push str.uid
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.http:__sms.xudan123.com_do.aspx_actiongetVcodeAndReleaseMobilemobile
mov ecx, 6
call fcn.0040107e
add esp, 0x18
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40cae3
push ebx
call fcn.00412c3c
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_5_0_1_like_Mac_OS_X__AppleWebKit_534.46__KHTML__like_Gecko__Mobile_9A405
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, 0x4cbb7a
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040562c
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40cb8e
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40cb9e
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40cbae
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40cbbe
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40cbce
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40cbde
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40cbee
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40cbfe
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40cc0e
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40cc1e
push ebx
call fcn.00412c3c
add esp, 4
lea eax, [ebp - 0x50]
push eax
call fcn.004079e6
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40cc3a
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x40cc4d
mov eax, 0x4cbb50
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40cc73
push ebx
call fcn.00412c3c
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40cc87
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.not_receive
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40ccbc
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413530
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40cceb
push 0x3e8
call fcn.004081de
jmp 0x40ccf0
jmp 0x40ccfa
cmp dword [ebp - 0x10], 0x32
jl 0x40ca31
lea eax, [ebp - 0x14]
push eax
mov eax, 0x4cce07
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407f76
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40cd22
push ebx
call fcn.00412c3c
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40cd36
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x4cbbd9
push dword [ebp - 0x14]
call fcn.00401113
add esp, 8
cmp eax, 0
jne 0x40d0bd
mov ebx, dword [ebp - 0xc]
call fcn.004010f3
mov eax, 0
cmp eax, ecx
jl 0x40cd71
push 1
call fcn.00412c60
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0
push 0
push 0
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40cd9e
mov eax, 0x4cbb50
push eax
push 0x30002
push 0
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push 4
mov eax, 2
mov ebx, 0x464520
call fcn.00412c48
add esp, 0x34
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push str.token
push dword [0x5cd768]
push str.uid
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.http:__sms.xudan123.com_do.aspx_actionaddIgnoreListpid231mobile
mov ecx, 6
call fcn.0040107e
add esp, 0x18
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ce02
push ebx
call fcn.00412c3c
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_5_0_1_like_Mac_OS_X__AppleWebKit_534.46__KHTML__like_Gecko__Mobile_9A405
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, 0x4cbb7a
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040562c
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40cead
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40cebd
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40cecd
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40cedd
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ceed
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40cefd
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40cf0d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40cf1d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40cf2d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40cf3d
push ebx
call fcn.00412c3c
add esp, 4
lea eax, [ebp - 0x50]
push eax
call fcn.004079e6
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40cf59
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x40cf6c
mov eax, 0x4cbb50
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x40cf8e
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40cf9e
push ebx
call fcn.00412c3c
add esp, 4
push 0
mov ebx, 0x414e70
call fcn.00412c54
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414d90
call fcn.00412c54
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x414410
call fcn.00412c54
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xc
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40d016
mov eax, 0x4cbb50
push eax
push 4
mov ebx, 0x413a90
call fcn.00412c54
add esp, 0x34
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d03c
push ebx
call fcn.00412c3c
add esp, 4
push 0x4cce66
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x4cce7a
push dword [ebp - 0x2c]
push 0x4cc17c
mov ecx, 5
call fcn.0040107e
add esp, 0x14
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d073
push ebx
call fcn.00412c3c
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40d086
mov eax, 0x4cbb50
push eax
push 0x10005
push 0x1601053c
push 0x52010001
push 2
mov ebx, 0x415880
call fcn.00412c54
add esp, 0x1c
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d0b8
push ebx
call fcn.00412c3c
add esp, 4
jmp 0x40d0bd
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40d0d9
push eax
mov ebx, eax
call fcn.00401013
inc eax
push eax
call fcn.00412c5a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x5cd744]
test ebx, ebx
je 0x40d0ed
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [0x5cd744], eax
mov eax, dword [0x5cd744]
test eax, eax
je 0x40d111
push eax
mov ebx, eax
call fcn.00401013
inc eax
push eax
call fcn.00412c5a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x5cd740]
test ebx, ebx
je 0x40d125
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov dword [0x5cd740], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40d147
push eax
mov ebx, eax
call fcn.00401013
inc eax
push eax
call fcn.00412c5a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40d14c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d15d
push ebx
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
push 0x30001
push 0
push ebx
push 1
mov eax, 2
mov ebx, 0x4641a0
call fcn.00412c48
add esp, 0x10
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40d1a3
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40d19f
imul eax, dword [ebx]
jmp 0x40d194
mov ecx, eax
test ecx, ecx
je 0x40d1da
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push 0x30002
push 0
push ebx
push 1
mov eax, 2
mov ebx, 0x4644e0
call fcn.00412c48
add esp, 0x10
call fcn.00412c3c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40d1a9
call fcn.00412c3c
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d1f2
push ebx
call fcn.00412c3c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4