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

Disassembly:
push 0xffffffffffffffff
push 0x434d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
push edi
mov edi, ecx
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00401040
xor ebp, ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00401380
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cabd
push 0x60
call fcn.0040a560
mov esi, eax
add esp, 4
lea eax, [edi + 0xc]
mov dword [esi + 0x28], 1
mov ecx, dword [0x47e740]
mov edx, dword [0x47e744]
mov dword [esi], ecx
push eax
lea ecx, [esi + 0x34]
mov dword [esi + 4], edx
mov dword [esi + 0x2c], 0xffffffff
call fcn.0040baf0
lea ecx, [ebx - 4]
lea ebp, [esi + 8]
push ecx
mov ecx, ebp
call fcn.004010c0
mov edx, dword [esp + 0x6c]
add ebx, 0xfffffffc
add edx, 4
push ebx
push edx
jmp 0x40ce53
mov eax, dword [edi + 0x78]
lea ecx, [esp + 0x3c]
cmp eax, ebp
jne 0x40ce71
call fcn.00401380
mov ecx, dword [esp + 0x44]
mov ebp, eax
mov eax, esi
add ebx, 0xfffffff8
and eax, 0xff
add ecx, 8
push eax
push ebx
push ecx
mov dword [esp + 0x78], ebp
call fcn.0040b350
mov edx, esi
mov ebx, ebp
add esp, 0xc
shr edx, 0x1f
shr ebx, 0x1f
test ebp, 0x40000000
mov dword [esp + 0x14], edx
je 0x40cb15
mov dword [edi + 0x74], 1
jmp 0x40ce6d
mov eax, esi
shr eax, 0x1e
and eax, 1
mov dword [esp + 0x18], eax
je 0x40cb71
xor ebp, ebp
lea ecx, [esp + 0x3c]
call fcn.00401360
test eax, eax
je 0x40cb61
lea ecx, [esp + 0x3c]
mov dword [esp + ebp + 0x34], 1
call fcn.00401380
lea ecx, [esp + 0x3c]
mov dword [esp + ebp + 0x24], eax
call fcn.00401370
lea ecx, [esp + 0x3c]
mov dword [esp + ebp + 0x1c], eax
call fcn.00401370
mov dword [esp + ebp + 0x2c], eax
add ebp, 4
cmp ebp, 8
jl 0x40cb25
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x7c]
and esi, 0x3fffffff
and ebp, 0x7fffffff
cmp esi, ecx
ja 0x40cbcd
lea ecx, [edi + 0xc]
jne 0x40cbab
call fcn.0040b920
mov edx, dword [edi + 0x7c]
push eax
push edx
push esi
push str.NetChannel::ProcessIncoming:_duplicate_packet__i_at__i_from__s_n
push 0x47e730
call fcn.0041a310
add esp, 0x14
jmp 0x40ce6d
call fcn.0040b920
push eax
mov eax, dword [edi + 0x7c]
push eax
push esi
push str.NetChannel::ProcessIncoming:_out_of_order_packet__i_at__i_from__s_n
push 0x47e730
call fcn.0041a310
add esp, 0x14
jmp 0x40ce6d
mov eax, esi
sub eax, ecx
dec eax
mov dword [esp + 0x10], eax
inc eax
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x90]
fild dword [esp + 0x6c]
fild dword [esp + 0x10]
cmp ebx, eax
fdiv st(1)
fxch st(1)
fmul dword [0x436608]
fld dword [0x436418]
fsub st(1)
fmul dword [edi + 0x1200]
fxch st(1)
fmul st(2)
faddp st(1)
fstp dword [edi + 0x1200]
fstp st(0)
jne 0x40cc2e
mov ecx, dword [edi + 0x80]
mov eax, dword [edi + 0x94]
inc ecx
cmp ecx, eax
jl 0x40cc2e
mov dword [edi + 0x10c], 0
mov dword [edi + 0x7c], esi
xor esi, esi
cmp edx, esi
mov dword [edi + 0x80], ebp
mov dword [edi + 0x84], ebx
je 0x40cc4a
xor dword [edi + 0x88], 1
mov edx, dword [0x47e740]
mov eax, dword [0x47e744]
mov ecx, dword [esp + 0x70]
mov dword [edi + 0x38], edx
mov edx, dword [edi + 0x1620]
add ecx, 0x1c
and edx, 0x1f
mov dword [edi + 0x3c], eax
add edx, 0x142
shl edx, 4
mov dword [edx + edi], ecx
mov eax, dword [edi + 0x1620]
fld qword [0x47e740]
and eax, 0x1f
shl eax, 4
fstp qword [eax + edi + 0x1428]
mov ecx, dword [edi + 0x1620]
mov eax, dword [esp + 0x18]
inc ecx
cmp eax, esi
mov dword [edi + 0x1620], ecx
je 0x40cdf3
lea ecx, [edi + 0x10ec]
mov dword [esp + 0x70], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], esi
mov eax, dword [esp + esi + 0x34]
test eax, eax
je 0x40cdcf
mov eax, dword [esp + esi + 0x24]
xor ebp, ebp
mov bp, word [esp + esi + 0x26]
mov ecx, eax
and ecx, 0xffff
test eax, eax
mov dword [esp + 0x18], ecx
je 0x40cd47
mov edx, dword [esp + 0x10]
push 1
push eax
push edx
mov ecx, edi
call fcn.0040c8e0
mov ebx, eax
test ebx, ebx
je 0x40cd23
mov ebp, dword [esp + esi + 0x2c]
lea ecx, [esp + 0x3c]
push ebp
call fcn.004018e0
mov edx, dword [esp + esi + 0x20]
mov ecx, dword [esp + 0x48]
add eax, edx
add eax, ecx
push eax
lea eax, [ebx + 8]
push eax
call fcn.00413170
mov dword [ebx + 0x580], ebp
jmp 0x40cd33
push ebp
push str.NetChannel::ProcessIncoming:_couldnt_allocate_or_find_buffer__i_n
push 0x47e730
call fcn.0041a310
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
add esp, 0xc
push ecx
push edx
mov ecx, edi
call fcn.0040c940
mov ebp, dword [esp + esi + 0x2c]
mov ebx, dword [esp + esi + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.004018e0
mov edx, dword [esp + 0x44]
mov esi, eax
add esi, ebp
lea ecx, [esp + 0x3c]
add esi, ebx
add esi, edx
call fcn.004018e0
mov ebx, eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + eax + 0x1c]
mov eax, dword [esp + 0x44]
add ebx, ecx
lea ecx, [esp + 0x3c]
add ebx, eax
call fcn.004018e0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x6c]
sub ecx, ebp
sub ecx, dword [esp + edx + 0x1c]
sub ecx, eax
test ecx, ecx
jle 0x40cda5
mov al, byte [esi]
mov byte [ebx], al
inc ebx
inc esi
dec ecx
jne 0x40cd9c
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x50]
sub edx, ebp
lea eax, [ecx + 1]
mov dword [esp + 0x50], edx
cmp eax, 2
jge 0x40cdcb
mov esi, dword [esp + eax*4 + 0x1c]
sub esi, ebp
mov dword [esp + eax*4 + 0x1c], esi
inc eax
cmp eax, 2
jl 0x40cdbb
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
add esi, 4
inc ebx
add ecx, 4
cmp esi, 8
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x10], ecx
jl 0x40ccbb
lea ecx, [esp + 0x3c]
call fcn.004018e0
mov ebx, dword [esp + 0x50]
sub ebx, eax
test ebx, ebx
jle 0x40ce6d
push 0x60
call fcn.0040a560
mov edx, dword [esp + 0x18]
mov esi, eax
add esp, 4
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], edx
mov eax, dword [0x47e740]
mov ecx, dword [0x47e744]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x7c]
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], edx
call fcn.0040baf0
lea ebp, [esi + 8]
push ebx
mov ecx, ebp
call fcn.004010c0
mov ecx, dword [esp + 0x48]
push ebx
push ecx
mov ecx, ebp
call fcn.004017e0
mov ecx, ebp
call fcn.00401160
lea ecx, [edi + 0xe0]
push esi
call fcn.0040b5b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00401080
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8