Function at 0x470690
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 0x4706ae
mov esi, dword [eax + 0xc]
shl esi, 2
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
call fcn.0047d7c0
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 0x4708d6
cmp dword [edi + 0x80], ebp
je 0x470701
push 2
push 5
push edi
call fcn.0047ab60
add esp, 0xc
mov eax, dword [edi + 0xca0]
mov ebx, dword [eax + 0x18]
cmp dword [edi + 0x80], ebp
je 0x47071d
push 5
push edi
call fcn.0047aba0
add esp, 8
cmp ebx, esi
jbe 0x4708d2
push str.Connection_cache_is_full__closing_the_oldest_one._n
push edi
call fcn.00477080
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.0047d7c0
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 0x470786
push 2
push 5
push edi
call fcn.0047ab60
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
call fcn.0047def0
lea eax, [esp + 0x38]
push eax
call fcn.0047de30
add esp, 0xc
test eax, eax
je 0x4708ae
lea esp, [esp]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov edi, dword [eax + 8]
test edi, edi
je 0x470877
jmp 0x4707d0
mov esi, dword [edi]
cmp dword [esi + 0x37c], 0
jne 0x470868
cmp dword [esi], 0
jne 0x470868
cmp byte [esi + 0x2a4], 0
jne 0x470868
cmp byte [esi + 0x2c4], 0
jne 0x470868
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.0047d870
add esp, 0x20
cmp edx, dword [esp + 0x14]
jl 0x470868
jg 0x470856
cmp eax, ebx
jbe 0x470868
mov ebp, esi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x10], esi
jmp 0x47086c
mov esi, dword [esp + 0x10]
mov edi, dword [edi + 8]
test edi, edi
jne 0x4707d0
lea eax, [esp + 0x30]
push eax
call fcn.0047de30
add esp, 4
test eax, eax
jne 0x4707b0
test ebp, ebp
je 0x4708aa
push ebp
push esi
call fcn.00470950
mov eax, dword [esp + 0x20]
add esp, 8
mov edi, dword [esp + 0x54]
dec dword [eax + 0x18]
mov dword [ebp], edi
jmp 0x4708ae
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x80], 0
je 0x4708c2
push 5
push edi
call fcn.0047aba0
add esp, 8
test ebp, ebp
je 0x4708d2
push 0
push ebp
push edi
call fcn.004730a0
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