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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
push 0x24
call fcn.004249c8
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x4c596b
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 - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0x80000301
push 0
push 7
push SysStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x404d89
mov eax, 0x4c4d38
push eax
push 2
mov ebx, 0x425330
call fcn.004249e0
add esp, 0x1c
mov dword [ebp - 0x20], eax
push str.http:__
push dword [ebp - 0x20]
call fcn.0040153f
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 0x404dcd
push ebx
call fcn.004249da
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x404e4d
push 0x80000301
push 0
push 8
push SysStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x404df8
mov eax, 0x4c4d38
push eax
push 2
mov ebx, 0x425330
call fcn.004249e0
add esp, 0x1c
mov dword [ebp - 0x28], eax
push str.https:__
push dword [ebp - 0x28]
call fcn.0040153f
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404e3c
push ebx
call fcn.004249da
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x404e4d
mov eax, 1
jmp 0x404e4f
xor eax, eax
test eax, eax
je 0x404e8d
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.http:__
mov ecx, 2
call fcn.0040109b
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404e87
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.0040600e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404eac
push ebx
call fcn.004249da
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x404ece
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push SysStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x404eeb
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404f17
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 1
cmp eax, ecx
jl 0x404f3b
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
cmp dword [ebp + 0xc], 1
mov eax, 0
sete al
test eax, eax
je 0x404f61
mov eax, 0x4c5883
jmp 0x404f66
mov eax, 0x4c5888
mov dword [ebp - 0x28], eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x404f7c
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404fa2
push ebx
call fcn.004249da
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404fb8
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 1
cmp eax, ecx
jl 0x404fdc
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x404ff9
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405023
push ebx
call fcn.004249da
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 2
cmp eax, ecx
jl 0x405045
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push SysStringLen
push 0
mov ebx, dword [ebp + 0x5c]
mov eax, dword [ebx]
test eax, eax
jne 0x405062
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40508e
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
cmp dword [ebp + 0x3c], 1
jne 0x4050d4
push str.User_Agent:_Mozilla_5.0_Linux__U__Android_4.4.2__zh__SM_N9009__AppleWebKit_533.0__KHTML__like_Gecko__Version_4.0_Mobile_Safari_533.1_r_n
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.0040109b
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4050ce
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 3
cmp eax, ecx
jl 0x4050f2
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push SysStringLen
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40510f
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40513b
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 4
cmp eax, ecx
jl 0x40515f
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x405183
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004249c8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405196
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 5
cmp eax, ecx
jl 0x4051ba
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push SysStringLen
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x4051d7
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405203
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 6
cmp eax, ecx
jl 0x405227
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push dword [ebp + 0x4c]
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x405261
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405287
push ebx
call fcn.004249da
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40529d
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
push 0
mov ebx, 0x427630
call fcn.004249e0
add esp, 4
mov dword [ebp - 0x10], eax
push 0xa0000005
push 0
push dword [ebp - 8]
push 0x80000301
push 0
push dword [ebp - 0x10]
push 2
mov ebx, 0x428410
call fcn.004249e0
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4052f5
mov eax, 0x4c4d38
jmp 0x405fa1
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x10]
push 0x409944
call fcn.0040643b
mov dword [ebp - 0x14], eax
push 0
mov ebx, 0x428c10
call fcn.004249e0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x68], 0
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
fild dword [ebp + 0x64]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fmul qword [0x4c5913]
fstp qword [ebp - 0x30]
cmp dword [ebp - 0x20], 0
je 0x405363
mov edx, 0x40e38800
mov eax, 0
jmp 0x405369
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
fld qword [ebp - 0x40]
call fcn.004015dc
mov dword [ebp + 0x64], eax
mov dword [ebp - 0x20], esp
push 0x4bf
push dword [ebp + 0x64]
push 0
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, 0
call fcn.004249d4
cmp dword [ebp - 0x20], esp
je 0x4053af
push 6
call fcn.004249ce
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
mov ebx, 0x428c10
call fcn.004249e0
add esp, 4
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fild dword [ebp + 0x64]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x38]
fsub qword [ebp - 0x40]
fcomp qword [0x4c591b]
fnstsw ax
test ah, 1
jne 0x405400
mov dword [ebp - 0x1c], 0x102
push 0
mov ebx, 0x428c50
call fcn.004249e0
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x405430
cmp dword [ebp - 0x1c], 0x102
je 0x405430
mov eax, 1
jmp 0x405432
xor eax, eax
test eax, eax
jne 0x40537a
cmp dword [ebp - 0x1c], 0x102
jne 0x405550
push dword [ebp - 0x14]
call fcn.00406486
mov dword [ebp - 0x20], esp
push dword [ebp - 0x14]
mov eax, 1
call fcn.004249d4
cmp dword [ebp - 0x20], esp
je 0x405471
push 6
call fcn.004249ce
add esp, 4
mov ecx, 1
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.004249c8
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 - 8]
call fcn.0040161c
pop edx
test ecx, ecx
je 0x4054cb
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4054c1
push ebx
call fcn.004249da
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x4054b0
pop edx
pop edi
test edx, edx
je 0x4054d9
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 8]
call fcn.004249da
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405506
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push SysStringLen
push 0
push 0x4c4d38
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405545
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
jmp 0x405ef8
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x427830
call fcn.004249e0
add esp, 0x10
push 0xa0000005
push 0
lea eax, [ebp - 8]
push eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 2
mov ebx, 0x427ec0
call fcn.004249e0
add esp, 0x1c
test eax, eax
je 0x405ef8
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x427680
call fcn.004249e0
add esp, 0x10
mov ebx, dword [ebp - 8]
call fcn.00401603
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 7
jne 0x405ef8
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x405652
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 5
cmp eax, ecx
jl 0x405603
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x405620
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40564c
push ebx
call fcn.004249da
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 - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x405990
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 5
cmp eax, ecx
jl 0x405689
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x4056a6
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4056cf
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x4257d0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4056f5
push ebx
call fcn.004249da
add esp, 4
push SysStringLen
push 0
push str.Location
push 1
mov ebx, 0x4257d0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x2c], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40573b
mov eax, 0x4c4d38
push eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40574f
mov eax, 0x4c4d38
push eax
push 4
mov ebx, 0x425620
call fcn.004249e0
add esp, 0x34
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x405775
push ebx
call fcn.004249da
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x405785
push ebx
call fcn.004249da
add esp, 4
cmp dword [ebp - 0x30], 0xffffffff
je 0x405972
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 5
cmp eax, ecx
jl 0x4057ad
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x4057ca
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 1
mov eax, 0x4c4cf3
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, str.ocation:
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040471d
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405824
push ebx
call fcn.004249da
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x405834
push ebx
call fcn.004249da
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x405844
push ebx
call fcn.004249da
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40585a
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
push 0x80000301
push 0
push 4
push SysStringLen
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x405881
mov eax, 0x4c4d38
push eax
push 2
mov ebx, 0x425330
call fcn.004249e0
add esp, 0x1c
mov dword [ebp - 0x20], eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4058aa
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x4257f0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4058d0
push ebx
call fcn.004249da
add esp, 4
push str.http
push dword [ebp - 0x24]
call fcn.0040153f
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 0x4058fe
push ebx
call fcn.004249da
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x40592a
push 0x4c4d38
mov ebx, dword [ebp + 0x54]
push dword [ebx]
call fcn.0040153f
add esp, 8
cmp eax, 0
je 0x40592a
mov eax, 1
jmp 0x40592c
xor eax, eax
test eax, eax
je 0x40596d
mov ebx, dword [ebp + 0x54]
push dword [ebx]
push dword [ebp - 4]
push str.http:__
mov ecx, 3
call fcn.0040109b
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405967
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
jmp 0x405990
mov eax, 0x4c4d38
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40598a
push ebx
call fcn.004249da
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 - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x405a16
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 1
cmp eax, ecx
jl 0x4059c7
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x4059e4
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405a10
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
cmp dword [ebp + 0x44], 1
je 0x405b0f
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 5
cmp eax, ecx
jl 0x405a3e
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x405a5b
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x405a84
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x4257f0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x405aaa
push ebx
call fcn.004249da
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
push str.charsetutf
push SysStringLen
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x405adb
mov eax, 0x4c4d38
push eax
push 4
mov ebx, 0x425620
call fcn.004249e0
add esp, 0x34
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x405b01
push ebx
call fcn.004249da
add esp, 4
cmp dword [ebp - 0x30], 0xffffffff
jne 0x405b0f
xor eax, eax
jmp 0x405b14
mov eax, 1
test eax, eax
je 0x405c09
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405b3a
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405b60
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x405b7d
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040648f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x405baf
push ebx
call fcn.004249da
add esp, 4
push SysStringLen
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x405bc2
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x405be8
push ebx
call fcn.004249da
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405bfe
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
jmp 0x405e9f
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405c27
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x405c44
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
push str.text_html__charsetutf_8
push SysStringLen
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x405c8b
mov eax, 0x4c4d38
push eax
push 4
mov ebx, 0x425620
call fcn.004249e0
add esp, 0x34
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405cb1
push ebx
call fcn.004249da
add esp, 4
cmp dword [ebp - 0x28], 0xffffffff
je 0x405dad
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 5
cmp eax, ecx
jl 0x405cd9
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
test eax, eax
jne 0x405cf6
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x34], eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x405d1f
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x4257f0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x405d45
push ebx
call fcn.004249da
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
push str.charsetgb
push SysStringLen
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x405d76
mov eax, 0x4c4d38
push eax
push 4
mov ebx, 0x425620
call fcn.004249e0
add esp, 0x34
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x405d9c
push ebx
call fcn.004249da
add esp, 4
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x405dad
mov eax, 1
jmp 0x405daf
xor eax, eax
test eax, eax
je 0x405e9f
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405dd5
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405dfb
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x405e18
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040648f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x405e4a
push ebx
call fcn.004249da
add esp, 4
push SysStringLen
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x405e5d
mov eax, 0x4c4d38
push eax
push 1
mov ebx, 0x426430
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x405e83
push ebx
call fcn.004249da
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x405e99
push ebx
call fcn.004249da
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405ebd
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x405eda
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
jmp 0x405fa1
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x405f2c
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.00406778
mov ebx, eax
test ebx, ebx
je 0x405f2c
push ebx
call fcn.004249da
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x427680
call fcn.004249e0
add esp, 0x10
mov ebx, dword [ebp - 8]
call fcn.0040161c
mov eax, 0
cmp eax, ecx
jl 0x405f66
push 1
call fcn.004249ce
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x405f83
mov eax, 0x4c4dfc
push eax
push 1
mov ebx, 0x426ef0
call fcn.004249e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
jmp 0x405fa1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405fb2
push ebx
call fcn.004249da
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x405fd0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x405fcc
imul eax, dword [ebx]
jmp 0x405fc1
mov ecx, eax
test ecx, ecx
je 0x405fef
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x405fe8
push ebx
push eax
call fcn.004249da
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x405fd6
call fcn.004249da
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406007
push ebx
call fcn.004249da
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x64