Function at 0x5191b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x144]
or eax, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], ebx
jne 0x5192e7
mov al, byte [esi + 0x7e0]
test al, al
jne 0x5192e7
mov ecx, dword [esi + 0x12c]
mov eax, 1
cmp ecx, eax
jle 0x5192e7
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x14f]
test dl, dl
je 0x5192e7
mov edx, dword [esi + 0x1cc]
mov dword [edx + 0x3374], eax
mov eax, dword [esi + 0x1cc]
mov dword [eax + 0x3358], ebx
mov dword [eax + 0x335c], ebx
mov ecx, dword [esi + 0x1cc]
mov dword [ecx + 0x3340], ebx
mov dword [ecx + 0x3344], ebx
mov edx, dword [esi + 0x1cc]
mov byte [edx + 0x63f3], 1
mov eax, dword [esi + 0x1cc]
mov edx, dword [eax + 0x3320]
lea ecx, [eax + 0x3320]
add eax, 0x63e4
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x3d4]
cmp eax, 0x80
jae 0x5192a9
mov ecx, dword [esi + 0x1cc]
mov edx, dword [ecx + 0x63e4]
mov dword [esi + eax*4 + 0x3d8], edx
mov eax, dword [esi + 0x3d4]
inc eax
mov dword [esi + 0x3d4], eax
mov eax, dword [esi + 0x5d8]
cmp eax, 0x80
jae 0x5192d6
mov ecx, dword [esi + 0x1cc]
mov edx, dword [ecx + 0x63e4]
mov dword [esi + eax*4 + 0x5dc], edx
mov eax, dword [esi + 0x5d8]
inc eax
mov dword [esi + 0x5d8], eax
mov eax, 2
mov dword [esi + 0x138], eax
mov dword [esi + 0x130], eax
mov eax, dword [0x664554]
push 1
push eax
mov ecx, esi
call fcn.005376c0
mov ecx, esi
call fcn.005380f0
mov ecx, esi
call fcn.00538810
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x148]
mov edx, dword [esi + 0x14c]
add eax, 0xfffffffb
mov dword [ebp - 0x38], ecx
mov ecx, esi
mov dword [esi + 0x13c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], edx
call fcn.00537910
lea eax, [ebp - 0xac]
mov dword [ebp - 0x5c], 3
push eax
mov dword [ebp - 0x58], ebx
call fcn.0056dcfc
lea ecx, [ebp - 0x74]
push ecx
call fcn.0056dcfc
add esp, 8
xor edi, edi
xor edx, edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x11], 1
xor ecx, ecx
cmp ecx, dword [esi + 0x130]
jge 0x5193bb
mov eax, ecx
mov ebx, dword [esi + 0x1cc]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
shl eax, 5
add eax, ebx
xor ebx, ebx
cmp dword [eax + 0x54], ebx
je 0x5193b8
inc edx
cmp dword [eax + 0x2b8], ebx
jg 0x5193b2
mov ebx, dword [eax + 0x80]
cmp dword [ebx + 0x24], 2
jne 0x5193b6
xor ebx, ebx
cmp dword [eax + 0x3314], ebx
ja 0x5193b2
cmp byte [eax + 0x3318], bl
je 0x5193b8
inc edi
inc ecx
jmp 0x519364
xor ebx, ebx
inc ecx
jmp 0x519364
cmp edi, 1
jne 0x5193cb
cmp edx, edi
jne 0x5193cb
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x5c], edi
cmp dword [esi + 0x38], ebx
je 0x51942e
lea ecx, [esi + 0x48]
call fcn.004f73c0
mov ecx, dword [esi + 0x140]
mov edx, dword [esi + 0x144]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], ebx
push eax
push 0x1389
mov dword [eax], ecx
mov ecx, dword [esi + 0x148]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
push 0x111
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005375d0
test al, al
mov byte [ebp - 0x3c], al
je 0x51945d
lea edx, [ebp - 0xa0]
push edx
call fcn.0056dcfc
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov al, byte [ebp - 0x11]
test al, al
je 0x519487
lea edx, [ebp - 0x5c]
lea eax, [esi + 0x5d8]
push edx
lea ecx, [esi + 0x3d4]
push eax
lea edx, [esi + 0x1d0]
push ecx
push edx
push ebx
call sub.WSOCK32.dll_select
mov edi, eax
jmp 0x519497
mov edi, 1
mov dword [ebp - 0x5c], 3
mov byte [ebp - 0x11], 1
cmp dword [esi + 0x38], ebx
je 0x5194ba
lea ecx, [esi + 0x48]
call fcn.004f73c0
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
or eax, ecx
jne 0x5194ff
lea eax, [ebp - 0x74]
push eax
call fcn.0056dcfc
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x5194ff
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x148]
mov eax, dword [esi + 0x14c]
cmp edi, 0xffffffff
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
je 0x519570
cmp edi, ebx
je 0x519570
xor edi, edi
cmp edi, dword [esi + 0x130]
jge 0x519577
mov eax, edi
shl eax, 4
add eax, edi
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x1cc]
lea edx, [edi + ecx*8]
shl edx, 5
lea ecx, [edx + eax]
mov eax, dword [edx + eax + 0x54]
cmp eax, ebx
je 0x51956d
cmp dword [esi + 0x38], ebx
je 0x519568
lea ecx, [esi + 0x48]
call fcn.004f73c0
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00511fa0
inc edi
jmp 0x51951c
mov ecx, esi
call fcn.0051a210
mov ecx, dword [ebp - 0x3c]
push ecx
push ebx
mov ecx, esi
call fcn.005379e0
lea edx, [ebp - 0x80]
push edx
call fcn.0056dcfc
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x74]
mov eax, ecx
add esp, 4
sub eax, edi
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
lea eax, [eax + eax*4]
shl eax, 3
mov edx, eax
mov eax, dword [ebp - 0x70]
and eax, 0xffff
sub edx, eax
mov eax, dword [ebp - 0x7c]
mov edi, eax
and edi, 0xffff
add edx, edi
cmp edx, 0xfa
jl 0x51964b
lea ecx, [ebp - 0x74]
push ecx
call fcn.0056dcfc
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x130]
jge 0x519645
mov eax, ebx
mov ecx, dword [esi + 0x1cc]
shl eax, 4
add eax, ebx
lea edx, [eax + eax*2]
lea eax, [ebx + edx*8]
shl eax, 5
lea edi, [eax + ecx]
mov eax, dword [eax + ecx + 0x54]
test eax, eax
je 0x519642
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
cmp dword [eax], 0
je 0x519642
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or ecx, eax
je 0x519642
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.004fa9e0
mov edx, dword [edi + 0x70]
lea eax, [edi + 0x2d0]
push eax
push 0x13ef
mov eax, dword [edx]
push 0x111
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x5195d8
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [esi + 0x40]
test edx, edx
jne 0x5197fc
mov edi, dword [esi + 0x14c]
mov ebx, dword [ebp - 0x34]
mov edx, dword [esi + 0x148]
cmp ebx, edi
jg 0x5197fc
jl 0x519678
cmp dword [ebp - 0x38], edx
jae 0x5197fc
cmp dword [ebp - 0x54], edx
jne 0x5197fc
cmp dword [ebp - 0x50], edi
jne 0x5197fc
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
or edx, edi
lea edx, [ecx + ecx*2]
lea ecx, [ecx + edx*8]
lea ecx, [ecx + ecx*4]
jne 0x5196b1
and eax, 0xffff
lea eax, [eax + ecx*8]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x519804
and eax, 0xffff
lea eax, [eax + ecx*8]
mov ecx, dword [esi + 0xc]
cdq
fld qword [ecx + 0x3c0]
fsqrt
mov edi, eax
mov ebx, edx
fmul qword [0x5da6c8]
fadd qword [ecx + 0x3b0]
fcom qword [ecx + 0x3d0]
fnstsw ax
test ah, 1
je 0x5196e7
fstp qword [ebp - 0x64]
jmp 0x5196fb
mov edx, dword [ecx + 0x3d0]
mov eax, dword [ecx + 0x3d4]
fstp st(0)
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
fld qword [ecx + 0x3b8]
fsqrt
fmul qword [0x5da6c8]
fadd qword [ecx + 0x3a8]
fcom qword [ecx + 0x3c8]
fnstsw ax
test ah, 1
jne 0x519724
fstp st(0)
fld qword [ecx + 0x3c8]
fld qword [ebp - 0x64]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x519735
fstp st(0)
fld qword [ebp - 0x64]
fmul qword [0x5dae18]
fadd qword [0x5dae10]
call fcn.0056cb34
mov ecx, dword [ebp - 0x28]
sub edi, ecx
mov ecx, dword [ebp - 0x24]
sbb ebx, ecx
cmp ebx, edx
jl 0x519804
jg 0x519762
cmp edi, eax
jbe 0x519804
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.00545780
cmp eax, edi
je 0x519804
cmp dword [esi + 0x38], edi
je 0x519794
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1cc]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x1cc]
call fcn.005158f0
mov ecx, dword [esi + 0x1cc]
mov eax, dword [ecx]
lea edx, [ecx + 0x30c4]
push edx
call dword [eax + 0x10]
cmp eax, edi
jne 0x51a005
mov ecx, dword [esi + 0x1cc]
push edi
call fcn.0050d230
cmp eax, edi
jne 0x51a005
mov ecx, dword [esi + 0x14c]
mov edx, dword [0x664554]
mov eax, dword [esi + 0x148]
mov dword [ebp - 0x34], ecx
push 1
push edx
mov ecx, esi
mov dword [ebp - 0x38], eax
call fcn.005376c0
jmp 0x519804
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0xb0], 2
jne 0x519bba
mov edi, dword [esi + 0x144]
mov edx, dword [esi + 0x140]
mov eax, edi
test eax, eax
jl 0x519842
jg 0x51982d
cmp edx, 0x32
jbe 0x519842
mov eax, dword [esi + 0x1cc]
mov ebx, dword [eax + 0x44]
test ebx, ebx
jl 0x519863
jg 0x519842
cmp dword [eax + 0x40], 0x32
jb 0x519863
test edi, edi
jg 0x51988d
jl 0x51984d
cmp edx, 0x32
ja 0x51988d
mov eax, dword [esi + 0x1cc]
mov ebx, dword [eax + 0x44]
cmp ebx, edi
jg 0x51988d
jl 0x519863
mov edi, dword [eax + 0x40]
cmp edi, edx
jae 0x51988d
mov dl, byte [eax + 0x94]
test dl, dl
je 0x519bba
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
or edx, edi
jne 0x519bba
mov dl, byte [eax + 0x95]
test dl, dl
je 0x519bba
call fcn.0054bec0
mov cl, byte [0x663774]
mov dword [ebp - 0x18], eax
test cl, cl
jne 0x5198ac
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x2c0]
test dl, dl
jne 0x5198ba
mov cl, byte [esi + 0x7e0]
test cl, cl
je 0x519949
mov edx, dword [esi + 0xc]
cmp dword [edx + 0xb0], 2
jne 0x5198ce
xor edi, edi
cmp eax, edi
je 0x51994b
jmp 0x5198d0
xor edi, edi
mov ecx, dword [esi + 0x1cc]
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esi + 0x48]
call fcn.004f2720
mov dword [esi + 0x80], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x14c], edi
mov al, byte [0x663774]
test al, al
jne 0x519933
mov ecx, dword [esi + 0xc]
mov al, byte [ecx + 0x2c0]
test al, al
je 0x519933
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x756a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [esi + 0x70], edi
jle 0x5199c6
mov ebx, dword [esi + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0xcc]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5199c6
mov ebx, dword [ebx + 0xbc]
test ebx, ebx
je 0x51998a
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.0056e7e0
add esp, 0xc
test eax, eax
je 0x5199c6
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x5199a8
mov ecx, dword [esi + 0x70]
push ecx
push 0x13f8
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x5199c6
mov ecx, dword [esi + 0x70]
push ecx
push 0x13f8
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x519bba
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x519b5d
mov al, byte [0x663774]
test al, al
jne 0x519adb
mov eax, dword [esi + 0xc]
mov byte [ebp - 0x12], 0
mov edx, dword [eax + 0xbc]
test edx, edx
je 0x519a4a
mov ebx, dword [eax + 0xe4]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x519a4a
mov edi, edx
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x519a3d
test cl, cl
je 0x519a39
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x519a3d
add eax, 2
add edi, 2
test cl, cl
jne 0x519a15
xor eax, eax
jmp 0x519a42
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x519a4a
mov byte [ebp - 0x12], 1
mov edi, dword [esi + 0x144]
mov edx, dword [esi + 0x140]
xor ebx, ebx
cmp edi, ebx
jl 0x519a83
jg 0x519a62
cmp edx, ebx
jbe 0x519a83
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xe8]
mov eax, dword [eax + 0xec]
cmp eax, ebx
jl 0x519a83
jg 0x519a7b
cmp ecx, ebx
jbe 0x519a83
cmp ecx, edx
jne 0x519a8a
cmp eax, edi
jne 0x519a8a
mov al, byte [ebp - 0x12]
test al, al
je 0x519adb
mov eax, dword [esi + 0xc]
push 0x663188
lea ecx, [eax + 0xe4]
call fcn.00588849
mov eax, dword [esi + 0xc]
push 0x50040
mov dword [eax + 0xe8], ebx
mov dword [eax + 0xec], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [0x663d04]
mov edx, dword [ecx + 8]
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x519b5d
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x519af0
mov eax, ecx
jmp 0x519af3
add eax, 0x38
push 0x2e
push eax
call fcn.0056cc8e
mov edi, eax
add esp, 8
test edi, edi
je 0x519b5d
push 0x63fd68
push edi
call fcn.0056eb4c
add esp, 8
test eax, eax
je 0x519b5d
push 0x63e2ec
push edi
call fcn.0056eb4c
add esp, 8
test eax, eax
je 0x519b5d
mov ecx, dword [esi + 0xc]
mov eax, dword [0x6644d4]
push 0x50004
mov edx, dword [ecx + 8]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x519b5d
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x519bba
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x519b72
mov eax, ecx
jmp 0x519b75
add eax, 0x38
push 0x2e
push eax
call fcn.0056cc8e
mov edi, eax
add esp, 8
test edi, edi
je 0x519bba
push 0x63fd68
push edi
call fcn.0056eb4c
add esp, 8
test eax, eax
je 0x519bba
push 0x63e2ec
push edi
call fcn.0056eb4c
add esp, 8
test eax, eax
je 0x519bba
mov ecx, dword [esi + 0xc]
call fcn.0054bf80
test eax, eax
jne 0x51a005
mov al, byte [ebp - 0x3c]
test al, al
je 0x519deb
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x148]
test ecx, ecx
jl 0x519deb
jg 0x519be6
cmp eax, 0x400
jbe 0x519deb
mov ecx, dword [0x663310]
mov ebx, dword [0x663314]
lea edx, [ebp - 0x94]
mov dword [ebp - 0x4c], ecx
push edx
call fcn.0056dcfc
mov eax, dword [esi + 0x148]
mov edi, dword [ebp - 0x44]
mov ecx, dword [esi + 0x14c]
mov edx, dword [ebp - 0x40]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
js 0x519deb
jg 0x519c30
test eax, eax
jbe 0x519deb
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0xa0]
sub eax, edx
mov edx, dword [ebp - 0x9c]
and edx, 0xffff
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x90]
and ecx, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
sub eax, edx
add eax, ecx
mov dword [ebp - 0x18], eax
jne 0x519c72
mov dword [ebp - 0x18], 1
fild qword [ebp - 0x30]
fmul dword [0x5bdd40]
fidiv dword [ebp - 0x18]
call fcn.0056cb34
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x519deb
jg 0x519c9a
cmp ecx, dword [ebp - 0x4c]
jbe 0x519deb
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.0056ee00
mov ecx, dword [ebp - 0x4c]
push ebx
push ecx
push edx
push eax
call fcn.0056e3a0
mov edi, eax
mov eax, dword [esi + 0x150]
cdq
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x4c]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x20], eax
call fcn.0056e3a0
cmp dword [ebp - 0x1c], edx
jg 0x519cf8
jl 0x519ce3
cmp dword [ebp - 0x20], eax
jae 0x519cf8
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x519d26
mov ecx, dword [ebp - 0x4c]
push 0
push 9
push ebx
push ecx
call fcn.0056ee00
push 0
push 0xa
push edx
push eax
call fcn.0056e3a0
cmp dword [ebp - 0x1c], edx
jg 0x519d26
jl 0x519d1d
cmp dword [ebp - 0x20], eax
jae 0x519d26
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x519d35
mov edi, 0x2ee0
jmp 0x519d3d
test edi, edi
jle 0x519deb
mov eax, dword [esi + 0x7dc]
cmp eax, 0xffffffff
je 0x519de4
lea ecx, [esi + 0x1d0]
lea ebx, [esi + 0x5d8]
mov dword [esi + 0x3d4], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x1d4], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x519d94
mov edx, dword [esi + 0x7dc]
mov dword [esi + eax*4 + 0x5dc], edx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x88], edx
lea eax, [edx + edx*2]
lea edx, [edx + eax*8]
lea edx, [edx + edx*4]
shl edx, 3
sub edi, edx
lea eax, [edi + edi*2]
lea edi, [edi + eax*8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0x3d4]
lea edx, [edi + edi*4]
push ebx
push eax
push ecx
shl edx, 3
push 0
mov dword [ebp - 0x84], edx
call sub.WSOCK32.dll_select
jmp 0x519deb
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0051a020
mov edi, eax
test edi, edi
jne 0x519e0d
mov ecx, esi
call fcn.0051a350
mov ecx, esi
call fcn.00538840
xor ebx, ebx
jmp 0x5193cb
mov eax, dword [esi + 0x38]
test eax, eax
je 0x519e32
lea ecx, [esi + 0x48]
call fcn.004f73c0
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x753c
je 0x519f94
cmp edi, 0xffffffff
je 0x519f94
mov ecx, dword [esi + 0x14c]
mov edx, dword [esi + 0x148]
mov eax, dword [0x664558]
push ecx
push edx
lea ecx, [ebp - 0x12c]
push eax
push ecx
call fcn.0056d05a
add esp, 0x10
lea edx, [ebp - 0x12c]
mov ecx, esi
push 1
push edx
call fcn.005376c0
mov eax, dword [esi + 0x148]
mov edx, dword [esi + 0x140]
mov ecx, dword [esi + 0x14c]
mov edi, dword [esi + 0x144]
cmp eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
jne 0x519ea5
mov eax, ecx
cmp eax, edi
je 0x519f0b
mov eax, edx
or eax, edi
je 0x519f0b
mov ebx, dword [esi + 0xc]
mov eax, edx
mov ecx, edi
mov ebx, dword [ebx + 0x2c8]
mov dword [ebp - 0x30], ebx
add eax, ebx
mov ebx, 0
adc ecx, ebx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jne 0x519ed8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
je 0x519f0b
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
add edx, esi
adc edi, ebx
cmp eax, edi
jl 0x51a002
jg 0x519ef5
cmp dword [ebp - 0x20], edx
jbe 0x51a002
mov eax, 0x7570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp ebx, dword [esi + 0x130]
jge 0x519f7a
mov eax, ebx
mov edx, dword [esi + 0x1cc]
shl eax, 4
add eax, ebx
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
shl ecx, 5
mov eax, dword [ecx + edx + 0x54]
lea edi, [ecx + edx]
test eax, eax
je 0x519f77
mov eax, dword [edi + 0x70]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x519f77
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or edx, eax
je 0x519f77
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.004fa9e0
lea eax, [edi + 0x2d0]
push eax
mov eax, dword [edi + 0x70]
push 0x13ef
push 0x111
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x519f0d
mov ecx, esi
call fcn.00538840
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x148]
mov edx, dword [0x66454c]
push eax
push ecx
lea eax, [ebp - 0x12c]
push edx
push eax
call fcn.0056d05a
add esp, 0x10
lea ecx, [ebp - 0x12c]
push 1
push ecx
mov ecx, esi
call fcn.005376c0
mov esi, dword [esi + 0xf8]
test esi, esi
je 0x519fdc
cmp edi, 0x753c
mov eax, esi
je 0x51a005
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret