Function at 0x5108d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x24], esi
cmp eax, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
ja case.0x510915.8
xor ecx, ecx
mov cl, byte [eax + 0x511d0c]
jmp dword [ecx*4 + 0x511ce8]
mov edx, dword [esi + 0x80]
fld qword [edx + 0x3b0]
fcomp qword [0x5d83a8]
fnstsw ax
test ah, 1
jne case.0x510915.8
lea eax, [ebp - 0x14]
push edi
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x30cc]
call fcn.00518de0
cmp eax, edi
je case.0x510915.8
mov edx, dword [esi + 0x30cc]
cmp dword [edx + 0xec], 2
je case.0x510915.8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jle case.0x510915.8
jmp 0x51159d
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xec], edi
jne 0x5109e4
cmp dword [esi + 0x24], edi
jl 0x5109e4
jg 0x510995
cmp dword [esi + 0x20], edi
jbe 0x5109e4
cmp dword [esi + 0x78], 0x14
jle 0x5109e4
lea edi, [esi + 0x30c]
push edi
call fcn.0056c17c
mov eax, dword [edi]
mov edx, dword [esi + 0x300]
mov ecx, dword [esi + 0x74]
sub eax, edx
add esp, 4
cmp eax, ecx
mov dword [esi + 0x318], eax
jl 0x5109e2
mov ecx, dword [esi + 0x30cc]
push 0xc8
call fcn.00518d60
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
mov edx, dword [esi + 0x30cc]
cmp dword [edx + 0xec], 2
jne 0x510a01
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or eax, ecx
je 0x510a01
xor ebx, ebx
jmp 0x510a06
mov ebx, 1
lea edi, [esi + 0x30c]
push edi
call fcn.0056c17c
mov eax, dword [edi]
mov edx, dword [esi + 0x300]
mov ecx, dword [esi + 0x74]
sub eax, edx
add esp, 4
cmp eax, ecx
mov dword [esi + 0x318], eax
jl 0x510a30
test ebx, ebx
jne 0x510a57
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je case.0x510915.8
cmp dword [esi + 0x78], 4
jl 0x510a57
mov ecx, dword [esi + 0x30cc]
call fcn.005178f0
test eax, eax
jne case.0x510915.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je case.0x510915.8
mov ecx, dword [esi + 0x30cc]
cmp eax, 0x7569
mov dword [ecx + 0xf8], eax
jne case.0x510915.8
mov ecx, dword [esi + 0x30cc]
mov edx, dword [ecx]
call dword [edx + 4]
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 + 0x30cc]
mov ecx, dword [esi + 0x30c4]
lea ebx, [esi + 0x30c4]
add eax, 0x1d0
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x510c54
mov ecx, esi
call fcn.0050e7f0
cmp eax, 0x2733
je 0x510ac6
mov edx, dword [esi + 0xb0]
cmp dword [edx + 4], 2
jne 0x510b7e
cmp dword [esi + 0x3114], 0x197
jne 0x510b7e
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
cmp eax, edi
je 0x510b18
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
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 + 0xb0]
lea ecx, [esi + 0x3184]
push 1
push ecx
mov ecx, dword [eax + 0x118]
lea edx, [esi + 0x3194]
push edx
mov edx, dword [eax + 0x114]
push ecx
mov ecx, dword [esi + 0x3190]
push edx
add eax, 8
push ecx
push eax
mov ecx, esi
call fcn.00513230
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x510b65
mov ecx, esi
call fcn.0050de80
push edi
mov ecx, esi
call fcn.0050d8e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, edi
jne 0x510ba7
cmp dword [esi + 0x3114], 0xc8
jne 0x510ba7
mov dword [esi + 0x5c], 0x10
mov ecx, esi
call fcn.0050e000
cmp eax, 0x2733
je 0x510b95
cmp eax, edi
je 0x510bca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je case.0x510915.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
jmp 0x510ce7
mov edx, dword [esi + 0x3200]
lea edi, [esi + 0x31e4]
push edi
push edx
mov ecx, esi
call fcn.00550ec0
test eax, eax
je 0x510c0d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je case.0x510915.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x510ed9
mov eax, dword [esi + 0x84]
test eax, eax
je 0x510c1b
mov eax, dword [eax]
jmp 0x510c23
mov edx, dword [esi + 0x80]
mov eax, dword [edx]
lea ecx, [esi + 0x31f4]
push 0
lea edx, [esi + 0x31ec]
push ecx
push edx
push eax
mov eax, dword [esi + 0x30c4]
push edi
push eax
mov ecx, esi
call fcn.00551320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x30c]
push edi
call fcn.0056c17c
mov eax, dword [edi]
mov edx, dword [esi + 0x300]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x318], eax
jl case.0x510915.8
mov ecx, dword [0x66252c]
push 1
push ecx
mov ecx, esi
call fcn.004f72f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
jmp 0x510ed9
mov edx, dword [esi + 0x30cc]
mov eax, dword [esi + 0x30c4]
lea ebx, [esi + 0x30c4]
add edx, 0x5d8
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x510d11
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x3108], 1
call dword [edx + 0x18]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je case.0x510915.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je case.0x510915.8
mov ecx, dword [esi + 0x30cc]
mov dword [ecx + 0xf8], eax
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 + 0x30cc]
mov eax, dword [ebx]
add edx, 0x3d4
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x510f0f
mov eax, dword [esi + 0x84]
mov ecx, 1
cmp eax, edi
mov dword [esi + 0x3108], ecx
je 0x510d48
mov eax, dword [eax + 0x10]
jmp 0x510d51
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x24]
cmp eax, 2
jne 0x510e16
mov eax, dword [esi + 0xb0]
cmp dword [eax], edi
je 0x510d96
push edi
mov ecx, esi
call fcn.0050d8e0
cmp eax, edi
je case.0x510915.8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je case.0x510915.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
jmp 0x510ed7
mov edx, dword [esi + 0x3200]
lea edi, [esi + 0x31e4]
push edi
push edx
mov ecx, esi
call fcn.00550ec0
test eax, eax
je 0x510dd3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je case.0x510915.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x510ed9
mov eax, dword [esi + 0x84]
test eax, eax
je 0x510de1
mov eax, dword [eax]
jmp 0x510de9
mov edx, dword [esi + 0x80]
mov eax, dword [edx]
lea ecx, [esi + 0x31f4]
push 0
lea edx, [esi + 0x31ec]
push ecx
push edx
push eax
mov eax, dword [ebx]
push edi
push eax
mov ecx, esi
call fcn.00551320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x24], edi
jg 0x510ecf
jl 0x510e2a
cmp dword [esi + 0x20], edi
jae 0x510ecf
mov byte [ebp - 4], cl
mov ecx, dword [esi + 0x30cc]
push edi
add ecx, 0x48
call fcn.004f5c40
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x30cc]
push edx
call fcn.00518de0
cmp dword [esi + 8], edi
je 0x510e97
cmp eax, edi
je 0x510e97
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xac], edi
jne 0x510e97
mov eax, dword [eax + 0x60]
push esi
push eax
add ecx, 0x48
call fcn.004f6120
cmp eax, edi
jne 0x510ecc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
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 + 0x30cc]
push edi
push edi
push edi
push esi
add ecx, 0x48
call fcn.004f1800
cmp eax, edi
jne 0x510ecc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov dword [esi + 0x5c], 0xe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], edi
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x1c]
cmp eax, edi
je case.0x510915.8
mov ecx, dword [esi + 0x30cc]
mov dword [ecx + 0xf8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x30c]
push edi
call fcn.0056c17c
mov eax, dword [edi]
mov edx, dword [esi + 0x300]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x318], eax
jl case.0x510915.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
mov dword [esi + 0x3108], 1
call fcn.004f73c0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x3c]
add edi, eax
mov dword [esi + 0x20], edi
mov edx, dword [esi + 0x24]
adc edx, ecx
xor edi, edi
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
jmp 0x510ed7
mov edx, dword [esi + 0x30cc]
mov eax, dword [esi + 0x30c4]
lea ebx, [esi + 0x30c4]
add edx, 0x1d0
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
mov eax, dword [esi + 0x32c8]
je 0x510fde
cmp eax, 0x90312
je 0x510fc1
cmp eax, 0x80090318
je 0x510fc1
cmp eax, 0x90320
jne 0x511084
lea ecx, [esi + 0x31f4]
lea edx, [esi + 0x31ec]
push ecx
mov ecx, dword [ebx]
lea eax, [esi + 0x31e4]
push edx
push eax
push ecx
jmp 0x51107d
cmp eax, 0x90312
je 0x511041
cmp eax, 0x80090318
je 0x511041
cmp eax, 0x90320
je 0x511041
lea edi, [esi + 0x30c]
push edi
call fcn.0056c17c
mov eax, dword [edi]
mov edx, dword [esi + 0x300]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x318], eax
jl case.0x510915.8
mov edx, dword [0x66252c]
push 1
push edx
mov ecx, esi
call fcn.004f72f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x510ed9
mov ecx, dword [esi + 0x32d0]
cmp ecx, edi
je 0x511052
cmp eax, 0x80090318
jne 0x51105a
cmp dword [esi + 0x32d4], edi
je 0x511065
cmp ecx, edi
je 0x511084
cmp eax, 0x80090318
je 0x511084
lea edx, [esi + 0x31f4]
lea eax, [esi + 0x31ec]
push edx
mov edx, dword [ebx]
lea ecx, [esi + 0x31e4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00552f20
mov eax, dword [esi + 0x32c8]
cmp eax, 0x90312
je case.0x510915.8
cmp eax, 0x80090318
je case.0x510915.8
cmp eax, 0x90320
je case.0x510915.8
cmp eax, edi
jge 0x511118
mov eax, dword [esi + 0x80]
lea ecx, [esi + 0x31ec]
push ecx
call dword [eax + 0x350]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x30cc]
cmp dword [eax + 0xec], 2
je 0x5110fa
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je 0x5110fa
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je 0x5110fa
mov ecx, dword [esi + 0x30cc]
mov dword [ecx + 0xf8], eax
mov edx, dword [esi + 0x32cc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
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 + 0x32cc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi + 0x31ec]
push ecx
mov ecx, esi
call fcn.00551de0
cmp dword [esi + 0x24], edi
jg 0x5111ed
jl 0x511147
cmp dword [esi + 0x20], edi
jae 0x5111ed
mov ecx, dword [esi + 0x30cc]
push edi
add ecx, 0x48
mov byte [ebp - 4], 3
call fcn.004f5c40
mov ecx, dword [esi + 0x30cc]
push eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.00518de0
cmp dword [esi + 8], edi
je 0x5111b5
cmp eax, edi
je 0x5111b5
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xac], edi
jne 0x5111b5
mov edx, dword [eax + 0x60]
push esi
push edx
add ecx, 0x48
call fcn.004f6120
cmp eax, edi
jne 0x5111ea
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov dword [esi + 0x5c], 0xe
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 + 0x30cc]
push edi
push edi
push edi
push esi
add ecx, 0x48
call fcn.004f1800
cmp eax, edi
jne 0x5111ea
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], edi
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x510ed7
mov edx, dword [esi + 0x30cc]
mov eax, dword [esi + 0x30c4]
lea ebx, [esi + 0x30c4]
add edx, 0x1d0
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x51153a
mov ecx, esi
call fcn.00508480
mov edi, eax
cmp edi, 0x7571
je 0x510c8c
mov ecx, dword [esi + 0x30cc]
xor ebx, ebx
cmp dword [ecx + 0xec], ebx
jne 0x5112e4
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
or edx, eax
je 0x5112e4
mov eax, dword [esi + 0x3114]
push eax
call fcn.00518d60
cmp eax, ebx
jne 0x5112e4
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or ecx, eax
jne case.0x510915.8
mov edx, dword [esi + 0x30cc]
mov eax, dword [edx + 0x148]
cmp dword [edx + 0x14c], ebx
jl case.0x510915.8
jg 0x51129b
cmp eax, ebx
jbe case.0x510915.8
cmp dword [esi + 0x58], ebx
jne case.0x510915.8
mov al, byte [esi + 0x94]
test al, al
je 0x511738
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov ecx, dword [esi + 0x30cc]
mov eax, dword [ecx + 0x148]
mov ecx, dword [ecx + 0x14c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov ecx, esi
call fcn.00512e90
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 + 0x80]
mov al, byte [edx + 0x172]
test al, al
jne 0x51138d
cmp dword [esi + 0x3114], 0x191
jne 0x51138d
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
cmp eax, ebx
je 0x51132c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
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 + 0x80]
lea ecx, [esi + 0x3170]
push ebx
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [esi + 0x3178]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [esi + 0x3174]
push edx
add eax, 0x19c
push ecx
push eax
mov ecx, esi
call fcn.00513230
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x511374
mov ecx, esi
call fcn.0050de80
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
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 + 0xb0]
mov ebx, 2
cmp dword [ecx + 4], ebx
jne 0x51143d
cmp dword [esi + 0x3114], 0x197
jne 0x51143d
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x5113d6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
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 + 0xb0]
lea ecx, [esi + 0x3184]
push 1
push ecx
mov ecx, dword [eax + 0x118]
lea edx, [esi + 0x3194]
push edx
mov edx, dword [eax + 0x114]
push ecx
mov ecx, dword [esi + 0x3190]
push edx
add eax, 8
push ecx
push eax
mov ecx, esi
call fcn.00513230
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x511423
mov ecx, esi
call fcn.0050de80
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x1c]
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 + 0x3114]
cmp eax, 0x191
je 0x511451
cmp eax, 0x197
jne 0x511458
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test edi, edi
jne 0x511494
mov eax, dword [esi + 0x84]
test eax, eax
je 0x51146b
mov eax, dword [eax + 0x10]
jmp 0x511474
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x24]
cmp eax, ebx
jne case.0x510915.8
mov byte [esi + 0x32e0], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x2733
je 0x51153a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x30cc]
cmp dword [eax + 0xec], ebx
jne 0x511517
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
or ecx, edx
jne case.0x510915.8
mov edi, dword [eax + 0x14c]
mov ecx, dword [eax + 0x148]
xor edx, edx
cmp edi, edx
jl case.0x510915.8
jg 0x5114e3
cmp ecx, edx
jbe case.0x510915.8
cmp dword [esi + 0x58], edx
jne case.0x510915.8
mov al, byte [esi + 0x94]
test al, al
je 0x511738
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov edx, dword [esi + 0x30cc]
mov eax, dword [edx + 0x148]
mov ecx, dword [edx + 0x14c]
jmp 0x5112c6
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je case.0x510915.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x510ed9
lea edi, [esi + 0x30c]
push edi
call fcn.0056c17c
mov eax, dword [edi]
mov edx, dword [esi + 0x300]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x318], eax
jl case.0x510915.8
mov edx, dword [0x66252c]
push 1
push edx
mov ecx, esi
call fcn.004f72f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x510ed9
mov ecx, dword [esi + 0x30cc]
call fcn.00518f60
cmp eax, edi
je 0x5115de
push str.Reusing_connection._n
mov ecx, esi
call fcn.004f73c0
mov dword [esi + 8], 1
mov dword [esi + 0x38], edi
or eax, 0xffffffff
mov dword [esi + 0x3c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
mov ecx, esi
mov dword [esi + 0x5c], 0xe
call fcn.004f9430
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 + 0x30cc]
mov edx, dword [esi + 0x30c4]
add ecx, 0x1d0
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
mov ecx, dword [esi + 0x2b8]
mov dword [ebp - 0x18], eax
cmp ecx, edi
jg 0x5116b7
cmp eax, edi
jne 0x5116b7
mov eax, dword [esi + 0x84]
cmp eax, edi
je 0x511640
mov eax, dword [eax + 0x10]
jmp 0x511649
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x24]
cmp eax, 2
jne 0x511660
cmp dword [esi + 0x32dc], edi
ja 0x5116b7
mov al, byte [esi + 0x32e0]
test al, al
jne 0x5116b7
lea edi, [esi + 0x30c]
push edi
call fcn.0056c17c
mov eax, dword [edi]
mov ebx, dword [esi + 0x300]
mov ecx, dword [esi + 0x30cc]
sub eax, ebx
mov dword [esi + 0x318], eax
add esp, 4
mov edx, dword [ecx + 0xec]
sub edx, 2
neg edx
sbb edx, edx
and edx, 0xfffffef2
add edx, 0x12c
cmp eax, edx
jl case.0x510915.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
call fcn.004f73c0
jmp 0x5112cc
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x30c4]
lea edi, [esi + 0x30c4]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, esi
mov byte [esi + 0x32e0], 0
call fcn.004f8560
mov ebx, eax
mov al, byte [esi + 0x92]
test al, al
mov dword [ebp - 0x1c], ebx
je 0x5116fd
mov ecx, dword [esi + 0x30cc]
mov byte [esi + 0x92], 0
test ecx, ecx
je 0x5116fd
call fcn.005375d0
cmp ebx, 0xffffffff
jg 0x511ab3
cmp ebx, 0xfffffff9
jne 0x511777
mov edx, dword [esi + 0x30cc]
cmp dword [edx + 0xec], 2
jne 0x511750
mov eax, dword [esi + 0x24]
test eax, eax
jl 0x511750
jg 0x51172a
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x511750
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov dword [esi + 0x54], 0
mov dword [esi + 0x5c], 0xe
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]
mov ecx, esi
mov byte [esi + 0x90], 1
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xfffffff8
jne 0x51180d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x30cc]
test eax, eax
je case.0x510915.8
mov dword [eax + 0xf8], 0x753f
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0xe0]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
cmp ecx, edx
jne 0x5117ca
cmp ecx, 8
jle 0x5117ca
mov ecx, dword [esi + 0x30cc]
push 0xc8
call fcn.00518d60
mov ecx, dword [esi + 0x30cc]
mov eax, dword [esi + 0x60]
mov edx, dword [ecx + 0x68]
cmp edx, eax
jne case.0x510915.8
mov eax, dword [esi + 0x24]
add esi, 0x20
test eax, eax
jl case.0x510915.8
jg 0x5117f7
cmp dword [esi], 0
jbe case.0x510915.8
call fcn.005196d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xfffffff7
jne 0x511832
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xfffffffc
jne 0x511955
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne 0x511898
mov eax, dword [esi + 0x60]
test eax, eax
je 0x51185b
mov ecx, dword [esi + 0x30cc]
mov edx, dword [eax + 0x10]
mov dword [ecx + 0xfc], edx
mov eax, dword [esi + 0x30cc]
mov dword [eax + 0xf8], 0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x511880
mov dword [eax + 0x14], 1
mov dword [esi + 0x5c], 0xe
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 + 0x84]
test eax, eax
je 0x5118a9
mov ecx, 0x660ff8
jmp 0x5118b2
mov ecx, dword [esi + 0x80]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x5119ce
test eax, eax
je 0x5118c3
add eax, 4
jmp 0x5118d9
mov edx, dword [esi + 0x80]
lea ecx, [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call fcn.00586ba1
or dword [ebp - 0x14], 1
mov eax, dword [eax]
push str..mail.yahoo.com_
push eax
call fcn.0056ab30
add esp, 8
test eax, eax
jne 0x5118f7
mov al, byte [esi + 0x3126]
test al, al
je 0x51191b
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x24]
add eax, edi
adc ecx, edx
mov edx, dword [esi + 0x64]
mov edi, dword [edx]
cmp edi, eax
jne 0x51191b
mov edx, dword [edx + 4]
cmp edx, ecx
jne 0x51191b
mov bl, 1
jmp 0x51191d
xor bl, bl
test byte [ebp - 0x14], 1
je 0x511933
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
and al, 0xfe
mov dword [ebp - 0x14], eax
call fcn.00586b33
test bl, bl
je 0x5119ce
mov ecx, dword [esi + 0x30cc]
push 1
mov eax, dword [ecx + 0x14c]
mov edx, dword [ecx + 0x148]
push eax
jmp 0x511c87
cmp ebx, 0xfffffffb
jne 0x51197f
mov eax, dword [esi + 0x30cc]
mov ecx, esi
mov dword [eax + 0x38], 1
mov edx, dword [esi]
call dword [edx + 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xfffffffe
jne 0x5119b6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
add eax, ecx
mov dword [esi + 0x20], eax
mov ebx, dword [esi + 0x24]
adc ebx, edx
xor eax, eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
jmp 0x511b7e
cmp ebx, 0xfffffffd
je 0x5119f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x511b54
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov ecx, eax
or ecx, edi
jne 0x5119fc
mov edx, dword [esi]
mov ebx, dword [ebp - 0x1c]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x511b54
mov ecx, esi
call fcn.00512e90
jmp 0x511b7e
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
cmp ecx, eax
jne 0x511a35
cmp edx, edi
jne 0x511a35
test edx, edx
jl 0x511a35
jg 0x511a14
test ecx, ecx
jbe 0x511a35
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx + 0x2a0]
test eax, eax
je 0x511a35
mov eax, dword [esi + 0x30cc]
mov edx, dword [eax + 0x70]
push edx
push 0
call fcn.0054b210
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 0x3c]
xor edi, edi
cmp eax, edi
jl 0x511a77
jg 0x511a4c
cmp dword [esi + 0x38], edi
jbe 0x511a77
push edi
mov ecx, esi
call fcn.004f9430
mov ecx, dword [esi + 0x38]
mov ebx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
add ebx, ecx
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x24]
adc eax, edx
mov ecx, esi
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call fcn.004f9290
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je 0x511a95
mov ecx, dword [esi + 0x30cc]
mov dword [ecx + 0xf8], eax
cmp eax, 0x7569
jne 0x511b7e
mov ecx, dword [esi + 0x30cc]
mov edx, dword [ecx]
call dword [edx + 4]
mov ebx, dword [ebp - 0x1c]
jmp 0x511b54
test ebx, ebx
jle 0x511b7e
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x511b54
mov edi, dword [ecx]
mov ecx, dword [esi + 0x30cc]
push eax
add ecx, 0x48
call fcn.004f64b0
test eax, eax
jne case.0x510915.8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push 1
mov ecx, edi
mov dword [edi + 0x5c], 7
call fcn.004f9430
xor ecx, ecx
or eax, 0xffffffff
mov dword [edi + 0x38], ecx
mov dword [edi + 0x20], eax
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x24], eax
mov edx, dword [esi + 0x70]
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, ecx
je 0x511b27
push ecx
push 0x13f3
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x30cc]
call fcn.00518f60
test eax, eax
je 0x511b4d
mov edx, dword [edi]
lea eax, [edi + 0x30c4]
push eax
mov ecx, edi
mov dword [edi + 8], 1
call dword [edx + 0x10]
jmp 0x511b54
mov dword [edi + 0x5c], 0xe
test ebx, ebx
jle 0x511b7e
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or ecx, eax
jne 0x511b7e
mov al, byte [esi + 0x2bc]
test al, al
je 0x5116b7
mov al, byte [esi + 0x94]
test al, al
je 0x5116b7
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, ebx
or edx, ecx
je 0x511c44
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov eax, ebx
sub eax, edi
sbb ecx, edx
mov edx, dword [esi + 0x80]
add eax, 1
mov edx, dword [edx + 0x2c4]
adc ecx, 0
mov dword [ebp - 0x18], edx
test edx, edx
je 0x511bdb
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x20], edx
sub edx, 1
sbb edi, 0
cmp ebx, edx
jne 0x511bdb
cmp dword [esi + 0x34], edi
jne 0x511bdb
mov edi, dword [esi + 0x1c]
mov edx, dword [ebp - 0x20]
or edx, edi
je 0x511bdb
add eax, dword [ebp - 0x18]
adc ecx, 0
cmp eax, dword [esi + 0x38]
jne 0x511be5
cmp ecx, dword [esi + 0x3c]
je 0x511be9
or eax, ecx
jne 0x511c44
mov ecx, esi
call fcn.00507370
cmp dword [esi + 0x5c], 7
jne 0x511c44
mov ecx, dword [esi + 0x30cc]
call fcn.00518f60
xor edi, edi
cmp eax, edi
je 0x511c3d
push str.Reusing_connection._n
mov ecx, esi
call fcn.004f73c0
mov eax, 1
mov ecx, esi
mov dword [esi + 0x54], eax
mov dword [esi + 8], eax
mov dword [esi + 0x38], edi
or eax, 0xffffffff
mov dword [esi + 0x3c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
call dword [edx + 0x10]
jmp 0x511c44
mov dword [esi + 0x5c], 0xe
mov al, byte [esi + 0x2bc]
test al, al
je case.0x510915.8
mov al, byte [esi + 0x94]
test al, al
je case.0x510915.8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne case.0x510915.8
mov ecx, dword [esi + 0x30cc]
test ecx, ecx
je 0x51186b
mov edx, dword [esi + 0x64]
push 0
mov eax, dword [edx + 4]
push eax
mov edx, dword [edx]
push edx
call fcn.00536ae0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x51185b
jmp 0x51184c