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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad2b0
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.0x511fe5.8
xor ecx, ecx
mov cl, byte [eax + 0x51344c]
jmp dword [ecx*4 + 0x513428]
mov edx, dword [esi + 0x80]
fld qword [edx + 0x3b0]
fcomp qword [0x5da3b0]
fnstsw ax
test ah, 1
jne case.0x511fe5.8
lea eax, [ebp - 0x14]
push edi
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x30cc]
call fcn.0051a6c0
cmp eax, edi
je case.0x511fe5.8
mov edx, dword [esi + 0x30cc]
cmp dword [edx + 0xec], 2
je case.0x511fe5.8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jle case.0x511fe5.8
jmp 0x512c6d
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xec], edi
jne 0x5120b4
cmp dword [esi + 0x24], edi
jl 0x5120b4
jg 0x512065
cmp dword [esi + 0x20], edi
jbe 0x5120b4
cmp dword [esi + 0x78], 0x14
jle 0x5120b4
lea edi, [esi + 0x30c]
push edi
call fcn.0056dcfc
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 0x5120b2
mov ecx, dword [esi + 0x30cc]
push 0xc8
call fcn.0051a640
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 0x5120d1
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or eax, ecx
je 0x5120d1
xor ebx, ebx
jmp 0x5120d6
mov ebx, 1
lea edi, [esi + 0x30c]
push edi
call fcn.0056dcfc
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 0x512100
test ebx, ebx
jne 0x512127
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je case.0x511fe5.8
cmp dword [esi + 0x78], 4
jl 0x512127
mov ecx, dword [esi + 0x30cc]
call fcn.00519160
test eax, eax
jne case.0x511fe5.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je case.0x511fe5.8
mov ecx, dword [esi + 0x30cc]
cmp eax, 0x7569
mov dword [ecx + 0xf8], eax
jne case.0x511fe5.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 0x512324
mov ecx, esi
call fcn.0050fec0
cmp eax, 0x2733
je 0x512196
mov edx, dword [esi + 0xb0]
cmp dword [edx + 4], 2
jne 0x51224e
cmp dword [esi + 0x3114], 0x197
jne 0x51224e
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
cmp eax, edi
je 0x5121e8
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.00514970
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x512235
mov ecx, esi
call fcn.0050f550
push edi
mov ecx, esi
call fcn.0050efb0
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 0x512277
cmp dword [esi + 0x3114], 0xc8
jne 0x512277
mov dword [esi + 0x5c], 0x10
mov ecx, esi
call fcn.0050f6d0
cmp eax, 0x2733
je 0x512265
cmp eax, edi
je 0x51229a
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.0x511fe5.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
jmp 0x5123b7
mov edx, dword [esi + 0x3238]
lea edi, [esi + 0x31e4]
push edi
push edx
mov ecx, esi
call fcn.005529e0
test eax, eax
je 0x5122dd
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.0x511fe5.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x5125a9
mov eax, dword [esi + 0x84]
test eax, eax
je 0x5122eb
mov eax, dword [eax]
jmp 0x5122f3
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.00552e20
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.0056dcfc
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.0x511fe5.8
mov ecx, dword [0x6646c4]
push 1
push ecx
mov ecx, esi
call fcn.004f89b0
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 0x5125a9
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 0x5123e1
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.0x511fe5.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je case.0x511fe5.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 0x5125df
mov eax, dword [esi + 0x84]
mov ecx, 1
cmp eax, edi
mov dword [esi + 0x3108], ecx
je 0x512418
mov eax, dword [eax + 0x10]
jmp 0x512421
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x24]
cmp eax, 2
jne 0x5124e6
mov eax, dword [esi + 0xb0]
cmp dword [eax], edi
je 0x512466
push edi
mov ecx, esi
call fcn.0050efb0
cmp eax, edi
je case.0x511fe5.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.0x511fe5.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
jmp 0x5125a7
mov edx, dword [esi + 0x3238]
lea edi, [esi + 0x31e4]
push edi
push edx
mov ecx, esi
call fcn.005529e0
test eax, eax
je 0x5124a3
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.0x511fe5.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x5125a9
mov eax, dword [esi + 0x84]
test eax, eax
je 0x5124b1
mov eax, dword [eax]
jmp 0x5124b9
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.00552e20
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 0x51259f
jl 0x5124fa
cmp dword [esi + 0x20], edi
jae 0x51259f
mov byte [ebp - 4], cl
mov ecx, dword [esi + 0x30cc]
push edi
add ecx, 0x48
call fcn.004f72f0
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x30cc]
push edx
call fcn.0051a6c0
cmp dword [esi + 8], edi
je 0x512567
cmp eax, edi
je 0x512567
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xac], edi
jne 0x512567
mov eax, dword [eax + 0x60]
push esi
push eax
add ecx, 0x48
call fcn.004f77d0
cmp eax, edi
jne 0x51259c
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.004f2eb0
cmp eax, edi
jne 0x51259c
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.0x511fe5.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.0056dcfc
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.0x511fe5.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
mov dword [esi + 0x3108], 1
call fcn.004f8a80
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 0x5125a7
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 + 0x3300]
je 0x5126ae
cmp eax, 0x90312
je 0x512691
cmp eax, 0x80090318
je 0x512691
cmp eax, 0x90320
jne 0x512754
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 0x51274d
cmp eax, 0x90312
je 0x512711
cmp eax, 0x80090318
je 0x512711
cmp eax, 0x90320
je 0x512711
lea edi, [esi + 0x30c]
push edi
call fcn.0056dcfc
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.0x511fe5.8
mov edx, dword [0x6646c4]
push 1
push edx
mov ecx, esi
call fcn.004f89b0
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 0x5125a9
mov ecx, dword [esi + 0x3308]
cmp ecx, edi
je 0x512722
cmp eax, 0x80090318
jne 0x51272a
cmp dword [esi + 0x330c], edi
je 0x512735
cmp ecx, edi
je 0x512754
cmp eax, 0x80090318
je 0x512754
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.00554aa0
mov eax, dword [esi + 0x3300]
cmp eax, 0x90312
je case.0x511fe5.8
cmp eax, 0x80090318
je case.0x511fe5.8
cmp eax, 0x90320
je case.0x511fe5.8
cmp eax, edi
jge 0x5127e8
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 0x5127ca
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je 0x5127ca
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je 0x5127ca
mov ecx, dword [esi + 0x30cc]
mov dword [ecx + 0xf8], eax
mov edx, dword [esi + 0x3304]
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 + 0x3304]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi + 0x31ec]
push ecx
mov ecx, esi
call fcn.00553960
cmp dword [esi + 0x24], edi
jg 0x5128bd
jl 0x512817
cmp dword [esi + 0x20], edi
jae 0x5128bd
mov ecx, dword [esi + 0x30cc]
push edi
add ecx, 0x48
mov byte [ebp - 4], 3
call fcn.004f72f0
mov ecx, dword [esi + 0x30cc]
push eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.0051a6c0
cmp dword [esi + 8], edi
je 0x512885
cmp eax, edi
je 0x512885
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xac], edi
jne 0x512885
mov edx, dword [eax + 0x60]
push esi
push edx
add ecx, 0x48
call fcn.004f77d0
cmp eax, edi
jne 0x5128ba
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.004f2eb0
cmp eax, edi
jne 0x5128ba
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 0x5125a7
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 0x512c0a
mov ecx, esi
call fcn.00509b30
mov edi, eax
cmp edi, 0x7571
je 0x51235c
mov ecx, dword [esi + 0x30cc]
xor ebx, ebx
cmp dword [ecx + 0xec], ebx
jne 0x5129b4
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
or edx, eax
je 0x5129b4
mov eax, dword [esi + 0x3114]
push eax
call fcn.0051a640
cmp eax, ebx
jne 0x5129b4
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or ecx, eax
jne case.0x511fe5.8
mov edx, dword [esi + 0x30cc]
mov eax, dword [edx + 0x148]
cmp dword [edx + 0x14c], ebx
jl case.0x511fe5.8
jg 0x51296b
cmp eax, ebx
jbe case.0x511fe5.8
cmp dword [esi + 0x58], ebx
jne case.0x511fe5.8
mov al, byte [esi + 0x94]
test al, al
je 0x512e08
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.005145d0
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 0x512a5d
cmp dword [esi + 0x3114], 0x191
jne 0x512a5d
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
cmp eax, ebx
je 0x5129fc
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.00514970
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x512a44
mov ecx, esi
call fcn.0050f550
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 0x512b0d
cmp dword [esi + 0x3114], 0x197
jne 0x512b0d
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x512aa6
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.00514970
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x512af3
mov ecx, esi
call fcn.0050f550
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 0x512b21
cmp eax, 0x197
jne 0x512b28
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test edi, edi
jne 0x512b64
mov eax, dword [esi + 0x84]
test eax, eax
je 0x512b3b
mov eax, dword [eax + 0x10]
jmp 0x512b44
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x24]
cmp eax, ebx
jne case.0x511fe5.8
mov byte [esi + 0x3318], 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 0x512c0a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x30cc]
cmp dword [eax + 0xec], ebx
jne 0x512be7
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
or ecx, edx
jne case.0x511fe5.8
mov edi, dword [eax + 0x14c]
mov ecx, dword [eax + 0x148]
xor edx, edx
cmp edi, edx
jl case.0x511fe5.8
jg 0x512bb3
cmp ecx, edx
jbe case.0x511fe5.8
cmp dword [esi + 0x58], edx
jne case.0x511fe5.8
mov al, byte [esi + 0x94]
test al, al
je 0x512e08
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 0x512996
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je case.0x511fe5.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x5125a9
lea edi, [esi + 0x30c]
push edi
call fcn.0056dcfc
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.0x511fe5.8
mov edx, dword [0x6646c4]
push 1
push edx
mov ecx, esi
call fcn.004f89b0
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 0x5125a9
mov ecx, dword [esi + 0x30cc]
call fcn.0051a840
cmp eax, edi
je 0x512cae
push str.Reusing_connection._n
mov ecx, esi
call fcn.004f8a80
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.004faaf0
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 0x512d87
cmp eax, edi
jne 0x512d87
mov eax, dword [esi + 0x84]
cmp eax, edi
je 0x512d10
mov eax, dword [eax + 0x10]
jmp 0x512d19
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x24]
cmp eax, 2
jne 0x512d30
cmp dword [esi + 0x3314], edi
ja 0x512d87
mov al, byte [esi + 0x3318]
test al, al
jne 0x512d87
lea edi, [esi + 0x30c]
push edi
call fcn.0056dcfc
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.0x511fe5.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
call fcn.004f8a80
jmp 0x51299c
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 + 0x3318], 0
call fcn.004f9c20
mov ebx, eax
mov al, byte [esi + 0x92]
test al, al
mov dword [ebp - 0x1c], ebx
je 0x512dcd
mov ecx, dword [esi + 0x30cc]
mov byte [esi + 0x92], 0
test ecx, ecx
je 0x512dcd
call fcn.00538ea0
cmp ebx, 0xffffffff
jg 0x513194
cmp ebx, 0xfffffff9
jne 0x512e47
mov edx, dword [esi + 0x30cc]
cmp dword [edx + 0xec], 2
jne 0x512e20
mov eax, dword [esi + 0x24]
test eax, eax
jl 0x512e20
jg 0x512dfa
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x512e20
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 0x512edd
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x30cc]
test eax, eax
je case.0x511fe5.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 0x512e9a
cmp ecx, 8
jle 0x512e9a
mov ecx, dword [esi + 0x30cc]
push 0xc8
call fcn.0051a640
mov ecx, dword [esi + 0x30cc]
mov eax, dword [esi + 0x60]
mov edx, dword [ecx + 0x68]
cmp edx, eax
jne case.0x511fe5.8
mov eax, dword [esi + 0x24]
add esi, 0x20
test eax, eax
jl case.0x511fe5.8
jg 0x512ec7
cmp dword [esi], 0
jbe case.0x511fe5.8
call fcn.0051afb0
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 0x512f02
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 0x513036
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne 0x512f68
mov eax, dword [esi + 0x60]
test eax, eax
je 0x512f2b
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 0x512f50
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 0x512f79
mov ecx, 0x663188
jmp 0x512f82
mov ecx, dword [esi + 0x80]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x5130af
test eax, eax
je 0x512f93
add eax, 4
jmp 0x512fa9
mov edx, dword [esi + 0x80]
lea ecx, [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call fcn.0058872e
or dword [ebp - 0x14], 1
mov eax, dword [eax]
push str..mail.yahoo.com_
push eax
call fcn.0056c6b0
add esp, 8
test eax, eax
jne 0x512fc7
mov al, byte [esi + 0x3126]
test al, al
je 0x512feb
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 0x512feb
mov edx, dword [edx + 4]
cmp edx, ecx
jne 0x512feb
mov bl, 1
jmp 0x512fed
xor bl, bl
test byte [ebp - 0x14], 1
je 0x513003
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
and al, 0xfe
mov dword [ebp - 0x14], eax
call fcn.005886c0
test bl, bl
je 0x5130af
mov ecx, dword [esi + 0x30cc]
push 1
mov eax, dword [ecx + 0x14c]
mov edx, dword [ecx + 0x148]
push eax
push edx
call fcn.005383b0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x512f2b
jmp 0x512f1c
cmp ebx, 0xfffffffb
jne 0x513060
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 0x513097
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 0x51325f
cmp ebx, 0xfffffffd
je 0x5130d1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x513235
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov ecx, eax
or ecx, edi
jne 0x5130dd
mov edx, dword [esi]
mov ebx, dword [ebp - 0x1c]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x513235
mov ecx, esi
call fcn.005145d0
jmp 0x51325f
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
cmp ecx, eax
jne 0x513116
cmp edx, edi
jne 0x513116
test edx, edx
jl 0x513116
jg 0x5130f5
test ecx, ecx
jbe 0x513116
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx + 0x2a0]
test eax, eax
je 0x513116
mov eax, dword [esi + 0x30cc]
mov edx, dword [eax + 0x70]
push edx
push 0
call fcn.0054cd30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 0x3c]
xor edi, edi
cmp eax, edi
jl 0x513158
jg 0x51312d
cmp dword [esi + 0x38], edi
jbe 0x513158
push edi
mov ecx, esi
call fcn.004faaf0
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.004fa950
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je 0x513176
mov ecx, dword [esi + 0x30cc]
mov dword [ecx + 0xf8], eax
cmp eax, 0x7569
jne 0x51325f
mov ecx, dword [esi + 0x30cc]
mov edx, dword [ecx]
call dword [edx + 4]
mov ebx, dword [ebp - 0x1c]
jmp 0x513235
test ebx, ebx
jle 0x51325f
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x513235
mov edi, dword [ecx]
mov ecx, dword [esi + 0x30cc]
push eax
add ecx, 0x48
call fcn.004f7b60
test eax, eax
jne case.0x511fe5.8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push 1
mov ecx, edi
mov dword [edi + 0x5c], 7
call fcn.004faaf0
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 0x513208
push ecx
push 0x13f3
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x30cc]
call fcn.0051a840
test eax, eax
je 0x51322e
mov edx, dword [edi]
lea eax, [edi + 0x30c4]
push eax
mov ecx, edi
mov dword [edi + 8], 1
call dword [edx + 0x10]
jmp 0x513235
mov dword [edi + 0x5c], 0xe
test ebx, ebx
jle 0x51325f
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or ecx, eax
jne 0x51325f
mov al, byte [esi + 0x95]
test al, al
je 0x512d87
mov al, byte [esi + 0x94]
test al, al
je 0x512d87
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, ebx
or edx, ecx
je 0x513325
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 + 0x2c8]
adc ecx, 0
mov dword [ebp - 0x18], edx
test edx, edx
je 0x5132bc
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 0x5132bc
cmp dword [esi + 0x34], edi
jne 0x5132bc
mov edi, dword [esi + 0x1c]
mov edx, dword [ebp - 0x20]
or edx, edi
je 0x5132bc
add eax, dword [ebp - 0x18]
adc ecx, 0
cmp eax, dword [esi + 0x38]
jne 0x5132c6
cmp ecx, dword [esi + 0x3c]
je 0x5132ca
or eax, ecx
jne 0x513325
mov ecx, esi
call fcn.00508a20
cmp dword [esi + 0x5c], 7
jne 0x513325
mov ecx, dword [esi + 0x30cc]
call fcn.0051a840
xor edi, edi
cmp eax, edi
je 0x51331e
push str.Reusing_connection._n
mov ecx, esi
call fcn.004f8a80
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 0x513325
mov dword [esi + 0x5c], 0xe
mov al, byte [esi + 0x95]
test al, al
je case.0x511fe5.8
mov al, byte [esi + 0x94]
test al, al
je case.0x511fe5.8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne case.0x511fe5.8
mov ecx, dword [esi + 0x30cc]
test ecx, ecx
je 0x512f3b
mov edx, dword [esi + 0x64]
push 0
mov eax, dword [edx + 4]
push eax
mov edx, dword [edx]
push edx
call fcn.005383b0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x513384
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 ecx, dword [esi + 0x30cc]
mov eax, dword [ecx + 0xac]
test eax, eax
jne 0x512f3b
mov eax, dword [esi + 0x80]
mov edx, dword [eax + 0x120]
mov ecx, dword [eax + 0x124]
or edx, ecx
jne 0x512f3b
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx]
mov dword [eax + 0x120], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 0x124], ecx
jmp 0x512f3b