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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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
mov dword [ebp - 0x18], 0
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x407a49
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f360
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x56029c
push dword [ebp - 0x1c]
call fcn.00401e3d
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407a8d
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x407aa1
mov eax, 0x5602b5
jmp 0x4089eb
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 0x407ac2
mov eax, 0x56029c
push eax
push 2
mov ebx, 0x46e880
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push str.http:__
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 0x407b06
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x407b86
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 0x407b31
mov eax, 0x56029c
push eax
push 2
mov ebx, 0x46e880
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x24], eax
push str.https:__
push dword [ebp - 0x24]
call fcn.00401e3d
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407b75
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x407b86
mov eax, 1
jmp 0x407b88
xor eax, eax
test eax, eax
je 0x407bc6
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.http:__
mov ecx, 2
call fcn.0040108c
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407bc0
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 0x407be4
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x407c01
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407c2d
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 1
cmp eax, ecx
jl 0x407c51
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 0xc], 1
mov eax, 0
sete al
test eax, eax
je 0x407c77
mov eax, 0x560aac
jmp 0x407c7c
mov eax, 0x560ab1
mov dword [ebp - 0x24], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x407c92
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407cb8
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407cce
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 2
cmp eax, ecx
jl 0x407cf2
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x5c]
mov eax, dword [ebx]
test eax, eax
jne 0x407d0f
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407d3b
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
cmp dword [ebp + 0x3c], 1
jne 0x407d81
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 - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407d7b
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 0x407d9f
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x407dbc
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407de8
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 4
cmp eax, ecx
jl 0x407e0c
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x407e30
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 - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407e43
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x407e67
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x407e84
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407eb0
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 6
cmp eax, ecx
jl 0x407ed4
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], 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 - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x407f0e
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 0x407f34
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407f4a
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
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 - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x407fa2
mov eax, 0x5602b5
jmp 0x4089eb
cmp dword [ebp + 0x70], 0
jne 0x407fb3
mov dword [ebp + 0x6c], 1
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
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 - 0x1c], eax
fild dword [ebp + 0x64]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x560b51]
fstp qword [ebp - 0x2c]
cmp dword [ebp - 0x1c], 0
je 0x408021
mov edx, 0x40ed4c00
mov eax, 0
jmp 0x408027
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
fld qword [ebp - 0x3c]
call fcn.00403636
mov dword [ebp + 0x64], eax
mov dword [ebp - 0x1c], 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 - 0x1c], esp
je 0x40806d
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 - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fild dword [ebp + 0x64]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x34]
fsub qword [ebp - 0x3c]
fcomp qword [0x560b59]
fnstsw ax
test ah, 1
jne 0x4080be
mov dword [ebp - 0x14], 0x102
push 0
mov ebx, 0x472b30
call fcn.0046de79
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4080ee
cmp dword [ebp - 0x14], 0x102
je 0x4080ee
mov eax, 1
jmp 0x4080f0
xor eax, eax
test eax, eax
jne 0x408038
cmp dword [ebp - 0x14], 0x102
jne 0x40820e
push dword [ebp - 0xc]
call fcn.00408a93
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xb
call fcn.0046de6d
cmp dword [ebp - 0x1c], esp
je 0x40812f
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 0x408189
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40817f
push ebx
call fcn.0046de73
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40816e
pop edx
pop edi
test edx, edx
je 0x408197
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 0x4081c4
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], 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 - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408203
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x408897
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 0x408897
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 0x408897
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408310
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x4082c1
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 0x4082de
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40830a
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 - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4085db
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x408347
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 0x408364
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.ocation
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4083ab
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 0x4083d1
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x24], 0xffffffff
je 0x4085bd
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 5
cmp eax, ecx
jl 0x4083f9
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 0x408416
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
mov eax, 0x560257
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, str.ocation:
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408a9c
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408470
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x408480
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x408490
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4084a6
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], 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 0x560bd2
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x4084df
mov eax, 0x56029c
push eax
push 4
mov ebx, 0x46eb70
call fcn.0046de79
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4085b8
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 1
mov eax, 0x560bd2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00408a9c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408541
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408551
push ebx
call fcn.0046de73
add esp, 4
push dword [ebp + 8]
call fcn.00408f9d
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0x54]
push dword [ebx]
push dword [ebp - 0x2c]
push 0x560bd2
push dword [ebp - 0x28]
mov ecx, 4
call fcn.0040108c
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40858c
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40859c
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4085b2
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
jmp 0x4085db
mov eax, 0x56029c
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4085d5
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 - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408661
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 1
cmp eax, ecx
jl 0x408612
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 0x40862f
mov eax, 0x5602b5
push eax
push 1
mov ebx, 0x4702d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40865b
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
cmp dword [ebp + 0x44], 1
jne 0x40875f
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x408689
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x4086af
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
mov eax, 0x560bd5
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, str.utf_8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.004093ca
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4086fa
push ebx
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40870a
push ebx
call fcn.0046de73
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40871d
mov eax, 0x56029c
push eax
push 1
mov ebx, 0x46f7d0
call fcn.0046de79
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408743
push ebx
call fcn.0046de73
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408759
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401742
mov eax, 0
cmp eax, ecx
jl 0x40877d
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x4087a1
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]
test ebx, ebx
je 0x4087b2
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4087d5
mov eax, 0x5602b5
push eax
push 2
mov ebx, 0x46fb80
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, 0x560bdf
xor ecx, ecx
test eax, eax
je 0x4087f9
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x40880a
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x408821
dec eax
test ecx, ecx
je 0x408821
call fcn.004010e8
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408841
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x40885c
cmp dword [ebp + 0x6c], 1
jne 0x40885c
mov eax, 1
jmp 0x40885e
xor eax, eax
test eax, eax
je 0x408878
lea eax, [ebp - 0x18]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
call fcn.004099ca
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x408892
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]
jmp 0x4089eb
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 0x4088d1
push 1
call fcn.0046de67
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x4088f5
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]
test ebx, ebx
je 0x408906
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x408929
mov eax, 0x5602b5
push eax
push 2
mov ebx, 0x46fb80
call fcn.0046de79
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, 0x560bdf
xor ecx, ecx
test eax, eax
je 0x40894d
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x40895e
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x408975
dec eax
test ecx, ecx
je 0x408975
call fcn.004010e8
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408995
push ebx
call fcn.0046de73
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x4089b0
cmp dword [ebp + 0x6c], 1
jne 0x4089b0
mov eax, 1
jmp 0x4089b2
xor eax, eax
test eax, eax
je 0x4089cc
lea eax, [ebp - 0x18]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
call fcn.004099ca
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4089e6
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]
jmp 0x4089eb
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x408a0a
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x408a06
imul eax, dword [ebx]
jmp 0x4089fb
mov ecx, eax
test ecx, ecx
je 0x408a29
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x408a22
push ebx
push eax
call fcn.0046de73
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x408a10
call fcn.0046de73
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x408a41
push ebx
call fcn.0046de73
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x6c