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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x24
call fcn.0046de61
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x560bea
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40c812
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f360
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x56029c
push dword [ebp - 0x18]
call fcn.00401e3d
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c856
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x40c86a
mov eax, 0x56029c
jmp 0x40d954
push 0x80000301
push 0
push 7
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40c88b
mov eax, 0x56029c
push eax
push 2
mov ebx, 0x46e880
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x18], eax
push str.http:__
push dword [ebp - 0x18]
call fcn.00401e3d
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c8cf
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x40c94f
push 0x80000301
push 0
push 8
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40c8fa
mov eax, 0x56029c
push eax
push 2
mov ebx, 0x46e880
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x20], eax
push str.https:__
push dword [ebp - 0x20]
call fcn.00401e3d
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c93e
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x40c94f
mov eax, 1
jmp 0x40c951
xor eax, eax
test eax, eax
je 0x40c98f
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.http:__
mov ecx, 2
call fcn.0040108c
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c989
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40c9ad
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40c9ca
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c9f6
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 1
cmp eax, ecx
jl 0x40ca1a
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0xc], 1
mov eax, 0
sete al
test eax, eax
je 0x40ca40
mov eax, 0x560aac
jmp 0x40ca45
mov eax, 0x560ab1
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40ca5b
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ca81
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ca97
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 2
cmp eax, ecx
jl 0x40cabb
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x5c]
mov eax, dword [ebx]
test eax, eax
jne 0x40cad8
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cb04
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
cmp dword [ebp + 0x3c], 1
jne 0x40cb4a
push str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_iPhone_OS_3_0_like_Mac_OS_X__en_us__AppleWebKit_528.18__KHTML__like_Gecko__Version_4.0_Mobile_7A341_Safari_528.16_r_n
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.0040108c
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cb44
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 3
cmp eax, ecx
jl 0x40cb68
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40cb85
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cbb1
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 4
cmp eax, ecx
jl 0x40cbd5
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x40cbf9
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0046de61
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cc0c
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x40cc30
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40cc4d
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cc79
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 6
cmp eax, ecx
jl 0x40cc9d
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_bind
push 0
push dword [ebp + 0x4c]
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40ccd7
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ccfd
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cd13
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
push 0
mov ebx, 0x4711e0
call fcn.0046de79
add esp, 4
mov dword [ebp - 8], eax
push 0xa0000005
push 0
push dword [ebp - 4]
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x471fc0
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40cd6b
mov eax, 0x56029c
jmp 0x40d954
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp - 8]
push 0x40c637
call fcn.00408a48
mov dword [ebp - 0xc], eax
push 0
mov ebx, 0x472af0
call fcn.0046de79
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x68], 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
fild dword [ebp + 0x64]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x560b51]
fstp qword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
je 0x40cdd9
mov edx, 0x40dd4c00
mov eax, 0
jmp 0x40cddf
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fld qword [ebp - 0x38]
call fcn.00403636
mov dword [ebp + 0x64], eax
mov dword [ebp - 0x18], esp
push 0x4bf
push dword [ebp + 0x64]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, 0xa
call fcn.0046de6d
cmp dword [ebp - 0x18], esp
je 0x40ce25
push 6
call fcn.0046de67
add esp, 4
mov dword [ebp - 0x14], eax
push 0
mov ebx, 0x472af0
call fcn.0046de79
add esp, 4
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fild dword [ebp + 0x64]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x30]
fsub qword [ebp - 0x38]
fcomp qword [0x560b59]
fnstsw ax
test ah, 1
jne 0x40ce76
mov dword [ebp - 0x14], 0x102
push 0
mov ebx, 0x472b30
call fcn.0046de79
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40cea6
cmp dword [ebp - 0x14], 0x102
je 0x40cea6
mov eax, 1
jmp 0x40cea8
xor eax, eax
test eax, eax
jne 0x40cdf0
cmp dword [ebp - 0x14], 0x102
jne 0x40cfc6
push dword [ebp - 0xc]
call fcn.00408a93
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov eax, 0xb
call fcn.0046de6d
cmp dword [ebp - 0x18], esp
je 0x40cee7
push 6
call fcn.0046de67
add esp, 4
mov ecx, 1
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.0046de61
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
mov dword [edi], 1
add edi, 4
mov ebx, dword [ebp - 4]
call fcn.00401742
pop edx
test ecx, ecx
je 0x40cf41
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cf37
push ebx
call fcn.0046de73
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40cf26
pop edx
pop edi
test edx, edx
je 0x40cf4f
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 4]
call fcn.0046de73
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40cf7c
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_connect
push 0
push 0x560b61
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cfbb
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
jmp 0x40d8df
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x4713e0
call fcn.0046de79
add esp, 0x10
push 0xa0000005
push 0
lea eax, [ebp - 4]
push eax
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x471a70
call fcn.0046de79
add esp, 0x1c
test eax, eax
je 0x40d8df
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x471230
call fcn.0046de79
add esp, 0x10
mov ebx, dword [ebp - 4]
call fcn.00402942
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 7
jne 0x40d8df
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40d0c8
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x40d079
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d096
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d0c2
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
cmp dword [ebp + 0x58], 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40d3e2
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x40d0ff
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d11c
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], 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.ocation
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40d163
mov eax, 0x56029c
push eax
push 4
mov ebx, 0x46eb70
call fcn.0046de79
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d189
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x20], 0xffffffff
je 0x40d3c4
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x40d1b1
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d1ce
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, 0x560257
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, str.ocation:
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x68d2e4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d222
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d232
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d242
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d258
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x40d27f
mov eax, 0x56029c
push eax
push 2
mov ebx, 0x46e880
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40d2a8
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46ed40
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d2ce
push ebx
call fcn.0046de73
add esp, 4
push 0x560f06
push dword [ebp - 0x1c]
call fcn.00401e3d
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d2fc
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x40d3bf
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 1
mov eax, 0x560bd2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00408a9c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d348
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d358
push ebx
call fcn.0046de73
add esp, 4
push dword [ebp + 8]
call fcn.00408f9d
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0x54]
push dword [ebx]
push dword [ebp - 0x28]
push 0x560bd2
push dword [ebp - 0x24]
mov ecx, 4
call fcn.0040108c
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d393
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d3a3
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d3b9
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
jmp 0x40d3e2
mov eax, 0x56029c
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d3dc
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
cmp dword [ebp + 0x28], 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40d468
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 1
cmp eax, ecx
jl 0x40d419
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d436
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d462
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
cmp dword [ebp + 0x44], 1
je 0x40d5da
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x40d490
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40d4ad
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
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 str.charsetutf
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40d4f4
mov eax, 0x56029c
push eax
push 4
mov ebx, 0x46eb70
call fcn.0046de79
add esp, 0x34
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d51a
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40d5da
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x40d542
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40d55f
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x30], 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.charsetUTF
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40d5a6
mov eax, 0x56029c
push eax
push 4
mov ebx, 0x46eb70
call fcn.0046de79
add esp, 0x34
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d5cc
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40d5da
xor eax, eax
jmp 0x40d5df
mov eax, 1
test eax, eax
je 0x40d6e0
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40d605
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40d62b
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, 0x560bd5
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, str.utf_8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call fcn.004093ca
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d676
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d686
push ebx
call fcn.0046de73
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40d699
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d6bf
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d6d5
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
jmp 0x40d886
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40d6fe
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d71b
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], 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.text_html__charsetutf_8
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40d762
mov eax, 0x56029c
push eax
push 4
mov ebx, 0x46eb70
call fcn.0046de79
add esp, 0x34
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d788
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x20], 0xffffffff
je 0x40d886
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40d7b0
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40d7d6
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, 0x560bd5
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, str.utf_8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call fcn.004093ca
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d821
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d831
push ebx
call fcn.0046de73
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40d844
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d86a
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d880
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40d8a4
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d8c1
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
jmp 0x40d954
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x471230
call fcn.0046de79
add esp, 0x10
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40d919
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x40d936
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
jmp 0x40d954
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40d973
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40d96f
imul eax, dword [ebx]
jmp 0x40d964
mov ecx, eax
test ecx, ecx
je 0x40d992
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40d98b
push ebx
push eax
call fcn.0046de73
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40d979
call fcn.0046de73
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x64