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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0xc
call fcn.00414309
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x539bd5
push ebx
add ebx, 8
push ebx
push 8
call fcn.00414309
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.00409e60
pop ebx
mov eax, str.http:__tianti.xinghuohui.cn_tianti_index.php
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4020e9
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov eax, str.typeupdatauserweian001
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40210a
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_63.0.3239.132_Safari_537.36
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402124
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp - 0x10]
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
push 1
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.004028f2
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4021d2
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4021e2
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4021f2
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402202
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402212
push ebx
call fcn.004142fd
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402226
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [ebp - 0x14], 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
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00407201
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40226c
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40227c
push ebx
call fcn.004142fd
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40228f
mov eax, 0x539af1
push eax
push 1
mov ebx, 0x415b50
call fcn.0041430f
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4022b5
push ebx
call fcn.004142fd
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4022c9
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x20
call fcn.00414309
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x20]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x402325
push ebx
call fcn.004142fd
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x402339
push ebx
call fcn.004142fd
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40234d
push ebx
call fcn.004142fd
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x402361
push ebx
call fcn.004142fd
add esp, 4
pop ebx
call fcn.004142fd
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, str.updataurl
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4023a5
push ebx
call fcn.004142fd
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [0x57dd0c]
test ebx, ebx
je 0x4023bc
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [0x57dd0c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x57dd0c]
test eax, eax
jne 0x4023d7
mov eax, 0x4cd9f4
push eax
push 1
mov ebx, 0x414890
call fcn.0041430f
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x539bc5
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x57dd0c]
test eax, eax
jne 0x402420
mov eax, 0x4cd9f4
push eax
push 4
mov ebx, 0x414d80
call fcn.0041430f
add esp, 0x34
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x34]
fsub qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.0040160b
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x57dd0c]
test eax, eax
jne 0x402470
mov eax, 0x4cd9f4
push eax
push 2
mov ebx, 0x414ab0
call fcn.0041430f
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [0x57dd10]
test ebx, ebx
je 0x40249d
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [0x57dd10], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, str.softname
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4024de
push ebx
call fcn.004142fd
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [0x57dd14]
test ebx, ebx
je 0x4024f5
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [0x57dd14], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, str.logo
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402536
push ebx
call fcn.004142fd
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x402549
mov eax, 0x4cd9f4
push eax
push 1
mov eax, 4
mov ebx, 0x47cc20
call fcn.00414303
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x402574
push ebx
call fcn.004142fd
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [0x57dd18]
test ebx, ebx
je 0x40258b
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [0x57dd18], eax
mov eax, 0x539af1
xor ecx, ecx
test eax, eax
je 0x40259f
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [0x57dd18]
xor ebx, ebx
test eax, eax
je 0x4025b2
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4025c9
dec eax
test ecx, ecx
je 0x4025c9
call fcn.00401f97
add esp, 0xc
test eax, eax
jne 0x4027f6
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, str.logo
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40260f
push ebx
call fcn.004142fd
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push 8
call fcn.00414309
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
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
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x60], 0
push 0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x64], 0
push 0
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x68], 0
push 0
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x6c], 0
push 0
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], 0
push 0
push dword [ebp - 0x70]
lea eax, [ebp - 0x28]
push eax
call fcn.0040791e
mov dword [ebp - 0x74], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x402726
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x402736
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x402746
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x402756
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x402766
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x402776
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x402786
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x402796
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4027a6
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4027b6
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x38]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x417710
call fcn.0041430f
add esp, 0x10
call fcn.004142fd
add esp, 4
mov eax, dword [ebp - 0x74]
push eax
mov ebx, dword [0x57dd18]
test ebx, ebx
je 0x4027f0
push ebx
call fcn.004142fd
add esp, 4
pop eax
mov dword [0x57dd18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402806
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402816
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402826
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402836
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402846
push ebx
call fcn.004142fd
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004142fd
add esp, 4
mov esp, ebp
pop ebp
ret