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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
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
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00411910
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x47886f
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0xa
push 0x16018f2a
push 0x52010b25
call fcn.004da5b6
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 1
push 1
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0043de2b
mov dword [ebp - 0x30], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4788c5
mov eax, 0x86cbc3
push eax
push 1
mov ebx, 0x4dbac0
call fcn.004da5a4
add esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4788ee
push ebx
call fcn.004da586
add esp, 4
fild qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x10c0488]
fstp qword [ebp - 0x48]
push 0x80000601
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 1
mov ebx, 0x4dcca0
call fcn.004da5a4
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x478934
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push 9
push 0x16018f25
push 0x52010b25
call fcn.004da5b6
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x10c07ad
push dword [ebp - 0x24]
call fcn.004012f3
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x47897f
push ebx
call fcn.004da586
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x4789a8
mov eax, 0x86ce53
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x47899f
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x478a13
push 0xffffffffffffffff
push 9
push 0x16018f25
push 0x52010b25
call fcn.004da5b6
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x1129d9c
push dword [ebp - 0x24]
call fcn.004012f3
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4789ef
push ebx
call fcn.004da586
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x478a13
mov eax, 0x86ce65
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x478a0f
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x50004
push 0x16018f23
push 0x52010b25
push 1
mov eax, 4
mov ebx, 0x79c0c0
call fcn.004da5aa
add esp, 0x10
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x479351
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x86cc6a]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040185e
push 0x80000301
push 0
push eax
push 0x50004
push 0x16018f23
push 0x52010b25
push 2
mov eax, 4
mov ebx, 0x79bde0
call fcn.004da5aa
add esp, 0x1c
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jne 0x479337
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x86cc6a]
fstp qword [ebp - 0x30]
push 0x80000301
push 0
push 1
fld qword [ebp - 0x30]
call fcn.0040185e
push 0x80000301
push 0
push eax
push 0x50004
push 0x16018f23
push 0x52010b25
push 3
mov eax, 4
mov ebx, 0x79bdc0
call fcn.004da5aa
add esp, 0x28
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x478b10
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x86ce65
push dword [ebp - 0xc]
call fcn.004012f3
add esp, 8
cmp eax, 0
jne 0x478f20
call fcn.0040ecb9
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x478b49
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_bind
push 0
push 1
mov ebx, 6
call fcn.0040113d
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x478b76
mov eax, 0x86cbc3
push eax
push reloc.WS2_32.dll_connect
push 0
push 0x86d4d1
push reloc.WS2_32.dll_connect
push 0
push 0x1129da5
push 6
mov ebx, 0x4dbef0
call fcn.004da5a4
add esp, 0x4c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x478bb8
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0x1129fb9
push dword [ebp - 0x14]
push 0x1129fd6
mov ecx, 3
call fcn.004010e1
add esp, 0xc
mov dword [ebp - 0x24], eax
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
push dword [ebp - 0x30]
push 8
call fcn.004da58c
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 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
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push 1
push 1
mov eax, 0x1129fe9
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
call fcn.00409d3a
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x478cde
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x478cee
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x478cfe
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x478d0e
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x478d1e
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x478d2e
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x478d3e
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x478d4e
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x34]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4e0340
call fcn.004da5a4
add esp, 0x10
call fcn.004da586
add esp, 4
lea eax, [ebp - 0x64]
push eax
call fcn.0040e705
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x478d8d
push ebx
call fcn.004da586
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x478da1
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0x20], 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 0x86d45a
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x478dd6
mov eax, 0x86cbc3
push eax
push 4
mov ebx, 0x4db300
call fcn.004da5a4
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x478e8b
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x86cc6a]
fstp qword [ebp - 0x30]
push dword [ebp - 0x20]
push 0x112a026
mov ecx, 2
call fcn.004010e1
add esp, 8
mov dword [ebp - 0x34], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x478e33
mov eax, 0x86cbc3
push eax
push 0x80000301
push 0
push 7
fld qword [ebp - 0x30]
call fcn.0040185e
push 0x80000301
push 0
push eax
push 0x50004
push 0x16018f23
push 0x52010b25
push 4
mov eax, 4
mov ebx, 0x79bfb0
call fcn.004da5aa
add esp, 0x34
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x478e86
push ebx
call fcn.004da586
add esp, 4
jmp 0x478f1b
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x86cc6a]
fstp qword [ebp - 0x30]
push dword [ebp - 0x20]
push 0x112a038
mov ecx, 2
call fcn.004010e1
add esp, 8
mov dword [ebp - 0x34], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x478ec8
mov eax, 0x86cbc3
push eax
push 0x80000301
push 0
push 7
fld qword [ebp - 0x30]
call fcn.0040185e
push 0x80000301
push 0
push eax
push 0x50004
push 0x16018f23
push 0x52010b25
push 4
mov eax, 4
mov ebx, 0x79bfb0
call fcn.004da5aa
add esp, 0x34
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x478f1b
push ebx
call fcn.004da586
add esp, 4
jmp 0x479337
push 0x86ce53
push dword [ebp - 0xc]
call fcn.004012f3
add esp, 8
cmp eax, 0
jne 0x479337
call fcn.0040ecb9
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x478f55
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_bind
push 0
push 1
mov ebx, 6
call fcn.0040113d
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x478f82
mov eax, 0x86cbc3
push eax
push reloc.WS2_32.dll_connect
push 0
push 0x86d4d1
push reloc.WS2_32.dll_connect
push 0
push 0x1129da5
push 6
mov ebx, 0x4dbef0
call fcn.004da5a4
add esp, 0x4c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x478fc4
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0xa94828
push dword [ebp - 8]
push 0x112a04a
push dword [ebp - 0xc]
push 0x112a05c
push dword [ebp - 0x14]
push 0x1129fd6
mov ecx, 7
call fcn.004010e1
add esp, 0x1c
mov dword [ebp - 0x24], eax
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
push dword [ebp - 0x30]
push 8
call fcn.004da58c
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 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
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push 1
push 1
mov eax, 0x1129fe9
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
call fcn.00409d3a
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4790fa
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x47910a
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x47911a
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x47912a
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x47913a
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x47914a
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x47915a
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x47916a
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x34]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4e0340
call fcn.004da5a4
add esp, 0x10
call fcn.004da586
add esp, 4
lea eax, [ebp - 0x64]
push eax
call fcn.0040e705
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x4791a9
push ebx
call fcn.004da586
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4791bd
push ebx
call fcn.004da586
add esp, 4
pop eax
mov dword [ebp - 0x20], 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 0x86d45a
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4791f2
mov eax, 0x86cbc3
push eax
push 4
mov ebx, 0x4db300
call fcn.004da5a4
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x4792a7
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x86cc6a]
fstp qword [ebp - 0x30]
push dword [ebp - 0x20]
push 0x112a077
mov ecx, 2
call fcn.004010e1
add esp, 8
mov dword [ebp - 0x34], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x47924f
mov eax, 0x86cbc3
push eax
push 0x80000301
push 0
push 7
fld qword [ebp - 0x30]
call fcn.0040185e
push 0x80000301
push 0
push eax
push 0x50004
push 0x16018f23
push 0x52010b25
push 4
mov eax, 4
mov ebx, 0x79bfb0
call fcn.004da5aa
add esp, 0x34
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4792a2
push ebx
call fcn.004da586
add esp, 4
jmp 0x479337
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x86cc6a]
fstp qword [ebp - 0x30]
push dword [ebp - 0x20]
push 0x112a085
mov ecx, 2
call fcn.004010e1
add esp, 8
mov dword [ebp - 0x34], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4792e4
mov eax, 0x86cbc3
push eax
push 0x80000301
push 0
push 7
fld qword [ebp - 0x30]
call fcn.0040185e
push 0x80000301
push 0
push eax
push 0x50004
push 0x16018f23
push 0x52010b25
push 4
mov eax, 4
mov ebx, 0x79bfb0
call fcn.004da5aa
add esp, 0x34
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x479337
push ebx
call fcn.004da586
add esp, 4
cmp dword [0x135fd8c], 2
jne 0x479349
jmp 0x479351
pop eax
pop ebx
pop ecx
jmp 0x478a42
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x16018f26
push 0x52010b25
call fcn.004da5bc
add esp, 0x18
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x479381
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x479391
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4793a1
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4793b1
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4793c1
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4793d1
push ebx
call fcn.004da586
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4793e1
push ebx
call fcn.004da586
add esp, 4
mov esp, ebp
pop ebp
ret