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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 0x78]
mov esi, dword [eax + 0xb8]
test esi, esi
jns 0x456c9e
mov esi, dword [eax + 0xc]
shl esi, 2
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
call fcn.0046ad30
mov edx, dword [esp + 0x5c]
add esp, 4
mov ecx, dword [eax]
mov dword [edx + 0x1b0], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 0x1b4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 0x1b8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0x1bc], eax
test esi, esi
je 0x456ec6
cmp dword [edi + 0x80], ebp
je 0x456cf1
push 2
push 5
push edi
call fcn.00462540
add esp, 0xc
mov eax, dword [edi + 0xca0]
mov ebx, dword [eax + 0x18]
cmp dword [edi + 0x80], ebp
je 0x456d0d
push 5
push edi
call fcn.00462580
add esp, 8
cmp ebx, esi
jbe 0x456ec2
push str.Connection_cache_is_full__closing_the_oldest_one._n
push edi
call fcn.0045e540
mov eax, dword [edi + 0xca0]
or ebx, 0xffffffff
mov dword [esp + 0x20], eax
xor esi, esi
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], ebx
push eax
xor ebp, ebp
mov dword [esp + 0x1c], esi
call fcn.0046ad30
add esp, 0xc
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
cmp dword [edi + 0x80], esi
je 0x456d76
push 2
push 5
push edi
call fcn.00462540
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
call fcn.0046b4a0
lea eax, [esp + 0x38]
push eax
call fcn.0046b4c0
add esp, 0xc
test eax, eax
je 0x456e9e
lea esp, [esp]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov edi, dword [eax + 8]
test edi, edi
je 0x456e67
jmp 0x456dc0
mov esi, dword [edi]
cmp dword [esi + 0x37c], 0
jne 0x456e58
cmp dword [esi], 0
jne 0x456e58
cmp byte [esi + 0x2a4], 0
jne 0x456e58
cmp byte [esi + 0x2c4], 0
jne 0x456e58
mov eax, dword [esi + 0x1b0]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esi + 0x1b4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x1b8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x1bc]
mov dword [ecx + 0xc], eax
mov eax, esp
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
call fcn.0046ade0
add esp, 0x20
cmp edx, dword [esp + 0x14]
jl 0x456e58
jg 0x456e46
cmp eax, ebx
jbe 0x456e58
mov ebp, esi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x10], esi
jmp 0x456e5c
mov esi, dword [esp + 0x10]
mov edi, dword [edi + 8]
test edi, edi
jne 0x456dc0
lea eax, [esp + 0x30]
push eax
call fcn.0046b4c0
add esp, 4
test eax, eax
jne 0x456da0
test ebp, ebp
je 0x456e9a
push ebp
push esi
call fcn.00457600
mov eax, dword [esp + 0x20]
add esp, 8
mov edi, dword [esp + 0x54]
dec dword [eax + 0x18]
mov dword [ebp], edi
jmp 0x456e9e
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x80], 0
je 0x456eb2
push 5
push edi
call fcn.00462580
add esp, 8
test ebp, ebp
je 0x456ec2
push 0
push ebp
push edi
call fcn.004598a0
add esp, 0xc
mov edx, dword [esp + 0x58]
pop edi
pop esi
cmp ebp, edx
pop ebp
setne al
pop ebx
add esp, 0x40
ret