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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], esi
mov ebx, dword [ecx + 0x14]
add ecx, 0x10
cmp edx, ebx
push edi
mov dword [esp + 0xc], ecx
jge 0x4fa498
lea edi, [edx + edx*2]
mov eax, ebx
shl edi, 4
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov edx, dword [edi + eax]
lea ecx, [edi + eax]
push esi
call dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
add edi, 0x30
dec eax
mov dword [esp + 0x14], eax
jne 0x4fa473
mov edx, dword [ebp + 8]
jmp 0x4fa825
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], eax
and eax, 0x7fffffff
cmp edx, eax
jle 0x4fa78f
add eax, eax
cmp edx, eax
jl 0x4fa4b4
mov eax, edx
cmp eax, esi
mov edi, dword [ecx]
mov dword [esp + 0x24], edi
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], connect
jle 0x4fa4e7
xor edx, edx
cmp eax, esi
setl dl
push 0x30
dec edx
and eax, edx
push eax
push ecx
call fcn.0054d250
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp ebx, 4
mov dword [esp + 0x10], eax
jl 0x4fa69b
mov edx, dword [esp + 0x1c]
lea eax, [edx + 0x44]
lea ecx, [edi + 0x4c]
sub edi, edx
lea edx, [ebx - 4]
shr edx, 2
inc edx
mov dword [esp + 0x18], edx
shl edx, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
jmp 0x4fa524
mov edi, dword [esp + 0x14]
lea edx, [eax - 0x44]
test edx, edx
je 0x4fa579
mov dword [eax - 0x44], vtable.hkBaseObject.0
mov dx, word [ecx - 0x48]
mov word [eax - 0x40], dx
mov dx, word [ecx - 0x46]
mov word [eax - 0x3e], dx
mov dword [eax - 0x44], 0x65a974
mov edx, dword [ecx - 0x3c]
mov dword [eax - 0x34], edx
mov edx, dword [ecx - 0x38]
mov dword [eax - 0x30], edx
mov edx, dword [ecx - 0x34]
mov dword [eax - 0x2c], edx
mov edx, dword [ecx - 0x30]
mov dword [eax - 0x28], edx
mov edx, dword [ecx - 0x2c]
mov dword [eax - 0x24], edx
mov edx, dword [ecx - 0x28]
mov dword [eax - 0x20], edx
mov edx, dword [ecx - 0x24]
mov dword [eax - 0x1c], edx
mov edx, dword [ecx - 0x20]
mov dword [eax - 0x18], edx
lea edx, [eax - 0x14]
test edx, edx
je 0x4fa5cc
mov dword [eax - 0x14], vtable.hkBaseObject.0
mov dx, word [ecx - 0x18]
mov word [eax - 0x10], dx
mov dx, word [ecx - 0x16]
mov word [eax - 0xe], dx
mov dword [eax - 0x14], 0x65a974
mov edx, dword [ecx - 0xc]
mov dword [eax - 4], edx
mov edx, dword [edi + eax]
mov dword [eax], edx
mov edx, dword [ecx - 4]
mov dword [eax + 4], edx
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x18], edx
lea edx, [eax + 0x1c]
cmp edx, esi
je 0x4fa61f
mov dword [edx], vtable.hkBaseObject.0
mov di, word [ecx + 0x18]
mov word [eax + 0x20], di
mov di, word [ecx + 0x1a]
mov word [eax + 0x22], di
mov dword [edx], 0x65a974
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x34], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x38], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x3c], edx
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x40], edx
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x44], edx
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x48], edx
lea edx, [eax + 0x4c]
cmp edx, esi
je 0x4fa672
mov dword [edx], vtable.hkBaseObject.0
mov di, word [ecx + 0x48]
mov word [eax + 0x50], di
mov di, word [ecx + 0x4a]
mov word [eax + 0x52], di
mov dword [edx], 0x65a974
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x60], edx
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x64], edx
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x68], edx
mov edx, dword [ecx + 0x64]
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x70], edx
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x74], edx
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x78], edx
mov edx, dword [esp + 0x18]
add eax, 0xc0
add ecx, 0xc0
dec edx
mov dword [esp + 0x18], edx
jne 0x4fa520
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jge 0x4fa72e
mov edx, dword [esp + 0x1c]
lea eax, [eax + eax*2]
shl eax, 4
lea ecx, [eax + edi + 0x1c]
sub edi, edx
lea eax, [eax + edx + 0x14]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x10]
mov edx, ebx
sub edx, edi
lea edi, [eax - 0x14]
test edi, edi
je 0x4fa71a
mov dword [eax - 0x14], vtable.hkBaseObject.0
mov di, word [ecx - 0x18]
mov word [eax - 0x10], di
mov di, word [ecx - 0x16]
mov word [eax - 0xe], di
mov dword [eax - 0x14], 0x65a974
mov edi, dword [ecx - 0xc]
mov dword [eax - 4], edi
mov edi, dword [esp + 0x14]
mov edi, dword [eax + edi]
mov dword [eax], edi
mov edi, dword [ecx - 4]
mov dword [eax + 4], edi
mov edi, dword [ecx]
mov dword [eax + 8], edi
mov edi, dword [ecx + 4]
mov dword [eax + 0xc], edi
mov edi, dword [ecx + 8]
mov dword [eax + 0x10], edi
mov edi, dword [ecx + 0xc]
mov dword [eax + 0x14], edi
mov edi, dword [ecx + 0x10]
mov dword [eax + 0x18], edi
add eax, 0x30
add ecx, 0x30
dec edx
jne 0x4fa6c3
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
cmp ebx, esi
jle 0x4fa764
mov ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
jmp 0x4fa742
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push esi
call dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, 0x30
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x4fa73e
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test eax, eax
js 0x4fa7da
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
lea eax, [eax + eax*2]
push 0x12
shl eax, 4
push eax
push edi
call dword [edx + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
jmp 0x4fa7da
cmp ebx, edx
mov eax, dword [ecx]
jge 0x4fa7da
lea edi, [ebx + ebx*2]
shl edi, 4
lea eax, [edi + eax + 0x18]
mov edi, edx
sub edi, ebx
mov dword [esp + 0x1c], edi
lea edi, [eax - 0x18]
test edi, edi
je 0x4fa7cc
mov dword [eax - 0x18], 0x65a974
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [eax - 4], esi
mov dword [eax - 8], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov edi, dword [esp + 0x1c]
add eax, 0x30
dec edi
mov dword [esp + 0x1c], edi
jne 0x4fa7a7
cmp ebx, edx
mov eax, dword [ecx]
jge 0x4fa825
lea edi, [ebx + ebx*2]
shl edi, 4
lea eax, [edi + eax + 0x18]
mov edi, edx
sub edi, ebx
mov dword [esp + 0x1c], edi
lea edi, [eax - 0x18]
test edi, edi
je 0x4fa817
mov dword [eax - 0x18], 0x65a974
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [eax - 4], esi
mov dword [eax - 8], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov edi, dword [esp + 0x1c]
add eax, 0x30
dec edi
mov dword [esp + 0x1c], edi
jne 0x4fa7f2
cmp ebx, edx
mov dword [ecx + 4], edx
jge 0x4fa972
mov di, word [esp + 0x34]
sub edx, ebx
cmp edx, 4
mov dx, word [esp + 0x36]
jl 0x4fa933
mov eax, dword [ebp + 8]
sub eax, ebx
sub eax, 4
lea ecx, [ebx + ebx*2]
shr eax, 2
shl ecx, 4
inc eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + eax*4]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
mov word [eax + ecx + 4], di
mov word [eax + ecx + 6], dx
mov dword [eax + ecx + 0x10], esi
mov dword [eax + ecx + 0x14], esi
mov dword [eax + ecx + 0x18], esi
mov dword [eax + ecx + 0x1c], esi
mov dword [eax + ecx + 0x20], esi
mov dword [eax + ecx + 0x24], esi
mov dword [eax + ecx + 0x28], esi
mov dword [eax + ecx + 0x2c], esi
add eax, ecx
mov eax, dword [ebx]
mov word [ecx + eax + 0x34], di
mov word [ecx + eax + 0x36], dx
mov dword [ecx + eax + 0x40], esi
mov dword [ecx + eax + 0x44], esi
mov dword [ecx + eax + 0x48], esi
mov dword [ecx + eax + 0x4c], esi
lea eax, [ecx + eax + 0x30]
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], esi
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
lea ebx, [ecx + 0x90]
mov word [ebx + eax - 0x2c], di
mov word [ebx + eax - 0x2a], dx
lea eax, [ebx + eax - 0x30]
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], esi
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
add eax, ebx
mov word [eax + 4], di
mov word [eax + 6], dx
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], esi
mov eax, dword [esp + 0x1c]
add ecx, 0xc0
dec eax
mov dword [esp + 0x1c], eax
jne 0x4fa862
mov ebx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
cmp ebx, eax
jge 0x4fa972
lea ecx, [ebx + ebx*2]
shl ecx, 4
sub eax, ebx
mov ebx, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
add eax, ecx
mov word [eax + 4], di
mov word [eax + 6], dx
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
add ecx, 0x30
dec ebx
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], esi
jne 0x4fa944
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4