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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], esi
cmp eax, 0x10
mov dword [ebp - 4], ebx
ja case.0x500682.8
xor ecx, ecx
mov cl, byte [eax + 0x5019a0]
jmp dword [ecx*4 + 0x50197c]
mov edx, dword [esi + 0x80]
fld qword [edx + 0x340]
fcomp qword [0x5b8fa8]
fnstsw ax
test ah, 1
jne case.0x500682.8
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x308c]
call fcn.00507980
cmp eax, ebx
je case.0x500682.8
mov edx, dword [esi + 0x308c]
cmp dword [edx + 0xcc], 2
je case.0x500682.8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jle case.0x500682.8
jmp 0x5012c6
mov ecx, dword [esi + 0x308c]
cmp dword [ecx + 0xcc], ebx
jne 0x500753
mov eax, dword [esi + 0x24]
test eax, eax
jl 0x500753
jg 0x500706
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x500753
cmp dword [esi + 0x78], 0x14
jle 0x500753
lea ebx, [esi + 0x2cc]
push ebx
call fcn.0054f68f
mov eax, dword [ebx]
mov edx, dword [esi + 0x2c0]
mov ecx, dword [esi + 0x74]
sub eax, edx
add esp, 4
cmp eax, ecx
mov dword [esi + 0x2d8], eax
jl 0x500753
mov ecx, dword [esi + 0x308c]
push 0xc8
call fcn.00507900
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 + 0x308c]
cmp dword [edx + 0xcc], 2
jne 0x500770
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or eax, ecx
je 0x500770
xor edi, edi
jmp 0x500775
mov edi, 1
lea ebx, [esi + 0x2cc]
push ebx
call fcn.0054f68f
mov eax, dword [ebx]
mov edx, dword [esi + 0x2c0]
mov ecx, dword [esi + 0x74]
sub eax, edx
add esp, 4
cmp eax, ecx
mov dword [esi + 0x2d8], eax
jl 0x50079f
test edi, edi
jne 0x5007c6
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je case.0x500682.8
cmp dword [esi + 0x78], 4
jl 0x5007c6
mov ecx, dword [esi + 0x308c]
call fcn.00506720
test eax, eax
jne case.0x500682.8
mov edx, dword [esi]
lea eax, [esi + 0x3084]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je case.0x500682.8
mov ecx, dword [esi + 0x308c]
cmp eax, 0x7569
mov dword [ecx + 0xd8], eax
jne case.0x500682.8
mov ecx, dword [esi + 0x308c]
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 + 0x308c]
mov ecx, dword [esi + 0x3084]
lea edi, [esi + 0x3084]
add eax, 0x1a8
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x5009ba
mov ecx, esi
call fcn.004fe8a0
cmp eax, 0x2733
je 0x500835
mov edx, dword [esi + 0xa4]
cmp dword [edx + 4], 2
jne 0x5008ed
cmp dword [esi + 0x30cc], 0x197
jne 0x5008ed
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
cmp eax, ebx
je 0x500887
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 + 0xa4]
lea ecx, [esi + 0x3124]
push 1
push ecx
mov ecx, dword [eax + 0x118]
lea edx, [esi + 0x3134]
push edx
mov edx, dword [eax + 0x114]
push ecx
mov ecx, dword [esi + 0x3130]
push edx
add eax, 8
push ecx
push eax
mov ecx, esi
call fcn.005027c0
mov edx, dword [esi + 0x30e8]
mov eax, dword [esi + 0x30ec]
or edx, eax
je 0x5008d4
mov ecx, esi
call fcn.004fe000
push ebx
mov ecx, esi
call fcn.004fdb20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jne 0x500916
cmp dword [esi + 0x30cc], 0xc8
jne 0x500916
mov dword [esi + 0x5c], 0x10
mov ecx, esi
call fcn.004fe170
cmp eax, 0x2733
je 0x500904
cmp eax, ebx
je 0x500940
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.0x500682.8
mov edx, dword [esi]
lea eax, [esi + 0x3084]
push eax
mov ecx, esi
call dword [edx + 0x10]
cmp eax, ebx
jmp 0x500c0f
mov edx, dword [esi + 0x31a0]
lea ebx, [esi + 0x3184]
push ebx
push edx
mov ecx, esi
call fcn.00534860
test eax, eax
je 0x500981
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.0x500682.8
mov edx, dword [esi]
lea eax, [esi + 0x3084]
push eax
mov ecx, esi
call dword [edx + 0x10]
jmp 0x500c0d
mov ecx, dword [esi + 0x80]
lea edx, [esi + 0x3194]
push 0
push edx
mov edx, dword [ecx]
lea eax, [esi + 0x318c]
push eax
mov eax, dword [esi + 0x3084]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00534c10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x2cc]
push ebx
call fcn.0054f68f
mov eax, dword [ebx]
mov edx, dword [esi + 0x2c0]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x2d8], eax
jl case.0x500682.8
mov ecx, dword [0x63f478]
push 1
push ecx
mov ecx, esi
call fcn.004e9db0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
jmp 0x500c0d
mov edx, dword [esi + 0x308c]
mov eax, dword [esi + 0x3084]
lea ebx, [esi + 0x3084]
add edx, 0x5b0
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x500a75
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x30c0], 1
call dword [edx + 0x18]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je case.0x500682.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je case.0x500682.8
mov ecx, dword [esi + 0x308c]
mov dword [ecx + 0xd8], 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 + 0x308c]
mov eax, dword [ebx]
add edx, 0x3ac
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x500c45
mov ecx, dword [esi + 0x80]
mov eax, 1
mov dword [esi + 0x30c0], eax
cmp dword [ecx + 0x24], 2
jne 0x500b3b
mov edx, dword [esi + 0xa4]
cmp dword [edx], 0
je 0x500acb
push 0
mov ecx, esi
call fcn.004fdb20
test eax, eax
je case.0x500682.8
jmp 0x500ae4
mov edx, dword [esi + 0x31a0]
lea edi, [esi + 0x3184]
push edi
push edx
mov ecx, esi
call fcn.00534860
test eax, eax
je 0x500b06
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.0x500682.8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
jmp 0x500c0d
mov ecx, dword [esi + 0x80]
lea edx, [esi + 0x3194]
push 0
push edx
mov edx, dword [ecx]
lea eax, [esi + 0x318c]
push eax
mov eax, dword [ebx]
push edx
push edi
push eax
mov ecx, esi
call fcn.00534c10
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 + 0x24]
test ecx, ecx
jg 0x500c04
jl 0x500b53
mov ecx, dword [esi + 0x20]
test ecx, ecx
jae 0x500c04
mov ecx, dword [esi + 0x308c]
push 0
add ecx, 0x48
mov byte [ebp - 4], al
call fcn.004e88a0
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x308c]
push edx
call fcn.00507980
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x500bc5
test eax, eax
je 0x500bc5
mov ecx, dword [esi + 0x308c]
mov edx, dword [ecx + 0x8c]
test edx, edx
jne 0x500bc5
mov eax, dword [eax + 0x60]
push esi
push eax
add ecx, 0x48
call fcn.004e8d70
test eax, eax
jne 0x500bfd
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 + 0x308c]
push 0
push 0
push 0
push esi
add ecx, 0x48
call fcn.004e57b0
test eax, eax
jne 0x500bfd
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], 0
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x1c]
test eax, eax
je case.0x500682.8
mov ecx, dword [esi + 0x308c]
mov dword [ecx + 0xd8], 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 + 0x2cc]
push edi
call fcn.0054f68f
mov eax, dword [edi]
mov edx, dword [esi + 0x2c0]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x2d8], eax
jl case.0x500682.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
mov dword [esi + 0x30c0], 1
call fcn.004e9e80
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]
cmp eax, edi
jmp 0x500c0f
mov edx, dword [esi + 0x308c]
mov eax, dword [esi + 0x3084]
lea ebx, [esi + 0x3084]
add edx, 0x1a8
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
mov eax, dword [esi + 0x3268]
je 0x500d16
cmp eax, 0x90312
je 0x500cf9
cmp eax, 0x80090318
je 0x500cf9
cmp eax, 0x90320
jne 0x500dbc
lea ecx, [esi + 0x3194]
lea edx, [esi + 0x318c]
push ecx
mov ecx, dword [ebx]
lea eax, [esi + 0x3184]
push edx
push eax
push ecx
jmp 0x500db5
cmp eax, 0x90312
je 0x500d77
cmp eax, 0x80090318
je 0x500d77
cmp eax, 0x90320
je 0x500d77
lea edi, [esi + 0x2cc]
push edi
call fcn.0054f68f
mov eax, dword [edi]
mov edx, dword [esi + 0x2c0]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x2d8], eax
jl case.0x500682.8
mov edx, dword [0x63f478]
push 1
push edx
mov ecx, esi
call fcn.004e9db0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
jmp 0x500c0d
mov ecx, dword [esi + 0x3270]
test ecx, ecx
je 0x500d88
cmp eax, 0x80090318
jne 0x500d92
mov edx, dword [esi + 0x3274]
test edx, edx
je 0x500d9d
test ecx, ecx
je 0x500dbc
cmp eax, 0x80090318
je 0x500dbc
lea edx, [esi + 0x3194]
lea eax, [esi + 0x318c]
push edx
mov edx, dword [ebx]
lea ecx, [esi + 0x3184]
push eax
push ecx
push edx
mov ecx, esi
call fcn.005364f0
mov eax, dword [esi + 0x3268]
cmp eax, 0x90312
je case.0x500682.8
cmp eax, 0x80090318
je case.0x500682.8
cmp eax, 0x90320
je case.0x500682.8
test eax, eax
jge 0x500e50
mov eax, dword [esi + 0x80]
lea ecx, [esi + 0x318c]
push ecx
call dword [eax + 0x2e0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x308c]
cmp dword [eax + 0xcc], 2
je 0x500e32
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
or ecx, eax
je 0x500e32
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je 0x500e32
mov ecx, dword [esi + 0x308c]
mov dword [ecx + 0xd8], eax
mov edx, dword [esi + 0x326c]
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 + 0x326c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi + 0x318c]
push ecx
mov ecx, esi
call fcn.005354e0
mov eax, dword [esi + 0x24]
test eax, eax
jg 0x500f1a
jl 0x500e83
mov eax, dword [esi + 0x20]
test eax, eax
jae 0x500f1a
mov ecx, dword [esi + 0x308c]
push 0
add ecx, 0x48
mov byte [ebp - 4], 3
call fcn.004e88a0
mov ecx, dword [esi + 0x308c]
push eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.00507980
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x500ef6
test eax, eax
je 0x500ef6
mov ecx, dword [esi + 0x308c]
mov edx, dword [ecx + 0x8c]
test edx, edx
jne 0x500ef6
mov edx, dword [eax + 0x60]
push esi
push edx
add ecx, 0x48
call fcn.004e8d70
test eax, eax
jne 0x500f13
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 + 0x308c]
push 0
push 0
push 0
push esi
add ecx, 0x48
call fcn.004e57b0
test eax, eax
je 0x50157b
mov dword [ebp - 4], 0
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x500c0d
mov edx, dword [esi + 0x308c]
mov eax, dword [esi + 0x3084]
lea edi, [esi + 0x3084]
add edx, 0x1a8
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x501265
mov ecx, esi
call fcn.004f9280
mov ebx, eax
cmp ebx, 0x7571
jne 0x500f87
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
jmp 0x500c0d
mov ecx, dword [esi + 0x308c]
xor edi, edi
cmp dword [ecx + 0xcc], edi
jne 0x501022
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
or edx, eax
je 0x501022
mov eax, dword [esi + 0x30cc]
push eax
call fcn.00507900
cmp eax, edi
jne 0x501022
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or ecx, eax
jne case.0x500682.8
mov edx, dword [esi + 0x308c]
mov eax, dword [edx + 0x120]
cmp dword [edx + 0x124], edi
jl case.0x500682.8
jg 0x500fd9
cmp eax, edi
jbe case.0x500682.8
cmp dword [esi + 0x58], edi
jne case.0x500682.8
mov al, byte [esi + 0x90]
test al, al
je 0x501448
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov ecx, dword [esi + 0x308c]
mov eax, dword [ecx + 0x120]
mov ecx, dword [ecx + 0x124]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov ecx, esi
call fcn.00502420
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 + 0x167]
test al, al
jne 0x5010cb
cmp dword [esi + 0x30cc], 0x191
jne 0x5010cb
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
cmp eax, edi
je 0x50106a
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 + 0x3110]
push edi
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [esi + 0x3118]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [esi + 0x3114]
push edx
add eax, 0x190
push ecx
push eax
mov ecx, esi
call fcn.005027c0
mov edx, dword [esi + 0x30e8]
mov eax, dword [esi + 0x30ec]
or edx, eax
je 0x5010b2
mov ecx, esi
call fcn.004fe000
mov eax, dword [esi]
push edi
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 + 0xa4]
mov edi, 2
cmp dword [ecx + 4], edi
jne 0x50117b
cmp dword [esi + 0x30cc], 0x197
jne 0x50117b
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x501114
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 + 0xa4]
lea ecx, [esi + 0x3124]
push 1
push ecx
mov ecx, dword [eax + 0x118]
lea edx, [esi + 0x3134]
push edx
mov edx, dword [eax + 0x114]
push ecx
mov ecx, dword [esi + 0x3130]
push edx
add eax, 8
push ecx
push eax
mov ecx, esi
call fcn.005027c0
mov edx, dword [esi + 0x30e8]
mov eax, dword [esi + 0x30ec]
or edx, eax
je 0x501161
mov ecx, esi
call fcn.004fe000
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 + 0x30cc]
cmp eax, 0x191
je 0x50118f
cmp eax, 0x197
jne 0x501196
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test ebx, ebx
jne 0x5011c1
mov eax, dword [esi + 0x80]
cmp dword [eax + 0x24], edi
jne case.0x500682.8
mov byte [esi + 0x3280], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x2733
je 0x501265
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x308c]
cmp dword [eax + 0xcc], edi
jne 0x501244
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
or ecx, edx
jne case.0x500682.8
mov edi, dword [eax + 0x124]
mov ecx, dword [eax + 0x120]
xor edx, edx
cmp edi, edx
jl case.0x500682.8
jg 0x501210
cmp ecx, edx
jbe case.0x500682.8
cmp dword [esi + 0x58], edx
jne case.0x500682.8
mov al, byte [esi + 0x90]
test al, al
je 0x501448
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov edx, dword [esi + 0x308c]
mov eax, dword [edx + 0x120]
mov ecx, dword [edx + 0x124]
jmp 0x501004
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je case.0x500682.8
mov edx, dword [esi]
lea eax, [esi + 0x3084]
push eax
mov ecx, esi
call dword [edx + 0x10]
jmp 0x500c0d
lea edi, [esi + 0x2cc]
push edi
call fcn.0054f68f
mov eax, dword [edi]
mov edx, dword [esi + 0x2c0]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x2d8], eax
jl case.0x500682.8
mov edx, dword [0x63f478]
push 1
push edx
mov ecx, esi
call fcn.004e9db0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
lea eax, [esi + 0x3084]
push eax
mov ecx, esi
call dword [edx + 0x10]
jmp 0x500c0d
mov ecx, dword [esi + 0x308c]
call fcn.00507b00
cmp eax, ebx
je 0x501307
push str.Reusing_connection._n
mov ecx, esi
call fcn.004e9e80
mov dword [esi + 8], 1
mov dword [esi + 0x38], ebx
or eax, 0xffffffff
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov edx, dword [esi]
lea eax, [esi + 0x3084]
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.004ebc40
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 + 0x308c]
mov edx, dword [esi + 0x3084]
add ecx, 0x1a8
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
mov ecx, dword [esi + 0x2ac]
mov dword [ebp - 0x14], eax
cmp ecx, ebx
jg 0x5013ca
cmp eax, ebx
jne 0x5013ca
mov ecx, dword [esi + 0x80]
cmp dword [ecx + 0x24], 2
jne 0x501370
cmp dword [esi + 0x327c], ebx
ja 0x5013ca
mov cl, byte [esi + 0x3280]
test cl, cl
jne 0x5013ca
lea edi, [esi + 0x2cc]
push edi
call fcn.0054f68f
mov eax, dword [edi]
mov ebx, dword [esi + 0x2c0]
mov edx, dword [esi + 0x308c]
sub eax, ebx
mov dword [esi + 0x2d8], eax
add esp, 4
mov ecx, dword [edx + 0xcc]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xfffffef2
add ecx, 0x12c
cmp eax, ecx
jl case.0x500682.8
push str.Connection_restarted_because_of_timeout_n
mov ecx, esi
call fcn.004e9e80
jmp 0x50100a
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x3084]
lea ebx, [esi + 0x3084]
push 0xffffffffffffffff
push eax
push edx
mov ecx, esi
mov byte [esi + 0x3280], 0
call fcn.004eaeb0
mov edi, eax
mov al, byte [esi + 0x8e]
test al, al
mov dword [ebp - 0x1c], edi
je 0x50140d
mov ecx, dword [esi + 0x308c]
mov byte [esi + 0x8e], 0
test ecx, ecx
je 0x50140d
call fcn.0051d700
cmp edi, 0xffffffff
jg 0x50175d
cmp edi, 0xfffffff9
jne 0x501487
mov eax, dword [esi + 0x308c]
cmp dword [eax + 0xcc], 2
jne 0x501460
mov eax, dword [esi + 0x24]
test eax, eax
jl 0x501460
jg 0x50143a
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x501460
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 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 eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x8c], 1
call dword [eax + 0x18]
mov edx, dword [esi]
push ebx
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 edi, 0xfffffff8
jne 0x50151d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 0x308c]
test eax, eax
je case.0x500682.8
mov dword [eax + 0xd8], 0x753f
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx + 0xe0]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
cmp ecx, edx
jne 0x5014da
cmp ecx, 8
jle 0x5014da
mov ecx, dword [esi + 0x308c]
push 0xc8
call fcn.00507900
mov ecx, dword [esi + 0x308c]
mov eax, dword [esi + 0x60]
mov edx, dword [ecx + 0x5c]
cmp edx, eax
jne case.0x500682.8
mov eax, dword [esi + 0x24]
add esi, 0x20
test eax, eax
jl case.0x500682.8
jg 0x501507
cmp dword [esi], 0
jbe case.0x500682.8
call fcn.00508270
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffff7
jne 0x501542
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
push ebx
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 edi, 0xfffffffc
jne 0x50160b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne 0x50159a
mov eax, dword [esi + 0x60]
test eax, eax
je 0x50156b
mov ecx, dword [esi + 0x308c]
mov edx, dword [eax + 0x10]
mov dword [ecx + 0xdc], edx
mov eax, dword [esi + 0x308c]
mov dword [eax + 0xd8], 0
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 eax, dword [esi + 0x80]
mov eax, dword [eax + 4]
test eax, eax
je 0x501684
push str..mail.yahoo.com_
push eax
call fcn.0054e0f0
add esp, 8
test eax, eax
jne 0x5015cb
mov al, byte [esi + 0x30de]
test al, al
je 0x501684
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 0x501684
mov edx, dword [edx + 4]
cmp edx, ecx
jne 0x501684
mov ecx, dword [esi + 0x308c]
mov eax, dword [ecx + 0x124]
mov edx, dword [ecx + 0x120]
push eax
jmp 0x50191a
cmp edi, 0xfffffffb
jne 0x501635
mov eax, dword [esi + 0x308c]
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 edi, 0xfffffffe
jne 0x50166c
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 edi, dword [esi + 0x24]
adc edi, edx
xor eax, eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
jmp 0x501813
cmp edi, 0xfffffffd
je 0x5016a3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x5017fe
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov ecx, eax
or ecx, edi
jne 0x5016af
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esi + 0x5c], 0xe
jmp 0x5017fe
mov ecx, esi
call fcn.00502420
jmp 0x501813
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
cmp ecx, eax
jne 0x5016e8
cmp edx, edi
jne 0x5016e8
test edx, edx
jl 0x5016e8
jg 0x5016c7
test ecx, ecx
jbe 0x5016e8
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx + 0x294]
test eax, eax
je 0x5016e8
mov eax, dword [esi + 0x308c]
mov edx, dword [eax + 0x64]
push edx
push 0
call fcn.0052e9f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 0x3c]
xor edi, edi
cmp eax, edi
jl 0x50172a
jg 0x5016ff
cmp dword [esi + 0x38], edi
jbe 0x50172a
push edi
mov ecx, esi
call fcn.004ebc40
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
add eax, ecx
mov dword [esi + 0x20], eax
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.004ebbc0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
cmp eax, edi
je 0x501742
mov ecx, dword [esi + 0x308c]
mov dword [ecx + 0xd8], eax
cmp eax, 0x7569
jne 0x501813
mov ecx, dword [esi + 0x308c]
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x5017fe
test edi, edi
jle 0x501813
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x5017fe
mov edi, dword [ecx]
mov ecx, dword [esi + 0x308c]
push eax
add ecx, 0x48
call fcn.004e9100
xor ebx, ebx
cmp eax, ebx
jne case.0x500682.8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push 1
mov ecx, edi
mov dword [edi + 0x5c], 7
call fcn.004ebc40
or eax, 0xffffffff
mov dword [edi + 0x38], ebx
mov dword [edi + 0x20], eax
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x24], eax
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx]
cmp eax, ebx
je 0x5017d1
push ebx
push 0x13f3
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x308c]
call fcn.00507b00
cmp eax, ebx
je 0x5017f7
mov eax, dword [edi]
lea ecx, [edi + 0x3084]
push ecx
mov ecx, edi
mov dword [edi + 8], 1
call dword [eax + 0x10]
jmp 0x5017fe
mov dword [edi + 0x5c], 0xe
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x501813
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
or edx, eax
je 0x5013c7
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov eax, ebx
or eax, ecx
je 0x5018d9
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 + 0x2b8]
adc ecx, 0
mov dword [ebp - 0x14], edx
test edx, edx
je 0x501870
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 0x501870
cmp dword [esi + 0x34], edi
jne 0x501870
mov edi, dword [esi + 0x1c]
mov edx, dword [ebp - 0x20]
or edx, edi
je 0x501870
add eax, dword [ebp - 0x14]
adc ecx, 0
cmp eax, dword [esi + 0x38]
jne 0x50187a
cmp ecx, dword [esi + 0x3c]
je 0x50187e
or eax, ecx
jne 0x5018d9
mov ecx, esi
call fcn.004f84d0
cmp dword [esi + 0x5c], 7
jne 0x5018d9
mov ecx, dword [esi + 0x308c]
call fcn.00507b00
xor edi, edi
cmp eax, edi
je 0x5018d2
push str.Reusing_connection._n
mov ecx, esi
call fcn.004e9e80
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 + 0x3084]
push eax
call dword [edx + 0x10]
jmp 0x5018d9
mov dword [esi + 0x5c], 0xe
mov al, byte [esi + 0x2b0]
test al, al
je case.0x500682.8
mov al, byte [esi + 0x90]
test al, al
je case.0x500682.8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
jne case.0x500682.8
mov ecx, dword [esi + 0x308c]
test ecx, ecx
je 0x50157b
mov edx, dword [esi + 0x64]
mov eax, dword [edx + 4]
push eax
mov edx, dword [edx]
push edx
call fcn.0051cc60
mov eax, dword [esi + 0x60]
test eax, eax
je 0x50156b
jmp 0x50155c