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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x4d6e40
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.username
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.mainDivIdembed_login_divincludeFcmInfofalselevel0regLevel0userNameLabeluserNameTipwelcomeTipsecpassword
push dword [0x57ed7c]
push str.loginFromuframepostLoginHandlerlayoutSelfAdaptingtrueexternalLogindisplayModelayoutverticalbizIdappIdgameIdcssredirectUrlsessionId
mov ecx, 8
call fcn.00401ba5
add esp, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 1
push 1
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.87_Safari_537.36
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
push 1
mov eax, str.http:__ptlogin.4399.com_ptlogin_login.do_v1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408469
mov ebx, eax
test ebx, ebx
je 0x4081b1
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4081c1
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4081d1
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4081e1
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4081f1
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408201
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408211
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x408221
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x408245
push eax
mov ebx, eax
call fcn.00401b3a
inc eax
push eax
call fcn.0043b09a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408258
push ebx
call fcn.0043b0a0
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x4d6732
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Puser
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00405897
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4082b5
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4082c5
push ebx
call fcn.0043b0a0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4082db
push ebx
call fcn.0043b0a0
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x4d6732
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Pnick
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00405897
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x408338
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408348
push ebx
call fcn.0043b0a0
add esp, 4
push 1
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a84d
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40836b
push ebx
call fcn.0043b0a0
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408381
push ebx
call fcn.0043b0a0
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x4d61a2
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.Pauth
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00405897
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4083de
push ebx
call fcn.0043b0a0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4083ee
push ebx
call fcn.0043b0a0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408404
push ebx
call fcn.0043b0a0
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 8], ebx
push getpeername
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40842a
mov eax, 0x4d61a4
push eax
push 1
mov ebx, 0x43b640
call fcn.0043b094
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
setg al
jmp 0x408451
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408462
push ebx
call fcn.0043b0a0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14