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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0b80
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.0x522385.8
xor ecx, ecx
mov cl, byte [eax + 0x5237ec]
jmp dword [ecx*4 + 0x5237c8]
mov edx, dword [esi + 0x80]
fld qword [edx + 0x3b0]
fcomp qword [0x5ee0b8]
fnstsw ax
test ah, 1
jne case.0x522385.8
lea eax, [ebp - 0x14]
push edi
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x30cc]
call fcn.0052ab20
cmp eax, edi
je case.0x522385.8
mov edx, dword [esi + 0x30cc]
cmp dword [edx + 0xec], 2
je case.0x522385.8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jle case.0x522385.8
jmp 0x52300d
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xec], edi
jne 0x522454
cmp dword [esi + 0x24], edi
jl 0x522454
jg 0x522405
cmp dword [esi + 0x20], edi
jbe 0x522454
cmp dword [esi + 0x78], 0x14
jle 0x522454
lea edi, [esi + 0x30c]
push edi
call fcn.005801dc
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 0x522452
mov ecx, dword [esi + 0x30cc]
push 0xc8
call fcn.0052aaa0
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 0x522471
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or eax, ecx
je 0x522471
xor ebx, ebx
jmp 0x522476
mov ebx, 1
lea edi, [esi + 0x30c]
push edi
call fcn.005801dc
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 0x5224a0
test ebx, ebx
jne 0x5224c7
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je case.0x522385.8
cmp dword [esi + 0x78], 4
jl 0x5224c7
mov ecx, dword [esi + 0x30cc]
call fcn.005295c0
test eax, eax
jne case.0x522385.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je case.0x522385.8
mov ecx, dword [esi + 0x30cc]
cmp eax, 0x7569
mov dword [ecx + 0xf8], eax
jne case.0x522385.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 0x5226c4
mov ecx, esi
call fcn.00520260
cmp eax, 0x2733
je 0x522536
mov edx, dword [esi + 0xb0]
cmp dword [edx + 4], 2
jne 0x5225ee
cmp dword [esi + 0x3114], 0x197
jne 0x5225ee
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
cmp eax, edi
je 0x522588
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.00524d00
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x5225d5
mov ecx, esi
call fcn.0051f8f0
push edi
mov ecx, esi
call fcn.0051f350
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 0x522617
cmp dword [esi + 0x3114], 0xc8
jne 0x522617
mov dword [esi + 0x5c], 0x10
mov ecx, esi
call fcn.0051fa70
cmp eax, 0x2733
je 0x522605
cmp eax, edi
je 0x52263a
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.0x522385.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
jmp 0x522757
mov edx, dword [esi + 0x3238]
lea edi, [esi + 0x31e4]
push edi
push edx
mov ecx, esi
call fcn.005639f0
test eax, eax
je 0x52267d
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.0x522385.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x522949
mov eax, dword [esi + 0x84]
test eax, eax
je 0x52268b
mov eax, dword [eax]
jmp 0x522693
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.00563e30
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.005801dc
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.0x522385.8
mov ecx, dword [0x67b0bc]
push 1
push ecx
mov ecx, esi
call fcn.00508cb0
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 0x522949
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 0x522781
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.0x522385.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je case.0x522385.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 0x52297f
mov eax, dword [esi + 0x84]
mov ecx, 1
cmp eax, edi
mov dword [esi + 0x3108], ecx
je 0x5227b8
mov eax, dword [eax + 0x10]
jmp 0x5227c1
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x24]
cmp eax, 2
jne 0x522886
mov eax, dword [esi + 0xb0]
cmp dword [eax], edi
je 0x522806
push edi
mov ecx, esi
call fcn.0051f350
cmp eax, edi
je case.0x522385.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.0x522385.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
jmp 0x522947
mov edx, dword [esi + 0x3238]
lea edi, [esi + 0x31e4]
push edi
push edx
mov ecx, esi
call fcn.005639f0
test eax, eax
je 0x522843
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.0x522385.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x522949
mov eax, dword [esi + 0x84]
test eax, eax
je 0x522851
mov eax, dword [eax]
jmp 0x522859
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.00563e30
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 0x52293f
jl 0x52289a
cmp dword [esi + 0x20], edi
jae 0x52293f
mov byte [ebp - 4], cl
mov ecx, dword [esi + 0x30cc]
push edi
add ecx, 0x48
call fcn.00507570
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x30cc]
push edx
call fcn.0052ab20
cmp dword [esi + 8], edi
je 0x522907
cmp eax, edi
je 0x522907
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xac], edi
jne 0x522907
mov eax, dword [eax + 0x60]
push esi
push eax
add ecx, 0x48
call fcn.00507a50
cmp eax, edi
jne 0x52293c
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.00502930
cmp eax, edi
jne 0x52293c
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.0x522385.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.005801dc
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.0x522385.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
mov dword [esi + 0x3108], 1
call fcn.00508d80
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 0x522947
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 0x522a4e
cmp eax, 0x90312
je 0x522a31
cmp eax, 0x80090318
je 0x522a31
cmp eax, 0x90320
jne 0x522af4
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 0x522aed
cmp eax, 0x90312
je 0x522ab1
cmp eax, 0x80090318
je 0x522ab1
cmp eax, 0x90320
je 0x522ab1
lea edi, [esi + 0x30c]
push edi
call fcn.005801dc
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.0x522385.8
mov edx, dword [0x67b0bc]
push 1
push edx
mov ecx, esi
call fcn.00508cb0
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 0x522949
mov ecx, dword [esi + 0x3308]
cmp ecx, edi
je 0x522ac2
cmp eax, 0x80090318
jne 0x522aca
cmp dword [esi + 0x330c], edi
je 0x522ad5
cmp ecx, edi
je 0x522af4
cmp eax, 0x80090318
je 0x522af4
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.00565ab0
mov eax, dword [esi + 0x3300]
cmp eax, 0x90312
je case.0x522385.8
cmp eax, 0x80090318
je case.0x522385.8
cmp eax, 0x90320
je case.0x522385.8
cmp eax, edi
jge 0x522b88
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 0x522b6a
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je 0x522b6a
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je 0x522b6a
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.00564970
cmp dword [esi + 0x24], edi
jg 0x522c5d
jl 0x522bb7
cmp dword [esi + 0x20], edi
jae 0x522c5d
mov ecx, dword [esi + 0x30cc]
push edi
add ecx, 0x48
mov byte [ebp - 4], 3
call fcn.00507570
mov ecx, dword [esi + 0x30cc]
push eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.0052ab20
cmp dword [esi + 8], edi
je 0x522c25
cmp eax, edi
je 0x522c25
mov ecx, dword [esi + 0x30cc]
cmp dword [ecx + 0xac], edi
jne 0x522c25
mov edx, dword [eax + 0x60]
push esi
push edx
add ecx, 0x48
call fcn.00507a50
cmp eax, edi
jne 0x522c5a
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.00502930
cmp eax, edi
jne 0x522c5a
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 0x522947
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 0x522faa
mov ecx, esi
call fcn.00519e90
mov edi, eax
cmp edi, 0x7571
je 0x5226fc
mov ecx, dword [esi + 0x30cc]
xor ebx, ebx
cmp dword [ecx + 0xec], ebx
jne 0x522d54
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
or edx, eax
je 0x522d54
mov eax, dword [esi + 0x3114]
push eax
call fcn.0052aaa0
cmp eax, ebx
jne 0x522d54
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or ecx, eax
jne case.0x522385.8
mov edx, dword [esi + 0x30cc]
mov eax, dword [edx + 0x148]
cmp dword [edx + 0x14c], ebx
jl case.0x522385.8
jg 0x522d0b
cmp eax, ebx
jbe case.0x522385.8
cmp dword [esi + 0x58], ebx
jne case.0x522385.8
mov al, byte [esi + 0x94]
test al, al
je 0x5231a8
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.00524970
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 0x522dfd
cmp dword [esi + 0x3114], 0x191
jne 0x522dfd
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
cmp eax, ebx
je 0x522d9c
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.00524d00
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x522de4
mov ecx, esi
call fcn.0051f8f0
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 0x522ead
cmp dword [esi + 0x3114], 0x197
jne 0x522ead
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x522e46
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.00524d00
mov edx, dword [esi + 0x3138]
mov eax, dword [esi + 0x313c]
or edx, eax
je 0x522e93
mov ecx, esi
call fcn.0051f8f0
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 0x522ec1
cmp eax, 0x197
jne 0x522ec8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test edi, edi
jne 0x522f04
mov eax, dword [esi + 0x84]
test eax, eax
je 0x522edb
mov eax, dword [eax + 0x10]
jmp 0x522ee4
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x24]
cmp eax, ebx
jne case.0x522385.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 0x522faa
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x30cc]
cmp dword [eax + 0xec], ebx
jne 0x522f87
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
or ecx, edx
jne case.0x522385.8
mov edi, dword [eax + 0x14c]
mov ecx, dword [eax + 0x148]
xor edx, edx
cmp edi, edx
jl case.0x522385.8
jg 0x522f53
cmp ecx, edx
jbe case.0x522385.8
cmp dword [esi + 0x58], edx
jne case.0x522385.8
mov al, byte [esi + 0x94]
test al, al
je 0x5231a8
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 0x522d36
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je case.0x522385.8
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jmp 0x522949
lea edi, [esi + 0x30c]
push edi
call fcn.005801dc
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.0x522385.8
mov edx, dword [0x67b0bc]
push 1
push edx
mov ecx, esi
call fcn.00508cb0
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 0x522949
mov ecx, dword [esi + 0x30cc]
call fcn.0052aca0
cmp eax, edi
je 0x52304e
push str.Reusing_connection._n
mov ecx, esi
call fcn.00508d80
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.0050ae70
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 0x523127
cmp eax, edi
jne 0x523127
mov eax, dword [esi + 0x84]
cmp eax, edi
je 0x5230b0
mov eax, dword [eax + 0x10]
jmp 0x5230b9
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x24]
cmp eax, 2
jne 0x5230d0
cmp dword [esi + 0x3314], edi
ja 0x523127
mov al, byte [esi + 0x3318]
test al, al
jne 0x523127
lea edi, [esi + 0x30c]
push edi
call fcn.005801dc
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.0x522385.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
call fcn.00508d80
jmp 0x522d3c
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.00509f20
mov ebx, eax
mov al, byte [esi + 0x92]
test al, al
mov dword [ebp - 0x1c], ebx
je 0x52316d
mov ecx, dword [esi + 0x30cc]
mov byte [esi + 0x92], 0
test ecx, ecx
je 0x52316d
call fcn.00549730
cmp ebx, 0xffffffff
jg 0x523534
cmp ebx, 0xfffffff9
jne 0x5231e7
mov edx, dword [esi + 0x30cc]
cmp dword [edx + 0xec], 2
jne 0x5231c0
mov eax, dword [esi + 0x24]
test eax, eax
jl 0x5231c0
jg 0x52319a
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x5231c0
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 0x52327d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x30cc]
test eax, eax
je case.0x522385.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 0x52323a
cmp ecx, 8
jle 0x52323a
mov ecx, dword [esi + 0x30cc]
push 0xc8
call fcn.0052aaa0
mov ecx, dword [esi + 0x30cc]
mov eax, dword [esi + 0x60]
mov edx, dword [ecx + 0x68]
cmp edx, eax
jne case.0x522385.8
mov eax, dword [esi + 0x24]
add esi, 0x20
test eax, eax
jl case.0x522385.8
jg 0x523267
cmp dword [esi], 0
jbe case.0x522385.8
call fcn.0052b510
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 0x5232a2
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 0x5233d6
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne 0x523308
mov eax, dword [esi + 0x60]
test eax, eax
je 0x5232cb
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 0x5232f0
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 0x523319
mov ecx, 0x679a18
jmp 0x523322
mov ecx, dword [esi + 0x80]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x52344f
test eax, eax
je 0x523333
add eax, 4
jmp 0x523349
mov edx, dword [esi + 0x80]
lea ecx, [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call fcn.0059adab
or dword [ebp - 0x14], 1
mov eax, dword [eax]
push str..mail.yahoo.com_
push eax
call fcn.0057ea00
add esp, 8
test eax, eax
jne 0x523367
mov al, byte [esi + 0x3126]
test al, al
je 0x52338b
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 0x52338b
mov edx, dword [edx + 4]
cmp edx, ecx
jne 0x52338b
mov bl, 1
jmp 0x52338d
xor bl, bl
test byte [ebp - 0x14], 1
je 0x5233a3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
and al, 0xfe
mov dword [ebp - 0x14], eax
call fcn.0059ad3d
test bl, bl
je 0x52344f
mov ecx, dword [esi + 0x30cc]
push 1
mov eax, dword [ecx + 0x14c]
mov edx, dword [ecx + 0x148]
push eax
push edx
call fcn.00548c50
mov eax, dword [esi + 0x60]
test eax, eax
je 0x5232cb
jmp 0x5232bc
cmp ebx, 0xfffffffb
jne 0x523400
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 0x523437
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 0x5235ff
cmp ebx, 0xfffffffd
je 0x523471
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x5235d5
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov ecx, eax
or ecx, edi
jne 0x52347d
mov edx, dword [esi]
mov ebx, dword [ebp - 0x1c]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x5235d5
mov ecx, esi
call fcn.00524970
jmp 0x5235ff
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
cmp ecx, eax
jne 0x5234b6
cmp edx, edi
jne 0x5234b6
test edx, edx
jl 0x5234b6
jg 0x523495
test ecx, ecx
jbe 0x5234b6
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx + 0x2a0]
test eax, eax
je 0x5234b6
mov eax, dword [esi + 0x30cc]
mov edx, dword [eax + 0x70]
push edx
push 0
call fcn.0055dd40
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 0x3c]
xor edi, edi
cmp eax, edi
jl 0x5234f8
jg 0x5234cd
cmp dword [esi + 0x38], edi
jbe 0x5234f8
push edi
mov ecx, esi
call fcn.0050ae70
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.0050ac50
mov edx, dword [esi]
lea eax, [esi + 0x30c4]
push eax
mov ecx, esi
call dword [edx + 0x10]
cmp eax, edi
je 0x523516
mov ecx, dword [esi + 0x30cc]
mov dword [ecx + 0xf8], eax
cmp eax, 0x7569
jne 0x5235ff
mov ecx, dword [esi + 0x30cc]
mov edx, dword [ecx]
call dword [edx + 4]
mov ebx, dword [ebp - 0x1c]
jmp 0x5235d5
test ebx, ebx
jle 0x5235ff
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x5235d5
mov edi, dword [ecx]
mov ecx, dword [esi + 0x30cc]
push eax
add ecx, 0x48
call fcn.00507de0
test eax, eax
jne case.0x522385.8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push 1
mov ecx, edi
mov dword [edi + 0x5c], 7
call fcn.0050ae70
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 0x5235a8
push ecx
push 0x13f3
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x30cc]
call fcn.0052aca0
test eax, eax
je 0x5235ce
mov edx, dword [edi]
lea eax, [edi + 0x30c4]
push eax
mov ecx, edi
mov dword [edi + 8], 1
call dword [edx + 0x10]
jmp 0x5235d5
mov dword [edi + 0x5c], 0xe
test ebx, ebx
jle 0x5235ff
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or ecx, eax
jne 0x5235ff
mov al, byte [esi + 0x95]
test al, al
je 0x523127
mov al, byte [esi + 0x94]
test al, al
je 0x523127
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, ebx
or edx, ecx
je 0x5236c5
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 0x52365c
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 0x52365c
cmp dword [esi + 0x34], edi
jne 0x52365c
mov edi, dword [esi + 0x1c]
mov edx, dword [ebp - 0x20]
or edx, edi
je 0x52365c
add eax, dword [ebp - 0x18]
adc ecx, 0
cmp eax, dword [esi + 0x38]
jne 0x523666
cmp ecx, dword [esi + 0x3c]
je 0x52366a
or eax, ecx
jne 0x5236c5
mov ecx, esi
call fcn.00518d80
cmp dword [esi + 0x5c], 7
jne 0x5236c5
mov ecx, dword [esi + 0x30cc]
call fcn.0052aca0
xor edi, edi
cmp eax, edi
je 0x5236be
push str.Reusing_connection._n
mov ecx, esi
call fcn.00508d80
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 0x5236c5
mov dword [esi + 0x5c], 0xe
mov al, byte [esi + 0x95]
test al, al
je case.0x522385.8
mov al, byte [esi + 0x94]
test al, al
je case.0x522385.8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne case.0x522385.8
mov ecx, dword [esi + 0x30cc]
test ecx, ecx
je 0x5232db
mov edx, dword [esi + 0x64]
push 0
mov eax, dword [edx + 4]
push eax
mov edx, dword [edx]
push edx
call fcn.00548c50
mov eax, dword [esi + 0x60]
test eax, eax
je 0x523724
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 0x5232db
mov eax, dword [esi + 0x80]
mov edx, dword [eax + 0x120]
mov ecx, dword [eax + 0x124]
or edx, ecx
jne 0x5232db
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 0x5232db