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

Disassembly:
push 0xffffffffffffffff
push 0x67c1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70df38]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0x78]
push 0x10
mov ecx, esi
mov dword [esp + 0x74], 0
call fcn.004a76d0
movzx eax, ax
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.004c8890
push 1
lea ecx, [esp + 0x2c]
mov bl, 1
call fcn.004c8620
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [ebp + 4]
call fcn.004c87d0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.004c87f0
test al, al
je 0x491814
push str.Acking_unsent_chunk.
push str.bdConnection_windows
push str.dw_warn_
push 0x145
push str.bool___thiscall_bdReliableSendWindow::handleAck_class_bdReference_class_bdSAckChunk__float__
push str.._bdWindow_bdReliableSendWindow.cpp
lea ecx, [esp + 0x60]
call fcn.00475a90
push eax
call fcn.00475c30
add esp, 0xc
xor bl, bl
jmp 0x491c2f
mov ecx, ebp
call fcn.0048fea0
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0048fea0
cmp eax, edi
jl 0x491c2f
lea ecx, [esp + 0x14]
call fcn.0048fea0
and eax, 0x8000007f
jns 0x491843
dec eax
or eax, 0xffffff80
inc eax
lea ecx, [eax + eax*2]
lea ecx, [ebp + ecx*4]
xor edi, edi
cmp dword [ecx + 0x10], edi
je 0x49186c
lea edx, [eax + eax*2 + 6]
cmp byte [ebp + edx*4], 1
jne 0x49186c
add ecx, 0x14
call fcn.004c88e0
mov eax, dword [esp + 0x7c]
fstp dword [eax]
jmp 0x491874
fldz
mov ecx, dword [esp + 0x7c]
fstp dword [ecx]
mov ecx, esi
call fcn.00492ed0
push 1
lea ecx, [esp + 0x80]
mov dword [ebp + 0x610], eax
mov dword [ebp + 0x614], edi
call fcn.004c8620
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.004c87a0
jmp 0x4918b0
lea ecx, [esp + 0x24]
call fcn.0048fea0
and eax, 0x7f
lea ecx, [eax + eax*2]
lea esi, [ebp + ecx*4 + 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x4918fb
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx ecx, byte [esi + 8]
imul eax, ecx
add dword [ebp + 0x614], eax
push 0
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x2c]
add edi, 1
call fcn.004c87c0
cmp edi, 0x80
jb 0x4918b0
push 1
lea ecx, [esp + 0x80]
mov dword [esp + 0x1c], 0
call fcn.004c8620
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.004c87a0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.004c8830
test al, al
je 0x4919f0
jmp 0x491940
lea ecx, [esp + 0x1c]
call fcn.0048fea0
and eax, 0x7f
lea eax, [eax + eax*2]
cmp dword [ebp + eax*4 + 0x10], 0
lea esi, [ebp + eax*4 + 0x10]
je 0x491995
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
add dword [esp + 0x18], eax
mov eax, dword [esi]
test eax, eax
je 0x491985
add dword [eax + 4], 0xffffffff
cmp dword [eax + 4], 0
jne 0x491985
mov ecx, dword [esi]
test ecx, ecx
je 0x491985
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esi + 4]
mov dword [esi], 0
call fcn.0047f950
jmp 0x4919c7
push str.Invalid_ack.
push str.bdConnection_windows
push str.dw_warn_
push 0x18a
push str.bool___thiscall_bdReliableSendWindow::handleAck_class_bdReference_class_bdSAckChunk__float__
push str.._bdWindow_bdReliableSendWindow.cpp
lea ecx, [esp + 0x60]
call fcn.00475a90
push eax
call fcn.00475c30
add esp, 0xc
xor bl, bl
push 0
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x24]
call fcn.004c87c0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.004c8830
test al, al
jne 0x491940
mov esi, dword [esp + 0x78]
mov ecx, esi
call fcn.00494ce0
push 1
lea ecx, [esp + 0x80]
mov edi, eax
call fcn.004c8620
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004c87a0
test bl, bl
je 0x491c07
cmp dword [edi + 8], 0
je 0x491c07
mov ecx, edi
call fcn.00490d40
mov esi, eax
mov edx, dword [esi]
push edx
lea ecx, [esp + 0x34]
call fcn.004c8620
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004c87a0
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x38]
call fcn.004c8620
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004c87a0
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], edx
call fcn.004c8830
test al, al
je 0x491bac
lea esp, [esp]
lea ecx, [esp + 0x7c]
call fcn.0048fea0
and eax, 0x7f
lea ecx, [eax + eax*2]
cmp dword [ebp + ecx*4 + 0x10], 0
lea esi, [ebp + ecx*4 + 0x10]
jne 0x491aec
push str.Shouldnt_be_null_
push str.bdConnection_windows
push str.dw_warn_
push 0x19f
push str.bool___thiscall_bdReliableSendWindow::handleAck_class_bdReference_class_bdSAckChunk__float__
push str.._bdWindow_bdReliableSendWindow.cpp
lea ecx, [esp + 0x60]
call fcn.00475a90
push eax
call fcn.00475c30
add esp, 0xc
xor bl, bl
cmp byte [esi + 8], 0
jne 0x491b24
push str.Send_count_should_be___0
push str.bdConnection_windows
push str.dw_warn_
push 0x1a6
push str.bool___thiscall_bdReliableSendWindow::handleAck_class_bdReference_class_bdSAckChunk__float__
push str.._bdWindow_bdReliableSendWindow.cpp
lea ecx, [esp + 0x70]
call fcn.00475a90
push eax
call fcn.00475c30
add esp, 0xc
xor bl, bl
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x80]
call fcn.004c8810
test al, al
je 0x491b67
add byte [esi + 9], 1
cmp byte [esi + 0xa], 0
je 0x491b80
mov byte [esi + 0xa], 0
add esi, 4
mov ecx, esi
call fcn.004c88e0
fcomp dword [0x698cd0]
fnstsw ax
test ah, 0x44
jp 0x491b80
mov ecx, esi
call fcn.004c88c0
jmp 0x491b80
lea ecx, [esi + 4]
mov byte [esi + 0xa], 1
call fcn.004c88c0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
add dword [esp + 0x18], eax
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x84]
call fcn.004c87c0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x80]
call fcn.004c8830
test al, al
jne 0x491aa0
push 1
lea ecx, [esp + 0x40]
call fcn.004c8620
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
call fcn.004c87a0
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov eax, dword [edi]
test eax, eax
je 0x491bfb
cmp eax, dword [edi + 4]
mov edx, dword [eax + 8]
mov dword [edi], edx
mov ecx, dword [eax + 0xc]
jne 0x491be8
mov dword [edi + 4], ecx
jmp 0x491bee
mov edx, dword [eax + 8]
mov dword [edx + 0xc], ecx
push eax
call fcn.00475da0
add esp, 4
add dword [edi + 8], 0xffffffff
test bl, bl
mov esi, dword [esp + 0x78]
jne 0x491a26
test esi, esi
mov edx, dword [esp + 0x18]
push edx
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
mov dword [eax], esi
je 0x491c1d
add dword [esi + 4], 1
mov ecx, ebp
call fcn.004915b0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x78]
mov dword [ebp], eax
or eax, 0xffffffff
test esi, esi
mov dword [esp + 0x70], eax
je 0x491c49
add dword [esi + 4], eax
jne 0x491c49
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8